nylas / nylas/nylas-python

'str' object has no attribute 'error'

オープン
#401 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
Python
スター
109
フォーク
85
平均マージ
1日 21時間
マージ済み PR(30日)
1

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず SDK 6.4.0 における Nylas API の失敗経路と、報告されている例外 "'str' object has no attribute 'error'" を調査します。断続的に発生する Bad Gateway 応答がどのように処理されるかを追跡します。この失敗に対して、現在の属性エラーではなく説明的な例外が返されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api, backend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。