I am trying to retrieve an access token in Postman to make api calls to our gallery. However, I keep getting the error "DNSLookup: ENOTFOUND {DomainNameOfOurGallery}
I'm using oAuth2.0, our server version is 2022.1, the access token URL is coming from our swagger documentation (I can successfully query the swagger docs after authenticating with basic auth and my API creds). If i copy and paste the swagger docs outside of the server, I can load it up, so I dont think it is a firewall issue. The access token URL is coming straight from swagger, there are no misspellings, or punctuation.
Also, when I try and import the swagger docs into Postman using the "Link" for import, I get the following error:
Not sure what the issue is, might be something simple. I appreciate any help!
Solved! Go to Solution.
Hello @mnaqvi
Have you checked out this article from @FlorianC ? It gives a clear step by step on how to connect gallery with postman.
Alteryx Server - Gallery API Postman Collection - Alteryx Community
Hope this helps!
Thanks @gautiergodard ! Turns out, it was the web version of postman causing the issue. I downloaded the desktop version, with no other changes to the original request, and I was able to retrieve the token.
If anyone encounters the same issue, here is a helpful link: https://community.postman.com/t/error-in-test-on-api-auth/19508
Thanks @gautiergodard - actually, it turns out it was it was the web based version of postman. I either needed to download a postman browser agent, or use the postman app. After downloading the postman app to my desktop, and making no other changes to the original request, I was able to retrieve the alteryx token. Thank you!