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

Unexpected 504 for room #157

Open
mrjcleaver opened this issue Dec 19, 2015 · 2 comments
Open

Unexpected 504 for room #157

mrjcleaver opened this issue Dec 19, 2015 · 2 comments

Comments

@mrjcleaver
Copy link

Anyone seen this before?

Error: #<HipChat::UnknownResponseCode: Unexpected 504 for room `Playlist Builder'>"]
/Volumes/Storage/martincleaver/.chefdk/gem/ruby/2.1.0/gems/hipchat-1.5.2/lib/hipchat/room.rb:142:in `send': Unexpected 504 for room `Playlist Builder' (HipChat::UnknownResponseCode)

504 doesn't even appear in https://www.hipchat.com/docs/apiv2/response_codes or https://www.hipchat.com/docs/api/response_codes

I suppose I'll just have to catch such exceptions. Weird.

@rberrelleza
Copy link
Contributor

That exception typically happens if something in the backed takes longer than expected to respond back, your safest bet is to add a catch and retry. Is it happening a lot?

@mrjcleaver
Copy link
Author

Yeah, I'm getting all sorts of exceptions actually. Eg no such room after creating a room - yet then I see in actuality the room does get created. I was just considering wrapping he HipChat class to make exceptions non-fatal - or throttling somehow. Any advice? Thanks, M.

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

2 participants