You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried turning on logContentsOfXhrCalls in our application. Request bodies get sent just fine, but response bodies are not.
The problem appears to be here. This guard checks if the responseType is empty string or 'text'. If so, the response text is included. Otherwise, we get the default text 'N/A for non text responses', which is what I'm seeing. And it's because I'm dealing with responseType === 'blob', specifically a JSON blob.
What is the guidance here?
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue. We have some updates planned to this library, so I'll investigate expanding the supported response types for logContentsOfXhrCalls as part of this work.
As it stands I don't think logging blob responses is currently possible with raygun4js. One workaround would be to add another wrapper to XMLHttpRequest to log these response bodies, following the same style as the raygun.network-tracking.js file linked.
I tried turning on
logContentsOfXhrCalls
in our application. Request bodies get sent just fine, but response bodies are not.The problem appears to be here. This guard checks if the
responseType
is empty string or'text'
. If so, the response text is included. Otherwise, we get the default text'N/A for non text responses'
, which is what I'm seeing. And it's because I'm dealing withresponseType === 'blob'
, specifically a JSON blob.What is the guidance here?
The text was updated successfully, but these errors were encountered: