Inability to capture errors that come from underlying auth0 spa js package

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

メンテナーはふだん 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 の本文から書いたものです。

説明

auth0-spa-js enhancement
Checklist
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

環境構築

はじめの一歩

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

auth0/auth0-react のほかの issue

auth0/auth0-react の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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