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

The .json() function call is stuck on promise "pending" in middleware #1

Open
maskeynihal opened this issue May 1, 2023 · 1 comment

Comments

@maskeynihal
Copy link
Owner

Steps to reproduce:

  1. Complete the installation of both backend and frontend
  2. Go to /login
  3. Click on Login button email and password are predefined
  4. Redirected on success to /dashboard and logged in user is shown.
  5. The whole process is completed. View the console

image

  1. Now go to /middleware/dashboard, the page is stuck
  2. The process is stuck on .json() ie Converting request to json.

image


TLDR;
⚠️ The .json() function of fetch is stuck in middleware but working fine in server components.

@maskeynihal
Copy link
Owner Author

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

1 participant