-
-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
302 redirect to https://shop/password when requesting resource #446
Comments
I got the same error. |
Sounds like a bug in |
I'm working on it now. Got seems to be all over the place. |
I found that both node-fetch and https.request work as expected.
However, got fails with infinite redirects.
The most likely culprit is that got doesn't appear to be constructing https.request correctly which causes it to send a request to GET "/" and not "/admin/api/2020-04/shop.json" as both fetch and https.request do normally:
This results in shopify /password redirect for store owner login. I'm trying to figure out just why got is failing to construct proper https.request however. |
@axmachina I can't reproduce.
what version of |
@lpinca you are quite correct, thank you. I'm running same versions. Narrowed down to mailgun-js mailgun/mailgun-js-boland#265 (comment) |
Doing exact same request with the exact same access token works fine:
But when I attempt to make the same exact request using shopify-api-node, it fails with MaxRedirectsError error.
Note that Shopify() used to work just fine for me until recently. There were no changes to my code that would explain the discrepancy in behaviour. Examining shopify-api-node request, it appears its sending all the correct bits using the got lib.
What could I be missing here?
The text was updated successfully, but these errors were encountered: