prratek_ramchandani
02/19/2021, 8:44 PMExtraction failed (1): requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: <https://nymag.zendesk.com/api/v2/tickets/214/comments.json>
but it’s not always the same ticket ID or endpoint. The extractor starts running smoothly and the first few API calls succeed but less than a minute in one will fail. The URL in question fetches a response successfully in my browser.taylor
02/19/2021, 8:47 PMprratek_ramchandani
02/19/2021, 8:51 PMdouwe_maan
02/19/2021, 8:51 PMIf the rate limit is exceeded, the API responds with a HTTP 429 Too Many Requests response code and a body that details the reason for the rate limiter kicking in.
douwe_maan
02/19/2021, 8:51 PMdouwe_maan
02/19/2021, 8:52 PMprratek_ramchandani
02/19/2021, 8:53 PMtickets/<id>/comments
and once on tickets/<id>/metrics
dan_ladd
02/19/2021, 8:54 PMprratek_ramchandani
02/19/2021, 8:56 PMdouwe_maan
02/19/2021, 8:59 PMdouwe_maan
02/19/2021, 8:59 PMprratek_ramchandani
02/19/2021, 9:00 PM--select tickets.*
throw in to see if that works and we’re now two minutes in, which is further than I got with previous triesprratek_ramchandani
02/19/2021, 9:08 PMdouwe_maan
02/19/2021, 9:25 PMdouwe_maan
02/19/2021, 9:27 PMdouwe_maan
02/19/2021, 9:27 PMprratek_ramchandani
02/19/2021, 9:30 PMticket_comments
stream. i think tap-zendesk
fetches metrics and comments on a per ticket basis so it would fetch a ticket, fetch it’s comments and metrics, then move on to the next. so i think it had synced some rows for the base tickets stream but i’m not sure.prratek_ramchandani
02/19/2021, 9:31 PM