Travel Advisor

フリーミアム
Verified
よって Api Dojo | 更新済み 23 days ago | Transportation
人気

9.9 / 10

レイテンシー

2,809ms

サービスレベル

100%

Health Check

N/A

すべてのディスカッションに戻る

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

Rapid account: Info JL Ylb 5 Hqm
info-JLYlb5Hqm
a year ago

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 a year ago

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

Rapid account: Apidojo
apidojo Commented a year ago

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.

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿