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

undefined method `fetch' for an instance of String: nylas/handler/http_client.rb in throw_error #508

Closed
byteg opened this issue Jan 3, 2025 · 0 comments · Fixed by #509
Labels

Comments

@byteg
Copy link

byteg commented Jan 3, 2025

Describe the bug
Nylas gem throws an exception NoMethodError on thread list request:
undefined method 'fetch' for an instance of String
The code:
provider_error = error_obj.fetch(:provider_error, nil)
nylas/handler/http_client.rb in throw_error at line 201

To Reproduce
It's hard to reproduce as we get the error in our Sentry log. The only information we have is the sentry log and that we make a GET request to get the threads list:
result, = nylas.threads.list(identifier: grant_id, query_params: attributes)

Expected behavior
The nylas gem throws NylasApiError

SDK Version:
nylas (6.1.1)

@byteg byteg added the bug label Jan 3, 2025
@kraju3 kraju3 linked a pull request Jan 10, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant