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

ERR_TOO_MANY_REDIRECTS Bug #167

Open
cameronapak opened this issue Jun 3, 2024 · 3 comments
Open

ERR_TOO_MANY_REDIRECTS Bug #167

cameronapak opened this issue Jun 3, 2024 · 3 comments
Assignees

Comments

@cameronapak
Copy link

Hey astro-clerk-auth team, I'm running into an ERR_TOO_MANY_REDIRECTS error that I wanted to share. I've seen something very similar on clerk/javascript#1436 but I can't seem to find the right fix.

I've implemented your Astro Clerk integration easily. Thank you for this!

However, I am running into an error and need some help.

Here's a screenshot of what I'm encountering:

CleanShot 2024-06-03 at 08 44 04@2x

Lots of users are running into this.

Some things to know:

  • The site is hosted on Netlify
  • Running on v20.10.0 of node
  • "astro-clerk-auth": "^0.7.0"

Let me know if there's any other information that's needed. Thanks!

You can visit the website it's on at https://faith.tools

@cameronapak
Copy link
Author

Some solutions people offer to solve the ERR_TOO_MANY_REDIRECTS error:

  1. Make sure the server is synced with your current timezone. (Still unsure on how to do this on Netlify and if it's necessary)
  2. Downgrade from node v20 to v18. I tried but ran into an issue where node v20+ was needed for a dep

@panteliselef
Copy link
Owner

Hey @cameronapak thanks for reaching out here. For faster communication i'd open an issue in the official Clerk discord server and tag me.

Otherwise could you share what was the full url when this happened ? Also a few more steps on how to reproduce ? Like is this after signin/up or when people are logged out ?

@panteliselef panteliselef self-assigned this Jun 13, 2024
@cameronapak
Copy link
Author

I unfortunately don't have the full URL. However, I do know that clerk somewhere in the middleware attached a URL param to the URL. Only then is when I encountered the too many redirects bug.

I did have the site server side rendered, but also cached... that may be the issue. Therefore, I've decided to approach it client-side. I'll do that soon.

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

2 participants