-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
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
ClerkJS: Token refresh failed. TypeError: Failed to fetch. Please try again. #1616
Comments
👋 Hey there @kachar! this is an issue that can happen with bots, but if it's happening with users it's a concern. If it's a bot, we should be able to block the bot as well (cc @anagstef) Have you seen this error reported by real users or been able to reproduce it in any way? If not, you may be able to mute the error and move on. @manutzsong - this seems like it is a separate issue, would you be willing to open a new issue to discuss this? Any more details you can provide, or a reproduction would be very useful here too. |
@jescalan - we are getting a token refresh issue as well. it's a bad issue because the client essentially is locked out from the website and has to change browsers or clear cache. can you please look into this? It's not acceptable for customers to be dealing with this & I see the same sentry errors as @tmcw . I unfortunately cannot recreate this issue locally. |
We'll discuss this one again, but it's quite difficult to look into without any way to reproduce it. Thank you both for the followup! |
Hello @Andriy-Kulak, The above error is related to a NetworkError which may be caused by :
Is it possible to have any of the following information:
|
@dimkl there were no cors errors This is the full error (abstracted our domain). What is HAR? does below help?
This is not related to a firefox add on so JakeChampion/fetch#310 doesn't seem related |
@Andriy-Kulak the Also, you can generate a HAR file following this: https://www.inflectra.com/Support/KnowledgeBase/KB254.aspx Since you didn't find any CORS or Network related information on your Dev Tools a https://replay.io/ recording would be really helpful to pinpoint the issue. |
Hello 👋 We currently close issues after 40 days of inactivity. It's been 30 days since the last update here. If we missed this issue, please reply here. Otherwise, we'll close this issue in 10 days. As a friendly reminder: The best way to see an issue fixed is to open a pull request. If you're not sure how to do that, please check out our contributing guide. Thanks for being a part of the Clerk community! 🙏 |
hello, I am experiencing this as well running on cloudflare pages togheter with remix. There is no pattern to this |
Also experiencing this with nextjs. And like @tmcw 's comment above, it seems to make many requests of which most succeed but the last one fails |
This comment was marked as off-topic.
This comment was marked as off-topic.
Hey everyone - we're sorry that this is a frustrating error. We have discussed this as a team on several occasions, it's a generic network error that can happen for a variety of reasons, and is very difficult for us to look into without a way to consistently reproduce it. We're going to leave this issue open for now in case anyone is able to find a way to reproduce, but want to note that we aren't actively working on it. If anyone is able to produce a reproduction or is aiming to do so, this guide would maybe be helpful - alternately if it can be captured via replay that would be very useful as well. |
@jescalan As a developer, I will try to describe how to reproduce as best as I can.
The next few steps are Pure theories, guesses. I suspect one of them is why I have seen this error twice in the last three days.
Next time I encounter this error I will share the HAR file. I work from several cafe's during the day for fun while coding, and I don't consistently get the error even then, so please remember the above is just my best guesses. |
Hello 👋 We currently close issues after 40 days of inactivity. It's been 30 days since the last update here. If we missed this issue, please reply here. Otherwise, we'll close this issue in 10 days. As a friendly reminder: The best way to see an issue fixed is to open a pull request. If you're not sure how to do that, please check out our contributing guide. Thanks for being a part of the Clerk community! 🙏 |
After 8 days without a reproduction being supplied, we are closing this issue. Keep in mind, I'm just a robot, so if I've closed this issue in error, please reply here and my human colleagues will reopen it. Likewise if a reproduction is prepared after it has been closed. |
Hey - Did anyone in here get to the bottom of this? I agree with @saahirfoux that it's a timeout of sorts. If I leave a browser tab open and come back a few hours later there is an error waiting for me I understand it's hard to replicate to fix but can you give any guidance on how I can catch it? |
Hey @jescalan , I'm seeing this error quite a bit in my app. The app is pay walled so I'm confident that these are real users (not bots). Not sure if this helps but it looks like the error is origination from The error is
I currently only have one session reply but it happens about 2 min and 20 seconds after the user verifies their email after creating the account. |
Package + Version
@clerk/clerk-js
@clerk/clerk-react
@clerk/nextjs
-4.23.2
@clerk/remix
@clerk/types
-3.49.0
@clerk/themes
-1.7.5
@clerk/localizations
@clerk/clerk-expo
@clerk/backend
-0.27.0
@clerk/clerk-sdk-node
@clerk/shared
@clerk/fastify
@clerk/chrome-extension
gatsby-plugin-clerk
build/tooling/chore
Dependencies + versions
Provide a json with the dependencies used in your project (copy paste from yarn.lock / package-lock.json) or a github project / template that reproduces the issue.
Include the @clerk/ packages and their versions!*
Example:
Browser/OS
If applicable e.g.
Chrome {version}
,Node {version}
,Bun {version}
,Cloudflare worker {version}
Description
We're experiencing a severe number of errors reported by Sentry regarding the Clerk user authentication. It happens ad-hoc and between releases.
Is there anything we can do to improve this process and reduce the errors for our customers?
The text was updated successfully, but these errors were encountered: