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
When requesting unlockTheBarn twice, the second response body is different and it indicates that the order (unlocking the barn) is not done because it's already unlocked.
Severity:
Low
Priority:
Medium
Steps to Reproduce:
Request the following request twice from postman:
URL: /api/USER_ID/barn-unlock
Method: POST
Auth: Bearer Token retrieved from getAccessToken in The_Coop_API.postman_collection.json
Expected Results
First request returns 200 Ok with the following response body { "action": "barn-unlock", "success": true, "message": "You just unlocked your barn! Watch out for strangers!", "data": null }
Second request returns 429 too many requests with the following body to follow best practices { "action": "barn-unlock", "success": true, "message": "The barn is already wide open! Let's throw a party!", "data": null }
Actual Results
Both requests respond with 200 Ok with different response message.
The text was updated successfully, but these errors were encountered:
RadwaSaleh
changed the title
unlockTheBarn should return 429 too many requests but status code is 200
Frequent unlockTheBarn should return 429 too many requests but status code is 200
Mar 23, 2023
RadwaSaleh
changed the title
Frequent unlockTheBarn should return 429 too many requests but status code is 200
Frequent unlockTheBarn should return 429 too many requests but status code is always 200
Mar 23, 2023
Description:
When requesting unlockTheBarn twice, the second response body is different and it indicates that the order (unlocking the barn) is not done because it's already unlocked.
Severity:
Low
Priority:
Medium
Steps to Reproduce:
Request the following request twice from postman:
URL: /api/USER_ID/barn-unlock
Method: POST
Auth: Bearer Token retrieved from getAccessToken in The_Coop_API.postman_collection.json
Expected Results
First request returns 200 Ok with the following response body
{ "action": "barn-unlock", "success": true, "message": "You just unlocked your barn! Watch out for strangers!", "data": null }
Second request returns 429 too many requests with the following body to follow best practices
{ "action": "barn-unlock", "success": true, "message": "The barn is already wide open! Let's throw a party!", "data": null }
Actual Results
Both requests respond with 200 Ok with different response message.
The text was updated successfully, but these errors were encountered: