Bug in reusing assignments #137250
Replies: 12 comments 10 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.
-
The error Unexpected token '<', "<!doctype "... is not valid JSON indicates that the application is receiving an HTML response instead of the expected JSON. This typically happens when:
|
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 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