Skip to content
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

401 Unauthorized at localhost. Clerk error integration #178

Open
cavaco-jeronimovallelunga opened this issue Dec 13, 2023 · 10 comments
Open

Comments

@cavaco-jeronimovallelunga

Have you experienced this bug with the latest version of the template?

Yes

Steps to Reproduce

  1. Installing grunge-stack
  2. Integrate Clerk according to official documentation (https://clerk.com/docs/quickstarts/remix)
Screen Shot 2023-12-13 at 11 53 29

Expected Behavior

Redirect to the sign-in screen.

Actual Behavior

Infinite loop because of 401 Unauthorized

@smorimoto
Copy link

Once I comment out ErrorBoundary, the problem seems to go away. In other words, the ErrorBoundary may have a bug.

@smorimoto
Copy link

So this issue should probably be opened in the Clerk repository.

@alrightsure
Copy link

Did you end up solving this/opening the issue with Clerk? I tried searching their repo but didn't find it. I am having the same issue as well.

@scottmuangsrichan
Copy link

Getting the same error. An infinite loop for GET request with a 401 error code. Commented out the ErrorBoundary now just getting a solid 401 on the page without the infinite loop.

Has anyone found any resources or solution to this issue ?

@stormynight9
Copy link

stormynight9 commented Mar 26, 2024

I'm having the same issue here. Weird. However it works fine on a different browser.

@scottmuangsrichan
Copy link

Hmm what browser for you was causing the issue and what was the browser that happen to work for you?

@stormynight9
Copy link

stormynight9 commented Mar 26, 2024

@scottmuangsrichan Didn't work on my current instance of Chrome but it does work on Edge.

I just added export const ErrorBoundary = ClerkErrorBoundary(); to my root.tsx and everything is working fine for now.

Skill issue on my part

@scottmuangsrichan
Copy link

@stormynight9 okay ya, unfortunately that line of code was the thing causing the error for me. So not sure what the work around is other than rip it out of the project and use a different auth provider.

@rootsrk
Copy link

rootsrk commented Apr 9, 2024

I am facing the same issue as well! Is there a workaround for this?

@scottmuangsrichan
Copy link

@rootsrk haven't found a workaround yet. You can check with the Clerk Discord community and submit a request for help to see if anyone there has found a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants