-
Notifications
You must be signed in to change notification settings - Fork 134
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
NoMethodError from intercom/request (again) #467
Comments
@sidonath Hey there! Is there a specific request that you made that returned this error? That'd be really helpful in getting to the bottom of which response we're not accounting for here. Thanks! |
Hi @theandrewykim! Doesn't seem like there's something very specific, here's the breakdown:
|
@sidonath Thanks! Do you mind sharing your app_id with me? Maybe there is a specific error code being thrown that we're not accounting for shared between these three endpoints. |
@theandrewykim Sure, our ID is In case it helps, here are the timestamps of occurrences (EST):
The large cluster on Mar 30th at 6:42/6:43 is interesting. |
@sidonath Sorry for leaving this one hanging! I thought I had gotten back to this. We didn't have access to the logs for the time frame you had written in about. Are you still running into issues with this? |
@theandrewykim Hi! We didn't get any new occurrences of this error for 3 months now. Do you think it would still make sense to change |
@theandrewykim Hi there! We had the same exception again at 2019-07-01 08:54 pm EDT. |
We are currently having the same problem. Ruby 2.3.8
This happens on the following line in my code: Reached out to support to understand if they could help, they mentioned the developers were informed, a few weeks have passed so just in case adding it here too. Let me know if there's anything I can help with. I don't like the idea of ignoring this error as it can then cause me to miss out on other errors that need my attention. |
Should be resolved with #492. |
Version info
Expected behavior
intercom-ruby
does not raiseNoMethodError
.Actual behavior
Same issue as in #339 that's still not fixed properly.
We started getting
undefined method '[]' for nil:NilClass
atlib/intercom/request.rb:114
after upgrading from 3.5.25 to 3.7.5 and then to 3.7.6. But the problem is older than 3.5.25, so that's probably unrelated.This exception was first fixed in #353, and then reverted/fixed in #359, by adding a handler for
nil
:The problem, however, is that, contrary to the name,
raise_errors_on_failure
doesn't always raise: if it doesn't recognize the HTTP status code it doesn't do anything, sonil
propagates to the next line.Maybe
raise_errors_on_failure
should raise for every response with code>= 400
or at least log the error somehow?Steps to reproduce
I'm not sure how to reproduce it. I don't know which response from Intercom triggers this exception, but the server responding with any unhandled status code without body would trigger the exception.
The text was updated successfully, but these errors were encountered: