Hello! I am new to Postman and I am using a collection for my Amazon Ads API. I am trying to POST and event based schedule and I am using the collection default commands but I keep getting and error? “There was an error in evaluating the Pre-request Script:TypeError: Cannot read properties of undefined (reading ‘startsWith’)” I looked in the Pre-request Script and it’s blank. There is no mention of a variable “startsWith” As a matter of fact there is no variable in the body as well? Any suggestions would be much appreciated.
Hey @reloscott
Welcome to the Postman community!
In Postman, pre-request scripts can added at the Collection, Folder and Request level.
Can you open each element and see if you have any scripts in place?
Could you also provide us with some visual examples of what you have in front of you, please?
It would make it easier for us to visualize the issue.
1 Like
Thank you so much. I didn’t realize the prep-request was also in the collection level as well. I was only looking in Request. I found it and commented it out and now it’s working.
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.