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
Error: 422 can't verify CSRF token authenticity
on explore page
#30066
Comments
I am unable to reproduce this issue, and no request here should involve a CSRF token afaik. |
I am currently able to reproduce reliably. Are there any logs or additional info I could provide? |
If you are able to get your browser's network log (which is more work on mobile), I would be interested in knowing which request fails with a 422 error. |
You were correct - that did indeed take some work haha Response headers
Request headers
Notes to future self: to do this:
|
Thanks, that is very helpful! It seems like the failing request is not preventing browsing |
I still can't reproduce the issue nor find a code path that would trigger an attempt to save settings. Can you reliably reproduce this? If so, are you doing anything unusual? Do you perhaps use a browser extension that would interact with Mastodon? |
Yes.
I don't think so. I had the "uBlock Origin" add-on enabled, but disabling it doesn't change the behaviour. Curiously, if I open a private browsing tab, and go to the same site I get a different but similar behaviour. Now the list shows the same posts (currently stopping after only 2 posts) but doesn't then deliver the error code. |
There being only two trending posts is not indicative of any error. There being only two trending posts is expected for a small server with little activity. The only error is the 422 error, which is caused by an attempt to save settings for a logged-out user. However, I currently don't understand what could have triggered it. |
I'm happy to clear my cache to see if that resolves it, but if that does resolve it then I assume that removes the possibility of us working out what the underlying issue is? I tried logging out of any other logged in mastodon servers (there were 2) but that didn't change anything. |
So every time you visit https://typo.social/explore while logged out on your browser on Android, you get the 422 error? I wonder if the debugger could help us get some info there. Try opening the debugger and going to “Breakpoints” → “XHR Breakpoints” and add a breakpoint on |
Correct.
|
Steps to reproduce the problem
On desktop (Windows, Firefox) no error is produced, but scrolling stops at the same point, suggesting to me that the error occurs but is not communicated.
Expected behaviour
No error
Actual behaviour
Error (and then no additional posts will load)
Detailed description
Also reported here:
Mastodon instance
typo.social
Mastodon version
v4.2.8
Browser name and version
Firefox on Android, 124.2.0 (Build #2016012559), 7a0e399c7b+ GV: 124.0.2-20240401114208 AS: 124.0 2024-04-01T17:18:00.821594648
Operating system
Android 13
Technical details
No response
The text was updated successfully, but these errors were encountered: