Travel Advisor

FREEMIUM
Verified
By Api Dojo | Updated 14 дней назад | Transportation
Popularity

9.9 / 10

Latency

2,607ms

Service Level

100%

Health Check

N/A

Back to All Discussions

restaurants/v2/list returns unhandled exception when sending an updateToken

Rapid account: Info JL Ylb 5 Hqm
info-JLYlb5Hqm
год назад

Hello,

Thank you for the great API, it is very useful. Currently I am trying to retrieve information about dog-friendly restaurants in different locations. When I try to use updateToken, the response comes with an unhandled exception. The same logic for getting the hotels list and using updateToken worked correctly.

For example, I get the geoId and updateToken for Wiesbaden, Germany, using the following query:
URL: https://travel-advisor.p.rapidapi.com/locations/v2/search

Request body:
{
“query”: “Wiesbaden,Germany”,
“updateToken”: “”
}

I get the updateToken value from the section with “trackingTitle”: “FilterChipCard_RESTAURANTS”. After that, I send another request to get the list of restaurants AND a next update token.

URL: https://travel-advisor.p.rapidapi.com/restaurants/v2/list?currency=USD&units=km&lang=en_US

Request body:
{
“geoId”: 187346,
“sort”: “POPULARITY”,
“sortOrder”: “desc”,
“filters”: [
{
“id”: “option”,
“value”: [
“20996”
]
}
],
“updateToken”: “// value of update token”
}

Result (part of the response):
“status”: {
“typename”: “AppPresentation_QueryResponseStatus”,
“message”: “Unhandled exception: DMSWFRLU6BA32I2M4RLCJZ5CETCUP6555USGATWRCLJVKDKJ4YMQ====”,
“success”: false,
“pollingStatus”: null
}

The same request without an updateToken value works absolutely fine, but I need to retrieve more than 30 restaurants for a location. Please help.

Rapid account: Info JL Ylb 5 Hqm
info-JLYlb5Hqm Commented год назад

@apidojo, thank you so much, it worked, and I can receive the whole list of restaurants now. Many thanks 😃

Rapid account: Apidojo
apidojo Commented год назад

Hello,

There are several updateToken returned in the response, and I believe you used the wrong one. You need to use the one with text -> string:“Show more” as shown in the screenshot https://prnt.sc/47ArxrS502S0

Regards.

Join in the discussion - add comment below:

Login / Signup to post new comments