Skip to content

Prefer fetch API over XHR#1115

Closed
austinpray wants to merge 1 commit intogetsentry:masterfrom
austinpray:fetch
Closed

Prefer fetch API over XHR#1115
austinpray wants to merge 1 commit intogetsentry:masterfrom
austinpray:fetch

Conversation

@austinpray
Copy link
Contributor

closes #930

I have confirmed that this works when I hooked up the little app in the example folder to an echo server. Could use some help testing making sure the data is accepted by a real sentry server.

@MaxBittker
Copy link
Contributor

@austinpray I think you accidentally committed some extra files here

@austinpray
Copy link
Contributor Author

Yep you right

@kamilogorek
Copy link
Contributor

Can you remove those redundant files please?
Also what's this ESLint error exactly?

}

opts.onSuccess && opts.onSuccess();
})["catch"](function () {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you change })["catch"](function () { to }).catch(function () {
you get an eslint error

@austinpray
Copy link
Contributor Author

I got rid of the accidentally added files! Eslint stuff explained inline

@austinpray
Copy link
Contributor Author

Also just now noticing that there are some tests that are failing on travis but not locally

@kamilogorek
Copy link
Contributor

It breaks locally as well:
screen shot 2017-11-03 at 12 13 25

Use npm run test to run all the tests, not npm run test:unit. If you want to run those one-off separate test, remember to run build first grunt build.test

@kamilogorek
Copy link
Contributor

Fixed in #1157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use fetch if XMLHttpRequest not available

3 participants