10-28-2021 01:16 PM
When I send a request with the following;
POST /auth/v2/auth
it returns => stat: OK instead of stat: FAIL
Solved! Go to Solution.
10-28-2021 02:06 PM
This isn’t a bug! The request didn’t fail. You sent invalid information (a bad passcode) in an API request that succeeded. The information sent with the API response indicates that the passcode validation failed.
{
"response": {
"result": "deny",
"status": "deny",
"status_msg": "Incorrect passcode. Please try again."
},
"stat": "OK"
}
10-28-2021 02:06 PM
This isn’t a bug! The request didn’t fail. You sent invalid information (a bad passcode) in an API request that succeeded. The information sent with the API response indicates that the passcode validation failed.
{
"response": {
"result": "deny",
"status": "deny",
"status_msg": "Incorrect passcode. Please try again."
},
"stat": "OK"
}
10-28-2021 02:31 PM
Sorry, I should have written: validPasscode.
10-29-2021 05:27 AM
Hmm, why would you expect a POST to auth
with a valid passcode to fail?
Either way, a correctly constructed request will return 200 and a result.
Note that userID
isn’t a valid parameter, but user_id
is. If you are truly sending userID
then that is expected to return stat: FAIL
telling you there’s a missing request parameter.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide