Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

wrap JSON.parse calls in try-catch blocks #39

Merged
merged 1 commit into from
Dec 30, 2015

Conversation

alexander-daniel
Copy link
Contributor

Resolves: #37

@etpinard @bpostlethwaite

We weren't wrapping JSON.parse calls in try-catch blocks, so if the server sent anything other than JSON back, we'd have uncaught breakages!

@alexander-daniel
Copy link
Contributor Author

Tests are failling, but I think it's because of throttling. I'll upgrade the test-account.

@etpinard
Copy link
Contributor

@alexander-daniel looks good to me.

💃 once you figure out the test failures.

@alexander-daniel
Copy link
Contributor Author

@etpinard @bpostlethwaite I upgraded the node-test-account, and that will fix the throttling issues for the future, but the failure is actually coming from a GATEWAY_TIMEOUT when trying to make a plot call before streaming. I don't think its related to this module, but we'll have to wait for that to be resolved before tests pass again, as they hit prod servers!

alexander-daniel added a commit that referenced this pull request Dec 30, 2015
wrap JSON.parse calls in try-catch blocks
@alexander-daniel alexander-daniel merged commit 92f3f9f into master Dec 30, 2015
@alexander-daniel alexander-daniel deleted the try-catch-json-parse branch December 30, 2015 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants