ai-chatbot
ai-chatbot copied to clipboard
Unhandled Runtime Error When Unauthorized
clone and run this repo first time, chat request is not authorized, but the site window got a runtime error:
then I set onError options for useChat
hook, it still happens.
same error+1
+1 (local development)
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
same error+1
Unsubscribe.
Sent from Yahoo Mail for iPhone
On Tuesday, June 20, 2023, 9:48 PM, kahirokunn @.***> wrote:
same error+1
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
This is now resolved as we are now forcing auth, even on preview deployments.
If you continue to see this problem, please re-open