We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timeout時に延々CircleSpinnerが回るのは悲しい
そもそもtimeout 1000msが短いかも https://github.com/kure-kosen/cho_kure_web/blob/feature/react/frontend/src/api/RestClient.ts#L13
timeout 1000ms
The text was updated successfully, but these errors were encountered:
c.f. axios/axios#934 (comment)
上記だとミスるとリトライし続けてセルフdos攻撃になりそう retryフラグを手動で設定すると、axios側で不明なkeyをデリートしてるみたいで失敗した 雑に書くとこんな感じ
axios.interceptors.response.use( response => response, error => { if (error.config) { return axios.request({ ...error.config, retry: 1 }); } return Promise.reject(error); } ); axios.interceptors.request.use( request => { if(retryフラグ) return null; return request; }, error => { return error; } );
Sorry, something went wrong.
https://www.npmjs.com/package/axios-retry
No branches or pull requests
timeout時に延々CircleSpinnerが回るのは悲しい
そもそも
timeout 1000ms
が短いかもhttps://github.com/kure-kosen/cho_kure_web/blob/feature/react/frontend/src/api/RestClient.ts#L13
The text was updated successfully, but these errors were encountered: