nylas / nylas/nylas-python

'str' object has no attribute 'error'

Open
#401 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
109
Forks
85
Avg merge
1d 21h
Merged PRs (30d)
1

Description

Describe the bug
December 6-7 we would see this exception thrown a few hundred calls per day. They stopped for a while but reappeared again on Jan 2. It also looks like APIs were completely down for about 15 minutes yesterday, as we could see another exception with Bad Gateway: The upstream server is unavailable, please try again... during that shorter timeframe.

Screenshot 2025-01-03 at 09 47 47

To Reproduce
This seems to be random with intermittent issues on the Nylas API itself.

Expected behavior
Better exception handling and bubble up a more descriptive error that we can use to handle this case.

SDK Version:
6.4.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by investigating the Nylas API failure path in SDK 6.4.0 and the reported "'str' object has no attribute 'error'" exception. Trace how the intermittent Bad Gateway response is handled; done means a descriptive exception is surfaced for this failure instead of the current attribute error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.