'str' object has no attribute 'error'
Nobody has claimed this yet.
- 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.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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