Getting this error while submitting the Request.
There was an error in evaluating the test script: TypeError: Cannot read property âitemâ of undefined
Updated the environment properties with collection_uid, postman_api_key
Getting this error while submitting the Request.
There was an error in evaluating the test script: TypeError: Cannot read property âitemâ of undefined
Updated the environment properties with collection_uid, postman_api_key
It looks like the request returned a 404 response, given that information, the script wouldnât complete as itâs looking for something in the response body.
I would check that the URL, path, ids etc are correctly resolved. You can see the full request that was sent by opening the Console.
I agree with Danny - I can replicate this problem if my collection_uid
variable is set incorrectly (e.g. if itâs accidentally retaining the collection ID from your Day 1 solution). You mentioned that youâd set this as an environment variable - you wonât want to do this, because every dayâs solution requires a different collection_uid
value.
I tried everything. I removed the environment variables.
I added directly to the request.
Collection ID is new one. Generated today. Still an error.
Is that the request ID in the URL or the Collection ID - I canât see the full URL but it looks nearly the same as the one in the right side request context menu.
Ensure itâs the Collection ID in the path and than there are no additional characters on the end of the value, sometimes that happens.
Added full screenshot with Request with Collection ID:
No extra or additional characters found in console.
Youâre adding the request ID and not the Collection ID.
This has confirmed what Danny suggested The ID that you have directly added to the request is the Request ID, not the Collection ID. (You will see that in the right-hand panel, the panel is titled âRequest detailsâ)
You can find the collection ID by clicking on the âDay 02: Collections and environmentsâ label in the left panel, and then if you click the highlighted âInfoâ link it will reveal the Collection ID value.
Finally found the details.
I missed to see the heading âCollection Detailsâ / âRequest Detailsâ
My bad , I was able to figure out the issue , I had to remove the flower bracers.
Iâm getting a different error invalid api key error.
"error": {
"name": "AuthenticationError",
"message": "Invalid API Key. Every request requires a valid API Key to be sent."
}
I generated api key it worked now.
can anyone help me out with this . Day 2 challenge
New request added | TypeError: Cannot read property âlengthâ of undefined
how to resolve it correctly.
Hey!
Could you double check that you have the latest changes from the parent collection forked?
There should be two requests in the âCollections and environmentsâ folder, POST raw text
and GET with query params
Your answer good for me. Thanks you
@jusmur87 Have you checked if your api key is correctly set, or tried generating a new one? Looks like it may have expired.
Yes ;( I already generated Api key few times and set up and save with new key. Still same issue.
@jusmur87 I just noticed youâre not using the correct name for the header, it should be X-Api-Key
and not postman-api-key
.