Error Submiting Graded Assignment (unexpected error)

Hi! I’m getting an error when trying to submit the graded assignment in Week 2. This is the very same issue of this other post in the forum: Unexpected Error in submission of a graded assignment

For what I’ve read this is a backend issue, is this correct? I’ve already tried shutting down and renaming the notebook (as suggested), restore the original version, but nothing seems to work. I attach a screenshot.

(staff edit: removed email)

PD: All tests pass of course, and the grader is correcting exercise number 2, but not the other ones. I also tried using the partial grading comment, but still not working.

Hi. We received your submission in the form. I’m afraid this is a different issue from the link you referred to. In your lab, one exercise is graded correctly so it doesn’t meet the requirement mentioned in the form’s checklist.

This might be a code issue in your notebook. Please wait for a Mentor or staff to reply and help you with troubleshooting. Thank you.

“Unexpected error” from the grader can have quite a few causes.

Usually it’s because you have modified the notebook in some way that has made the grader unhappy.

Things you should not do with your notebook:

  • Rename it.
  • Delete any cells.
  • Delete any content inside a cell - including any comments that you don’t think are important.
  • Move a cell.
  • Copy a cell and then paste it back.
  • Download a notebook, run it on some other platform, and then upload it back for grading.

Chris, thank you for answering! I replied to you but saw the comment of “TMosh”, I wanted to make sure I’m following the instructions he provided. I restored the notebook to it’s original version, filled it out making sure I don’t add or remove any line of code I’m not supposed to, tried to submit it, and still doesn’t work. Then, I downloaded the notebook, shutdown the one in the workspace, deleted it, and uploaded the one I downloaded (with the name ‘C1W2_Assignment.ipynb’), tried to submit it, and still doesn’t work. I’m now sure is not because of my code. Could you provide some help please? I think is related to the post I mentioned before.

Hi! Thank you for your answer, I made sure not to do anything of those things you mentioned, and still is not working. I restored the notebook to it’s original version 3 times, wrote the solutions in the fields specified, without adding anything extra, saved it before submitting, but is only grading the exercise number 2. I tried leaving a “None” in that function intentionally to see how it reacts, and it catches the error. I correct it back, the exercise is again successfully graded but the other 2 are not (it says ‘feedback not available’, and shows the ‘unexpected error’ message).

Please check your personal messages for instructions.

SOLVED

@TMosh helped me solve it, I was using a “reshape” where I didn’t need to. It seems the grader doesn’t tell you where the error is, it just fails, forcing you to inspect the code and find the bug (which is great).

Thanks!

Great! Glad to hear that. Will close this topic now because it’s resolved.