Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Middleware parsing error and refresh loop #58

Closed
matteobad opened this issue Feb 24, 2023 · 2 comments
Closed

Middleware parsing error and refresh loop #58

matteobad opened this issue Feb 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@matteobad
Copy link

matteobad commented Feb 24, 2023

Describe the bug
Hi, I've been working with the T3 turbo template with Clerk in a project and this was a great reference, but there was a small, non-blocking, problem that I opened here: clerk/javascript#840 and that was fixed pretty quickly.

Now the error mentioned in the above issue is gone, but every page gets stuck in a loading loop triggered by some clerk script tag in the html (screenshot below). I'm reporting things here because this template gives me the exact same errors.

To Reproduce
Steps to reproduce the behavior:

  1. Update @clerk/nextjs to 4.11.0
  2. Go to homepage
  3. Sign In
  4. See the refresh loop

Expected behavior
No error in the middleware and no refresh loop

Screenshots
The refresh that causes the loop
Schermata 2023-02-24 alle 14 38 20

Desktop (please complete the following information):

  • OS: macOS Monterey 12.6.2 (21G320)
  • Browser chrome, safari
  • Version 110.0.5481.100 (Build ufficiale) (x86_64)

Additional context
Old issue present in the template: clerk/javascript#840
New issue after updating the library: refresh loop

@matteobad matteobad added the bug Something isn't working label Feb 24, 2023
@perkinsjr
Copy link
Contributor

Can you please update to 4.11.0 which was released today. This isn't related to T3-Turbo-and Clerk but clerk itself.

@perkinsjr
Copy link
Contributor

Closing this in favor of the issue you opened in the core javascript lib.

clerk/javascript#865

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants