Hi,
I have encountered the following annoying problem during the batch ingestion graded assignment in C2W2. I have these tests failed:
Test 3 failed: Response output after Exercise 2 should be in JSON format. Please try again.
Test 4 failed: Response output after Exercise 3 should be in JSON format. Please try again.
The output of these exercises is a list in both cases called responses, as should be, and it contains response elements in JSON format (Python dictionaries).
Can anyone help what is the problem? I have some bug, or the grader?
Best Regards,
Marton
Hello @Klecsany_Marton,
Could you check you didn’t miss any cells before step 2.4 - Optional - API Rate Limits
. You should be able to pass the grader after completing exercise 3, also make sure you control+S and run the last cell after you run the all the cells. Thanks
Hi Georgios.
First, I have run all the cells in the Notebook and they run without any issue. However, I cannot save the notebook, I constantly get this error:
File Save Error for C2_W2_Assignment.ipynb
Invalid response: 403 Forbidden
So I thought that I uploaded the original Notebook and possibly for these two functions I got a None or something, which is not what is expected. It makes sense why I got the grader error then.
Now I think I have managed a shortcut to solve this issue. I can save the notebook in Cloud9, so this is what I have done. I modified the notebook there, and after it was complete, I reloaded in in Jupyter Notebook and ran all the cells, including the update of the 3 files to the S3 bucket. However, I got the same error by the grader.
Then I started over, from the very beginning, closing the lab and launching a new one. After the cloud 9 was up, I modified the notebook file there, after everything was finished I launched the modified Notebook and run all the cells till the end.
I got the same error though and now I have no idea. Either there is some issue with the grader, or in my code, but I do not understand what because there is nothing to debug, they just run correctly as intended…
Hello @Klecsany_Marton,
It looks like the grader cannot pass the test case if it doesn’t save the notebook. Since there is an issue 403 save file error it is not able to see the correct outputs in the notebook. This is my only worry since you should be able to save the jupyter notebook to pass assignments and I am not sure how to fix that. How many times did you try the lab, maybe something in the setup causes this. Hope it helps
3 times in total now, but it was the same at the first start, and as the notebook tries to save itself automatically every 5 minutes, I always get this save error.
Yeah, I guess it’s not the setup from source scripts/setup_jupyter_env.sh
. Sometimes I get that in cloud notebooks and can’t save but did that happen also in other labs in this module or it’s the first time. In that case a lab refresh could help if you follow this link but that could take a couple of days. It looks like more of a saving the notebook issue than the grader, thanks
It already happened yes but I managed to pass other labs so I was not concerned about it. Right now, I started again, this time in a new browser (Firefox) and it still not work, I cannot save.
Other practice labs will not check it and will pass the grader but this one (batch ingestion) and the following week (great expectations) will check the outputs. So you need to fix it to continue.
Since you tried another browser could you check the following:
- Making sure your ad-blocking software is turned off on your browser or network
- Clearing your cache and cookies
- Using a different browser or new browser window