Skip to content

15/16 testcases passed in Halfway Check. I have created and executed this workspace for the 2nd time #937

Answered by MastanSayyad
Nitheesha33 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Nitheesha33

FAIL: [COLLECTION] Collection level Auth is set to type API Key with header named api-key | TypeError: Cannot read properties of undefined (reading 'type')

The error you’re seeing indicates that there’s an issue with the authentication setup at the collection level in Postman. Specifically, it suggests that the test script or validation expects the collection to have an API Key authentication type, but it cannot find it.

  1. Click to Postaman Library API v2 collection
  2. Go to the Authorization tab of the collection.
  3. Ensure that the Auth Type is set to API Key.
  4. In the Key field, ensure that the key name is correctly set as api-key
  5. Value as postmanrulz

This is my dashboard for…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nitheesha33
Comment options

Answer selected by Nitheesha33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants