Skip to content

Update api url random-user.coffee #1314

Merged
merged 1 commit into from Feb 10, 2014

2 participants

@hashashin

fix: Error occured parsing response body: SyntaxError: Unexpected token <

@hashashin hashashin Update api url
fix: Error occured parsing response body: SyntaxError: Unexpected token <
08cca3f
@technicalpickles
GitHub member

It might be worth checking res.statusCode too. The old URL was probably returning a non-200 with HTML output, but JSON.parse was being called regardless.

@technicalpickles technicalpickles merged commit 9514439 into github:master Feb 10, 2014
@hashashin hashashin deleted the unknown repository branch Feb 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.