# C2W2 batch ingestion questions

**URL:** <https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812>\
**Category:** Source Systems, Data Ingestion, and Pipelines\
**Tags:** week-module-2, coursera-platform\
**Created:** [November 26, 2024, 11:15am UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812 "2024-11-26T11:15:40Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Klecsany\_Marton](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@Klecsany\_Marton](https://community.deeplearning.ai/u/Klecsany_Marton)\
**Post date:** [November 26, 2024, 11:15am UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/1 "2024-11-26T11:15:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Georgios](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Georgios](https://community.deeplearning.ai/u/Georgios)\
**Post date:** [November 26, 2024, 1:15pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/2 "2024-11-26T13:15:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Klecsany\_Marton](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@Klecsany\_Marton](https://community.deeplearning.ai/u/Klecsany_Marton)\
**Post date:** [November 26, 2024, 1:39pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/3 "2024-11-26T13:39:54Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Georgios](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Georgios](https://community.deeplearning.ai/u/Georgios)\
**Post date:** [November 26, 2024, 1:54pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/4 "2024-11-26T13:54:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Klecsany\_Marton](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@Klecsany\_Marton](https://community.deeplearning.ai/u/Klecsany_Marton)\
**Post date:** [November 26, 2024, 1:55pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/5 "2024-11-26T13:55:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Georgios](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Georgios](https://community.deeplearning.ai/u/Georgios)\
**Post date:** [November 26, 2024, 2:23pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/6 "2024-11-26T14:23:24Z")

</div>

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](https://community.deeplearning.ai/t/data-engineering-troubleshooting-with-aws-issues/697378) but that could take a couple of days. It looks like more of a saving the notebook issue than the grader, thanks

---

<div class="post-metadata">

**Author:** ![Klecsany\_Marton](https://avatars.discourse-cdn.com/v4/letter/k/4af34b/32.png) [@Klecsany\_Marton](https://community.deeplearning.ai/u/Klecsany_Marton)\
**Post date:** [November 26, 2024, 2:34pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/7 "2024-11-26T14:34:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Georgios](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Georgios](https://community.deeplearning.ai/u/Georgios)\
**Post date:** [November 26, 2024, 2:52pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/8 "2024-11-26T14:52:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ebttech2020](https://avatars.discourse-cdn.com/v4/letter/e/d07c76/32.png) [@ebttech2020](https://community.deeplearning.ai/u/ebttech2020)\
**Post date:** [February 13, 2026, 7:40pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/9 "2026-02-13T19:40:49Z")

</div>

Good Afternoon,

I am trying to re-run the function under 2.2 - Get New Release for Exercise 1. When I first ran it it returned data. Now I keep getting this 403 error message and I know it is passing the token and headers.

Any ideas?

 ![image](https://global.discourse-cdn.com/dlai/original/3X/6/2/62e9b42f36a67ddc941ed8581ee5e72667427ca1.png)

---

<div class="post-metadata">

**Author:** ![Richaldo](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/richaldo/32/135596_2.png) [@Richaldo](https://community.deeplearning.ai/u/Richaldo)\
**Post date:** [February 14, 2026, 6:45am UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/10 "2026-02-14T06:45:43Z")

</div>

Good morning @ebttech2020, please confirm if you are using the spotify API or you are using the Mock API?

If you are using the Spotify API, make sure that you have updated the file `src/env` with the credentials that Spotify gave you.

---

<div class="post-metadata">

**Author:** ![christianmtanes](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/christianmtanes/32/126632_2.png) [@christianmtanes](https://community.deeplearning.ai/u/christianmtanes)\
**Post date:** [February 27, 2026, 7:46pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/11 "2026-02-27T19:46:50Z")

</div>

@Richaldo I am having the same issue as @ebttech2020 I am using the Spotify api and not the mock api

---

<div class="post-metadata">

**Author:** ![Richaldo](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/richaldo/32/135596_2.png) [@Richaldo](https://community.deeplearning.ai/u/Richaldo)\
**Post date:** [February 27, 2026, 8:58pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/12 "2026-02-27T20:58:05Z")

</div>

Have you updated your src/env file?

---

<div class="post-metadata">

**Author:** ![christianmtanes](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/christianmtanes/32/126632_2.png) [@christianmtanes](https://community.deeplearning.ai/u/christianmtanes)\
**Post date:** [February 27, 2026, 9:09pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/13 "2026-02-27T21:09:52Z")

</div>

yes, and it worked the first time I did the http request the second time I did the http request it failed

---

<div class="post-metadata">

**Author:** ![Richaldo](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/richaldo/32/135596_2.png) [@Richaldo](https://community.deeplearning.ai/u/Richaldo)\
**Post date:** [February 27, 2026, 9:25pm UTC](https://community.deeplearning.ai/t/c2w2-batch-ingestion-questions/727812/14 "2026-02-27T21:25:29Z")

</div>

Can you share the error you are getting?
