Issues with Course 2 Week 2 Lab 1 Assignment

Please, I need help on this paginated_new_release function. I don’t know why the code is wrong. I will be glad if anyone can help out as soon as possible because I have spent hours debugging the code in vain. Please check the attached image.

Hello @Giwabest

I could reproduce the issue when I used the wrong values in the kwargs** dictionary. Could you check in Exercise 2 paginated_new_releases when creating the dictionary you are using the correct values and not hardcoding them:

        kwargs = { 
            
            "url": url,
            "access_token": access_token,
            "offset": offset,
            "limit": limit,
        }

instead of:

    kwargs = { 
        
            "url": 'url',
            "access_token": 'access_token',
            "offset": 'offset',
            "limit": 'limit',
        }

You could check in Exercise 3 paginated_with_next_new_releases how to create the kwargs** dictionary. Hope it helps

It worked, but I am still not getting the required output as shown here:

I guess I didn’t understand what they meant iby the use of the “the new offset”

Heĺlo @Giwabest,

Could you check in exercise 1 get_new_releases you are using the correct url (url = request_url)

Thank you very much. I have edited it, it now worked.

1 Like