Hello I am currently working through the Wanderlust project on the WebDev path. I will completely admit I am not yet full comprehending all the different concepts that are involved with this project. But I have made it to the point where they ask you to log the response from the API out to the console, to make sure you have a valid response. But when I do this I get a 400 error back. Did I do something wrong?
So I think I figured this out shortly after posting this question. However I would be interested to know why what I did fixed my issue. So when was having the 400 error issue I had the Const url variable set as follows:
This is why the extra space in the URL caused your issue:
That space became a %20 when the full URL was requested, so the API for Foursquare didn’t know what you were requesting. Foursquare was specifically looking for the value of near, but it saw %20near.