|
|
@@ -231,7 +231,10 @@ class _AirbnbClient(ServiceClientBase):
|
|
|
async def _attempt() -> httpx.Response:
|
|
|
return await self._http.get(url, params=params, headers=self._headers(referer))
|
|
|
r = await self._request(_attempt, op=op)
|
|
|
- return r.json()
|
|
|
+ body = r.json()
|
|
|
+ if errors := body.get('errors'):
|
|
|
+ _log.warning('Airbnb: %s returned GQL errors (data=%r): %r', op, body.get('data'), errors)
|
|
|
+ return body
|
|
|
|
|
|
async def _mutate(self, op: str, h: str, variables: dict, referer: str) -> dict:
|
|
|
url = f'{_BASE}/{op}/{h}?operationName={op}&locale=en¤cy=USD'
|