Inability to capture errors that come from underlying auth0 spa js package
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- react, typescript
調査の方向性
Start by tracing how auth errors from the underlying auth0-spa-js package reach the React SDK, then check the SDK API documentation and existing error handling. The issue asks for a callback to handle those errors; done means the callback can receive them and callers can handle them, with tests covering the behavior. The payload does not identify a source file or test.
索引モデルが issue の本文から書いたものです。
説明
Checklist
- The issue can be reproduced in the auth0-react sample app (or N/A).
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
I get this error often, the failed to fetch error. I understand that that cannot be solved, however I would like to handle it better then it just being thrown. Ideally for underlying errors there is a callback that we can attach to and handle the error ourselves.
if there is a solution here I am missing feel free to point it out
Error
Failed to fetch
mechanism
generic
handled
true
node_modules/@auth0/auth0-react/node_modules/@auth0/auth0-spa-js/dist/auth0-spa-js.production.esm.js:1:22246
in
o.port1.onmessage
{snip} geChannel;i.port1.onmessage=function(e){e.data.error?o(new Error(e.data.error)):n(e.data),i.port1.close()},t.postMessage(e,[i.port2])}),We=( {snip}
//# sourceMappingURL=auth0-spa-js.production.esm.js.map
Reproduction
this is intermittent and hard to reproduce
Additional context
No response
auth0-react version
2.30.0
React version
19.3.1
Which browsers have you tested in?
Chrome
- 主要言語
- TypeScript
- スター
- 992
- フォーク
- 292
- 平均マージ
- 10時間 29分
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
auth0/auth0-react のほかの issue
-
Users getting logged out with "Unsuccessful Refresh Token exchange, reused refresh token detected"オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
auth0/auth0-react#929 · コメント 19 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
auth0/auth0-react#562 · コメント 14 件 ·
メンテナーはふだん 1 日以内に返信
auth0/auth0-react の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
milind-soni/OpenMausBot#6730 ·
メンテナーはふだん 1 日以内に返信
-
`@angular/[email protected]` depends on vulnerable Vite 7.3.7 - GHSA-p4f5-76q4-ffq7 (Critical RCE)オープンarea: @angular/build
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
angular/angular-cli#34764 ·
メンテナーはふだん 1 日以内に返信
-
status/need-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
google-gemini/gemini-cli#30384 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
P2
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
area:image documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信