Open TomHessburg opened 1 month ago
I have had this happen locally when I had multiple supabase sessions in cookies causing the header to be too large, or when I parsed an error message in the header which caused it too become too long. Hope that helps..
This has been happening to me for about the past 3 weeks as well. Can't get logs from Vercel as it doesn't execute my middleware and can't get a stable reproduction. Only happens for some users, but it's persistent.
Bug report
Describe the bug
I've been putting together an application which uses Azure oAuth for the past week or so. Everything has been running smoothly, but I recently began receiving 431 REQUEST_HEADER_FIELDS_TOO_LARGE errors. Removing some scopes was working for a while, but at this point, even minimal scopes hits this issue. Ideally I'm trying to request my dynamics environment + offline_access scope to get a refresh token.
I haven't 1000% been able to rule out user error here, but everything I can tell matches up with what's in the docs. I've seen some similar issues from others, mainly using Svelte, and those recommended using the chunk helped functions, but theres no documentation on those.
For reference, I'm using the following while signing in:
and the following middleware
It's quite odd that this seems to be getting worse over time. I had no issues for the past week+, began having issues in my production deployment but only with all scopes, and now can't access anything in the prod deployment or my local, even with minimal scopes.
Hoping this isn't basic user error, but If it is, I'm not seeing where!
Any help greatly appreciated!
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
Supabase Azure oauth does not lead to 431 REQUEST_HEADER_FIELDS_TOO_LARGE.
Screenshots
System information
Additional context
Think that covers it!