Skip to content

Correctly handle non-OK bitly responses#9

Open
glampr wants to merge 1 commit intomoski:masterfrom
glampr:bitly-not-200ok
Open

Correctly handle non-OK bitly responses#9
glampr wants to merge 1 commit intomoski:masterfrom
glampr:bitly-not-200ok

Conversation

@glampr
Copy link
Copy Markdown

@glampr glampr commented Jan 27, 2017

If response status != 200 (e.g. 403 when rate limit exceeded) then in the response body data['data'] is an array, and trying to access data['data']['expand'].first results in an error.

If response status != 200 (e.g. 403 when rate limit exceeded) then in the response body ```data['data']``` is an array, and trying to access ```data['data']['expand'].first``` results in an error.
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.

1 participant