Skip to content

Commit

Permalink
Merge pull request #332 from MindscapeHQ/tl/really-fix-response-retri…
Browse files Browse the repository at this point in the history
…eval-crash

fix(network-tracking): exception when calling text() on response stream
  • Loading branch information
UberMouse authored Jun 17, 2019
2 parents ee28e9e + 941331f commit b72486e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
* v2.16.1
- Fix promise rejection errors when trying to retrieve fetch response text in network-tracking module

* v2.16.0
- Add paint timings to RUM page load metrics using the performance api & msFirstPaint
- Wrap response code get 'text' in a try catch
- Wrap response code get 'text' in a try catch

* v2.15.3
- Change the key for the status code which gets sent to RUM to statusCode to match the API
Expand All @@ -15,8 +18,8 @@

* v2.15.0
- Use localStorage to persist user id for Crash Reporting instead of a cookie
- Use sessionStorage to persist session id for RUM instead of a cookie
- Start tracking XHR status codes with performance information
- Use sessionStorage to persist session id for RUM instead of a cookie
- Start tracking XHR status codes with performance information

* v2.14.1
- Improve support for EmberJS
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raygun4js",
"version": "2.16.0",
"version": "2.16.1",
"homepage": "http://raygun.io",
"authors": [
"Mindscape <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"title": "Raygun4js",
"description": "Raygun.io plugin for JavaScript",
"version": "2.16.0",
"version": "2.16.1",
"homepage": "https://github.com/MindscapeHQ/raygun4js",
"author": {
"name": "MindscapeHQ",
Expand Down
2 changes: 1 addition & 1 deletion raygun4js.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>raygun4js</id>
<version>2.16.0</version>
<version>2.16.1</version>
<title>Raygun4js</title>
<authors>Mindscape Limited</authors>
<owners>Mindscape Limited</owners>
Expand Down
2 changes: 1 addition & 1 deletion src/raygun.network-tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ window.raygunNetworkTrackingFactory = function(window, Raygun) {
body = Raygun.Utilities.truncate(text, 500);

executeHandlers();
});
}).catch(function() { executeHandlers(); });
} catch(_e) {
executeHandlers();
}
Expand Down

0 comments on commit b72486e

Please sign in to comment.