Hi! I claimed my Postman Introduction - HTTP API badge on the application page
and then got the following email:
Hey there!
Your submission for the Postman badge failed one or more tests. Please fix the issues, save your changes, then resubmit in order to get your badge.
Check Request 1: Cannot read properties of undefined (reading āfindā)
Best regards,
Postman Developer Relations Team
I would like to fix the issue but I donāt know how to find the reason for the issue.
What does āCheck Request 1: Cannot read properties of undefined (reading āfindā)ā mean?
Where can I look for that āRequest 1ā?
I am also getting the same issue, if you dont mind share ur public collection id or provide a json output
I am getting this to erroes:
Check Request 1: Cannot read properties of undefined (reading ā0ā)
Check Request 2: Cannot read properties of undefined (reading ākeyā)
Hi @Aman_Jain !
Thank you for helping me!
I guess I have rechecked everything.
I compared my collection with your collection and did not see anything specialā¦
I still canāt find the reason for the issueā¦
I got to know, where u are getting error, just add this code to 1st req (Picture of the Day)Test tab all issue will be fixed as it was mandatory to add status check test in 1st req
See my collection carefully for 1st req i have added test code thereā¦
kindly mark this as solution for others
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
Yes itās needed to obtain the badge. To keep it DRY (like mentioned in step 4), it wouldnāt be necessary because you already added the test code snippet on the Collection level!