The ‘Published’ Python sample code contains errors with default settings. Additionally, when I edited my Python Request settings to correct the updated values were not carried into the new Publication.
The first issue is that my users reported errors while using the sample Python Request code snippets. They found the following:
“Allow_redirects=False” is in the request function twice, so it returns a “Keyword argument repeated” error -> fixed if only one of it is there; delete the one at the end
“timeout=undefined” I couldn’t find “undefined” as a valid preset input anywhere online, so it looks like it’s trying to find “undefined” as a variable -> “None” is a valid input for the timeout keyword if we want to use that as a sample
The second issue is when alerted to this I customized the configuration in the documentation to set the timeout values and to turn-off redirect. Which resulted in the following:
Which version of Postman are you using? I’m on 7.12.0 and couldn’t reproduce that. This was a known bug in previous versions but has been fixed since I believe.
Thank you for looking at my request. Funny (not really funny) thing just happened when I opened Postman to check the version.
I received a message, bottom right of screen, that my version has been updated to 7.12.0. So that would seem like a good sign if what your suggesting as an old bug was the root of my issue.
Bad thing though is that it appears my environment has LOST the updates I’ve done to the my API completely post Sept 2019. So basically, all of my work has been lost. I’ve been working on this for the past few months and several versions of the api documented and released.
The published version, V2, is still published but the source code is no longer present in my Team Workspace. Any thoughts?
Thank you for the quick review.
Environments = All instances listed however the value for the variables are all empty. I suspect this is expected but as an fyi if that means anything to you.
My Collections = All instances are listed.
Team Collections = All instances (I’m the primary dev so most are the same).
All Collections = All are listed.
So they exist in the cloud but how would I link them back into my locally installed Postman app?