Just for context, I have a lot of experience using APIs with Javascript, so I’ve done a lot of trouble shooting on my own, and I’m just stumped.
I am using the Yelp Fusion API: (I tried to put the link it but was not allowed)
I signed up for an API key and tested it with postman. The JSON returned looks like this (just including the first object):
{
“businesses”: [
{
“id”: “WOVHQYzSAdyXYOiYDTmujQ”,
“alias”: “the-bird-san-francisco”,
“name”: “The Bird”,
“image_url”: “https://s3-media1.fl.yelpcdn.com/bphoto/swsVh8zitzh6gipKB4zaUA/o.jpg”,
“is_closed”: false,
“url”: “https://www.yelp.com/biz/the-bird-san-francisco?adjust_creative=nRHTIQ6ITEoi47zek_0lSg&utm_campaign=yelp_api_v3&utm_medium=api_v3_business_search&utm_source=nRHTIQ6ITEoi47zek_0lSg”,
“review_count”: 1950,
“categories”: [
{
“alias”: “chickenshop”,
“title”: “Chicken Shop”
},
{
“alias”: “sandwiches”,
“title”: “Sandwiches”
}
],
“rating”: 4.0,
“coordinates”: {
“latitude”: 37.78724,
“longitude”: -122.39995
},
“transactions”: [
“delivery”
],
“price”: “$”,
“location”: {
“address1”: “115 New Montgomery St”,
“address2”: null,
“address3”: “”,
“city”: “San Francisco”,
“zip_code”: “94105”,
“country”: “US”,
“state”: “CA”,
“display_address”: [
“115 New Montgomery St”,
“San Francisco, CA 94105”
]
},
“phone”: “+14158729825”,
“display_phone”: “(415) 872-9825”,
“distance”: 41.667537325551386
},
…
Then I started with a remix of the Restaurant Suggestion demo app. It worked as ison my phone.
Then I put my own API key in the Header (Authorization: Bearer )
Now when I try to use it, a message pops up that says “Something has gone wrong. Check your blocks and reset the page”
Given that the only thing I changed was the API key, and I have tested that outside of Thunkable, I am unsure how to troubleshoot. It would be great if there was a debugging console that could be accessed through the web builder and the app!