This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ptere There isn't a great way to test this. I made a change to my local Core and then ran the same call before and after (using the branch as a dependency) the change. Version 2.1.0 (No changes)
Version 2.1.1 (Post changes)
|
ptere
approved these changes
Jan 11, 2019
ptere
reviewed
Jan 11, 2019
lib/spreedly/base.ex
Outdated
500 => "Internal Server Error", | ||
501 => "Not Implemented", | ||
502 => "Bad Gateway", | ||
503 => "Service Unavailable - Spreedly is temporarily unable to process the request.", | ||
503 => "Service Unavailable. See https://docs.spreedly.com/reference/api/v1/#429-too-many-requests", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update response processing to handle 5xx responses by returning an {:error, reason} tuple. ENCEG-2362 Successful Full Test Suite Run at 2019-01-10 13:47:41
jknipp
force-pushed
the
ENCEG-2362-handle-500-errors
branch
from
January 11, 2019 22:11
4e03185
to
ac8176d
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update response processing to handle 5xx responses by returning an
{:error, reason} tuple.
ENCEG-2362