Hey dear Prefectionists, I am running into weird e...
# prefect-community
r
Hey dear Prefectionists, I am running into weird errors with my K8s cluster workloads. The flows actually keep crashing with a 502 Bad Gateway error that mentions a Prefect Cloud URI:
Copy code
prefect.exceptions.PrefectHTTPStatusError: Server error '502 Bad Gateway' for url '<https://api.prefect.cloud/api/accounts/><ACCOUNT>/workspaces/<WORKSPACE>/logs/'
For more information check: <https://httpstatuses.com/502>
Worker information:
    Approximate queue length: 0
    Pending log batch length: 1
    Pending log batch size: 360
The log worker will attempt to send these logs again in 2.0s
Is it possible that there are too many log messages sent and the Prefect Cloud API can not respond in time? Cheers!
1
g
Hey Robin, without further info it's hard to say for sure, but I think there may be an issue with your flow code. Check out this discourse issue as it may point you in the right direction https://discourse.prefect.io/t/timeout-error-for-long-running-tasks-running-prefect-2-0-in-wsl/639/4