Day 3 - 15 days of Postman for testers

This is the same issue as here.

15-day challenge and facing an error on day 4 related to invalid API key and a TypeError message, requesting help from the Postman community to resolve the issue - Help - Postman

When you submit your collection, it’s hitting the Postman collection endpoint, and should return a JSON response with all of the details in your collection.

The tests tab is then asserting on certain elements in the collection.

In your case, its not returning the correct JSON, as its failing the authentication. Therefore “item” which is a top level element in a normal response does not exist.

Make sure you have set the x-api-key header as per the instructions.

However, just going back through the instructions. It’s a bit odd that its tells you to use whatever method you want, which isn’t covered until day 4 which actually shows you the three main ways of authenticating.