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!