Closed bryceprutsos closed 4 weeks ago
I believe the problem is a missing space after headers
:
```req
url: ...
headers: {...}
```
P.S. I'll fix this in the next update. Sorry about that.
Yes that was right thanks for helping I was trying all sorts of stuff before putting in this bug. Quick question for the future if I had multiple headers like having to add "Accept": "application/json" as well how would that look in the call?
This is something that needs to be fix. Thanks for letting me know.
if I had multiple headers like having to add "Accept": "application/json" as well how would that look in the call?
It should looks something like:
```req
url: https://example.com
headers: {"Accept": "application/json", "Authorization": "Basic XXXXX"}
```
I think so... if that doesn't work try removing the space after the comma.
Either way I'll be addressing this problem (spaces, or not spaces, that is the question) in the next release.
Hey @bryceprutsos, It should be fix now. Could you check?
Everything is working as expected after the update. I tried with and without the space.
Describe the bug When using a basic auth Get request it comes back as 401 error even though it comes back successful in Postman
To Reproduce
Expected behavior Come back with information
Screenshots If applicable, add screenshots to help explain your problem. Obsidian Code Postman Code
Additional context These calls seem the exact same but I am not sure why I am getting a 401.