Skip to content

[feature] handle 504 response#503

Merged
jonnyom merged 1 commit intointercom:masterfrom
truecoach:bugfix/handle-504-error
Nov 12, 2019
Merged

[feature] handle 504 response#503
jonnyom merged 1 commit intointercom:masterfrom
truecoach:bugfix/handle-504-error

Conversation

@adsteel
Copy link
Copy Markdown
Contributor

@adsteel adsteel commented Nov 11, 2019

Addresses #502

Default handling for unexpected response bodies (here)
has revealed an unhandled 504 response from intercom.

Example message from UnexpectedResponseError:

Intercom::UnexpectedResponseError, Expected a JSON response body.
Instead got '<html> <head><title>504 Gateway Time-out</title></head>
<body bgcolor="white"> <center><h1>504 Gateway Time-out</h1></center>
</body> </html> ' with status code '504'.

@@ -1,3 +1,3 @@
module Intercom #:nodoc:
VERSION = "3.9.3"
VERSION = "3.10.0"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind if we leave this change and then bump in a separate PR?

Modifying this version here affects the automatic bump command that we use when bundling releases 😄

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course!

Copy link
Copy Markdown
Contributor

@jonnyom jonnyom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this again @adsteel this is great. One thing re the version but other than that it looks great.

Default handling for unexpected response bodies ([here](#492))
has revealed an unhandled 504 response from intercom.

Example message from UnexpectedResponseError:

```
Intercom::UnexpectedResponseError, Expected a JSON response body.
Instead got '<html> <head><title>504 Gateway Time-out</title></head>
<body bgcolor="white"> <center><h1>504 Gateway Time-out</h1></center>
</body> </html> ' with status code '504'.
```
@adsteel
Copy link
Copy Markdown
Contributor Author

adsteel commented Nov 11, 2019

@jonnyom Removed the version bump. Ready for re-review.

Copy link
Copy Markdown
Contributor

@jonnyom jonnyom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me, thank you @adsteel

I'll try to get a release out today.

@jonnyom jonnyom merged commit 7c2ca38 into intercom:master Nov 12, 2019
@jonnyom jonnyom mentioned this pull request Nov 12, 2019
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.

2 participants