Trying to update assignment: Cannot verify CSRF Token Authenticity #195399
Replies: 2 comments 9 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Hello @fuhrmanator! Since your lab starts this Wednesday, I understand the urgency. Looking closely at your console logs (TypeError: Cannot read properties of null (reading 'dataset')), this appears to be a frontend regression/bug on GitHub Classroom's side affecting how the form renders the repository visibility or the slug field. The "CSRF Token" error is likely a secondary failure because the broken JavaScript prevents the form from submitting correctly. While waiting for GitHub staff to deploy a fix, you need a workaround to get your assignments ready. Please try these steps: Bypass the Buggy UI (The Duplication Workaround): Instead of updating an existing assignment where the UI crashes, try creating a completely new assignment. Sometimes, the bug only triggers on the 'Edit/Update' page of older assignment templates. Use the GitHub Classroom CLI: Install the CLI. You can often clone, create, or manage assignments directly from your terminal, which bypasses these JavaScript/CSRF web errors. Hard Reload & Different Browser: I hope one of these workarounds allows you to set up the cutoff date for your Wednesday lab! Please let us know if any of these methods successfully bypass the error. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
GitHub Classroom
Hi everyone,
I use GitHub Classroom every summer and I'm trying to set up a new assignment as I always do. EDIT: I don't use the "reuse assignment" feature since it caused headaches in the past. I only use Classroom once a year during summer.
Cannot verify CSRF Token AuthenticitySomething seems to be broken. Any help would be appreciated.
ETA:
When I load the assignment page there are errors in the console:
For privacy reasons I didn't want to paste the assignment URL of the assignment.
Beta Was this translation helpful? Give feedback.
All reactions