Bug in reusing assignments #137250
Replies: 18 comments 14 replies
-
|
Try clearing your browser cache or using a different browser. If that doesn’t help, you may need to manually duplicate the assignment until GitHub fixes the issue. If the problem persists, contacting GitHub Support is your best option. |
Beta Was this translation helpful? Give feedback.
-
|
Hi all, I have also problem with assignment reuse in GitHub classroom. Reuse of assignments is not working, but I get different error: "JSON.parse: unexpected character at line 1 column 1 of the JSON data". I try different browsers (FF and Chrome) with the same result. |
Beta Was this translation helpful? Give feedback.
-
|
Exact same problem here, thought I was losing my mind as it was working recently. A bug must have been introduced by a recent update. I agree with @sigged that the problem occurs because a GET request is being made to the (as yet uncreated) target assignment URL. This is a pretty significant issue for us as we have a cohort starting very soon. |
Beta Was this translation helpful? Give feedback.
-
|
Same issue with one of my assignments. I then tried with another similar assignment and it worked fine. Went back to the first and still the same error. I wonder if there is something within the assignment repo that causes it. I used the same settings in each assignment except for the name and starting repo. |
Beta Was this translation helpful? Give feedback.
-
|
@github-staff this issue is still occurring. |
Beta Was this translation helpful? Give feedback.
-
|
After clearing cache and browser, as suggested above, the issue is still occurring. Here's a network log (hopefully this helps) |
Beta Was this translation helpful? Give feedback.
-
|
I found out what the issue is. If you try to reuse an assignment into a classroom within the same organisation, it will fail. If you reuse an assignment into a classroom in a different organisation, it will succeed. It seems like Github are trying to force us to use "one classroom per org" which is not how we use it, and I imagine there are many people who have many classrooms per org and want to reuse assignments between them. |
Beta Was this translation helpful? Give feedback.
-
|
Any news on this? Still not working as of yesterday. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Just want to point out that this is still not working and same error keep appearing as everyone else here |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
The @github support for critical issues this like this one is woefully inadequate. This bug continues to impact re-using assignments (something that is pretty critical to the operation of a classroom) with no suggestions/fixes from @github... Similar to others, I am also stuck with the Unexpected token error when attempting to re-use an assignment. |
Beta Was this translation helpful? Give feedback.
-
|
Hi guys. I am encountering the same error. You can create a temp classroom in a new organization to reuse the assignment there. Then, from the new classroom, you can reuse it back to the original classroom. I did it, still there some errors. |
Beta Was this translation helpful? Give feedback.
-
|
I admitted defeat and gave up. I have run into both issues here that @sigged and @nimonian have described. I do not have time to troubleshoot due to the fires that started a few hours after my GitHub Classroom duplicated a single assignment 26 times at the beginning of January 2025. Over a month later I finally found a few minutes to check it, and it says that the assignment still says it has not completed the copy at least it stopped at 26 duplications. I am a big advocate of learning to use version control for my students. However, because of continued issues like this coupled with my newfound severe lack of time while dealing with recovery, my students will lose out on learning experiences such as GitHub Classroom assignments until I get more time to troubleshoot and deal with "workarounds". |
Beta Was this translation helpful? Give feedback.
-
|
Here is a quick work-around from @khammami. Thank you for taking the time to figure this out. When I go to the assignment repository, which has been named something like org-name/class-name-assignment-name, I then change this to a template and then I can re-use it for other classes of the same organization. |
Beta Was this translation helpful? Give feedback.
-
|
As of today (October 15th, 2025) the error persists and is not fixed |
Beta Was this translation helpful? Give feedback.
-
|
I'm running into problems when trying to reuse a group assignment. I think it has to do with the fact that there might not be a group created in the new classroom. As a workaround i tried to create a new group assignment and a group in the classroom as i was suspecting that this was the cause for the problems, but this didn't work. Has anyone figured out what the problem is with reusing group assignments? |
Beta Was this translation helpful? Give feedback.
-
|
As of today (January 23, 2026), the error persists and has not been corrected. |
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.
-
Hi everyone,
We are trying to adapt our workflow to embrace the new assignment creation. Because we need multiple copies of the same assignment, we are considering "reuse assignment".
However, this seems broken now. After selecting a different classroom and clicking "Reuse", we get the following error: "Unexpected token '<', "<!doctype "... is not valid JSON"
Update: reusing seems to work fine when selection a different organisation. But that won't do for our workflow.
Beta Was this translation helpful? Give feedback.
All reactions