30 Days of Postman - Day 4 Authorization - Submit call test failing with "TypeError: Cannot read property 'type' of undefined"

Hello,
I have run into the final test in the Submit call for Day 4 failing when it checks auth.type. I have folder level authorization type API Key with my {{postman_api_key}} in an environment variable x-api-key. The test fails with the error: TypeError: Cannot read property 'type' of undefined

Please help provide insight as to what I’ve done wrong. Your assistance is greatly appreciated!

Thanks, Sherri

Environment: Chrome Version 90.0.4430.212; macOS Big Sur V11.3.1; Postman on Web

Here is a screenshot of the test failure:


Here is a screenshot of the folder level authorization:

Link to my public collection: https://www.getpostman.com/collections/9a14554463b32ea66da6

Hey @iamjoyfulgirl001 :wave:

You would need to add this to the Authorization folder, it mentions this in the documentation.

Might be worth taking a quick look through it again to confirm.

2 Likes

Hi @danny-dainton :wave:!

Ah-ha! Somehow even though I re-read it at least 50 times prior to asking for help, it wasn’t clear. Thank you for your magical helpful pointer!

1 Like

I have run into the final test in the Submit call for Day 4 failing when it checks *Requests added. *The error given is TypeError : Cannot read properties of undefined (reading ‘name’)
Could you help provide insight where the error might be?All the other tests have passed.
Thanks

@danny-dainton I have facing the same issue “Auth added correctly | TypeError: Cannot read properties of undefined (reading ‘type’)”
even after added the auth to `Authorization folder
Could please help me where am I making mistake ?

Hey @security-technologi7

Can you add screenshots and more details explaining your specific issue, please?

The original issue that was posted 2 years ago might not be exactly the same as yours - It would be easier to provide the information that’s contextually relevant to your issue.

Hi @danny-dainton
I was doing 15 days tester challenge , I had this error in Day 4 challenge
This one particular test gets failed ,I had updated the auth type folder level but still i am getting this error " TypeError: Cannot read properties of undefined (reading ‘type’) "


Have you added that to the Folder or the Collection?

As that’s looking at the collection.auth.type, I assume that it should be at that level.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.