- Published on
Debugging Postman Queries
- Yair Mark
Today I was trying to play around with an API but kept getting 401 errors when using Postman despite the fact that I was following the APIs guide for auth. When I tried the same query using curl I had no issues at all.
So I Googled a bit and found that you can get Postman to generate code of your request in a variety of formats including curl. Using this approach I generated the curl equivalent and immediately saw that in my auth header I had included a
$ as part of the token portion. Once I removed this I had everything working perfectly.