Kenso

invalid_state

The resource is in a state that does not allow this action, such as a request that is no longer pending or a disconnected connection. An OAuth step answers 400 when its state is missing or expired.

HTTP 400HTTP 409

What it means

The resource is in a state that does not allow this action, such as a request that is no longer pending or a disconnected connection. An OAuth step answers 400 when its state is missing or expired.

How to fix it

Read the resource again, check its status, and do what that status allows.

Where it comes from

400 invalid_state from 1 endpoint:

409 invalid_state from 46 endpoints, such as:

The error body carries this code in error.code. Branch on the code, not on message. See the errors guide.

More