This topic was automatically generated from Slack. You can find the original thread here.
Helio Freitas : I’m trying to download (to /tmp) a json from an endpoint that requires authentication. But I’m getting “HTTPErrorResponse code 403 (Unauthorized)” message when submitting the get. When I do the same thing via a get using Axios I get it. How solve this?
Dylan Sather (Pipedream) : I’d recommend looking at the got docs on GitHub. Technically passing in the URL with the user, password, and query string params should work, but you can also pass those as the username and password in the options you pass to got.
Dylan Sather (Pipedream) : Since each server implements how they return 403s differently, I’d recommend reaching out to the target service to ask why you might be getting that.
Helio Freitas : I have talked to the guys of target service. According they, the rest api implementation is different from stream. So its not compatible try download like I would like