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

Unhandled Runtime Error When Unauthorized #46

Closed
leohxj opened this issue Jun 19, 2023 · 7 comments
Closed

Unhandled Runtime Error When Unauthorized #46

leohxj opened this issue Jun 19, 2023 · 7 comments

Comments

@leohxj
Copy link

leohxj commented Jun 19, 2023

clone and run this repo first time, chat request is not authorized, but the site window got a runtime error:

image

then I set onError options for useChat hook, it still happens.

@YYvanYang
Copy link

same error+1

@ZiggStardust
Copy link

ZiggStardust commented Jun 20, 2023

+1 (local development)

@ZiggStardust
Copy link

If you add VERCEL_ENV="preview" to the .env this resolves the app/api/chat/route.ts request issue - if that's the error your getting

@kahirokunn
Copy link

same error+1

@Austin88-pro
Copy link

Austin88-pro commented Jun 21, 2023 via email

@jaredpalmer
Copy link
Collaborator

This is now resolved as we are now forcing auth, even on preview deployments.

@jaredpalmer
Copy link
Collaborator

If you continue to see this problem, please re-open

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