Hi All,
Our stack: Prefect Cloud + K8s + LocalDask
When trying to trigger a flow using GraphQL API (within our Python backend service), we are seeing these errors sometimes..
Copy code
requests.exceptions.RetryError: HTTPSConnectionPool(host='<http://api.prefect.io|api.prefect.io>', port=443): Max retries exceeded with url: / (Caused by ResponseError('too many 502 error responses'))
And
Copy code
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='<http://api.prefect.io|api.prefect.io>', port=443): Max retries exceeded with url: / (Caused by ReadTimeoutError("HTTPSConnectionPool(host='<http://api.prefect.io|api.prefect.io>', port=443): Read timed out. (read timeout=15)",))
Are there any API limits, throttling, etc?
k
Kevin Kho
04/21/2022, 5:09 AM
Yes we do have some form of throttling but the limits are pretty high. How many tasks are you mapping over?
Kevin Kho
04/21/2022, 5:11 AM
Or are you querying the GraphQL with an expensive query?
s
Saurabh Indoria
04/21/2022, 6:29 AM
This error is not displayed in our flow run, instead, in a separate microservice, we use the graphQL queries to trigger a flow run, there it shows this error. I assume at that time a lot of flows might be working with many mapped tasks, hence this issue?
Saurabh Indoria
04/21/2022, 6:30 AM
Also, can you share the limits with me? So that I can see if we might be hitting it?
Also, are those soft limits?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.