Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when API is unavailable #18

Open
ZufengW opened this issue Nov 22, 2017 · 0 comments · May be fixed by #23
Open

Crash when API is unavailable #18

ZufengW opened this issue Nov 22, 2017 · 0 comments · May be fixed by #23

Comments

@ZufengW
Copy link

ZufengW commented Nov 22, 2017

For example, if I try to list a ticket while the wifi is off, I get an error:

undefined
^

SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse (native)
    at Request._callback (.../node_modules/zendesk-node-api/src/zdrequest.js:18:23)
    ...

It happens because body has type undefined and JSON tries to parse that.

@zwanona zwanona linked a pull request Apr 25, 2018 that will close this issue
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 a pull request may close this issue.

1 participant