Week 2 Assignment: Batch Processing to Get Data from an API

When I am clicking on href which came as a output I am getting 401 error everytime it is saying unauthorised token.
Is this the reason I am not getting graded?
Can you please help me with this issue?

Hello @mayankj7,
Yes 401 happens after 60 minutes the token expires. You could run get_token to renew it thanks

I just did what you said but still getting the same 401 error while clicking on href

Hello,
When you run :

token = get_token(client_id=CLIENT_ID, client_secret=CLIENT_SECRET, url=URL_TOKEN)
print(token)

You should get that output and it explains about that error, I am running the code locally and you should have similar outputs:

Can you show me your output when you click on href?

Sure but I have to wait 60 minutes(3600 seconds) to reproduce it to show you the issue you have:

Hello @mayankj7,
I let the timer run out and got an error and had to rerun the get_token function cell at the start and fixed it. I also get that error when I click the url but that shouldn’t prevent you from completing the assignment. I hope its helpful

@mayankj7,
I can see a bug in the exercise 3 paginated_with_next_new_releases,
You are using in the dictionary :

    kwargs = {
            "url": url,
            "access_token": access_token,
            "next": "next _page"

the correct should be:

    kwargs = {
            "url": url,
            "access_token": access_token,
            "next": ""

Could you change that and run part 5 to upload and try submitting, also remove your code, thanks

I changes that code and saved my notebook and then submitted still not getting any grade @Georgios

Hello,
Could you check you run the last part before submitting:

@Georgios Sorry I forgot to check the last part now I have passed this assignment thank you so much for your help throughout this assignment really appreciate it.

1 Like