You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to run terraform plan in a workspace that manages some statuscake_uptime_check resources, we will intermittently get failures that cause the plan to hard error. However, there's no information in the error to suggest a cause, let alone a solution.
Error: failed to get uptime check with ID: undefined response type: failed to deserialise error response
To Reproduce
This is an intermittent error so I don't expect reproduction to be easy/likely. Best guess would be an intermittent outage in the Statuscake API itself and/or an unclear rate limit. The workspace manages 5 uptime checks.
Expected behaviour
Either no error, or an error that actually tells us what's wrong.
Screenshots
Additional context
These plans run in an HCP Terraform environment, so getting any additional diagnostic information may be difficult, if not impossible.
The text was updated successfully, but these errors were encountered:
Looking at Statuscake's API docs, it appears especially likely that ratelimiting is the issue, in which case the problem is the Provider is not handling that properly.
Poking around the docs more, I see that the rate limit side of this is a misconfiguration on my end. I wouldn't have expected to need to configure retry logic on the provider settings, but it's at least something the provider allows for, even if it's not automatic. That leaves the remaining issue that the provider is displaying non-actionable errors and/or the API is providing response data in a way the Go SDK cannot handle properly (and therefore can't pass along actionable information to the provider to give to us).
Can confirm that adding
retries=2min_backoff=5max_backoff=10
to my statuscake provider block resolves the errors I was receiving, confirming they were rate limit based.
Describe the bug
When attempting to run
terraform plan
in a workspace that manages somestatuscake_uptime_check
resources, we will intermittently get failures that cause the plan to hard error. However, there's no information in the error to suggest a cause, let alone a solution.Error: failed to get uptime check with ID: undefined response type: failed to deserialise error response
To Reproduce
This is an intermittent error so I don't expect reproduction to be easy/likely. Best guess would be an intermittent outage in the Statuscake API itself and/or an unclear rate limit. The workspace manages 5 uptime checks.
Expected behaviour
Either no error, or an error that actually tells us what's wrong.
Screenshots
Additional context
These plans run in an HCP Terraform environment, so getting any additional diagnostic information may be difficult, if not impossible.
The text was updated successfully, but these errors were encountered: