C2W2 lab Batch Data Processing from an API getting an infinate loop for the function paginated_with_next_new_releases

The problem happen at this line where it is not able to get the next value
“”"

Reassign the value of next_page as the ‘next’ value from the response[“albums”] dictionary.

next_page = response.get(‘albums’).get(‘next’)
“”"
Therefore I’m getting into an infinate loop where it will keep printing URLs

1 Like

Hello @Ammaro,

Could you check in Exercise 1 get_new_releases when you perform a get() request using the request_url and headers you use the correct url (url=request_url). Thank you

1 Like

thanks you so much Mr @Georgios . it works now.