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

JSON.parse occasionally fails #36

Open
jamesjenner opened this issue Jun 18, 2015 · 0 comments
Open

JSON.parse occasionally fails #36

jamesjenner opened this issue Jun 18, 2015 · 0 comments

Comments

@jamesjenner
Copy link

I occasionally get an exception which appears to be caused by the JSON.parse logic in each get request. I don't know the exact situation on which it occurs, but the test for error or a statusCode of 200 isn't covering the problem I get. Sometimes the error states

 Unexpected token <

Other times the error states

Unexpected end of input

For now I've just put a try catch around

In my scenario I'm polling Jenkins every minute and the error generally happens overnight.

I could capture some further information if you would like.

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

No branches or pull requests

1 participant