-
-
Notifications
You must be signed in to change notification settings - Fork 283
Context influences requests (Response code 401 (Unauthorized)) #385
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
Comments
Unless there is something, like a proxy, that intercepts the requests and changes them this is not possible. |
this is the error, that I get:
I am unsure how to proceed. I am able to get the accessToken through Oauth. I store the accessToken and the store name and pass those to the constructor, I get the above error however |
Can you run |
sure this is the output:
|
Yes, the problem is in |
okay, but what do I do now? Try to convince |
Ideally the issue should be fixed in |
@szmarczak can this be addressed in Edit: nvm this is not an option because |
@BjoernRave this is a dirty workaround but it should work if you are not using the proxy functionality. In the module where you require const https = require('https');
const request = https.request;
const auth0 = require('auth0');
https.request = request; Not sure if it breaks the Edit: I'm confident it does not break |
@lpinca yea, that workaround works, thanks for that :) |
That worked for me. Thank you! |
@lpinca I just checked and unfortunately there is no universal solution to check whether the |
I'm closing this as the issue has been fixed in |
okay, |
Yes, I ran |
can confirm, that it is working now |
I am trying to create a public app.
When trying to create a product from inside my application it throws with :
Response code 401 (Unauthorized)
However when I create a node script like this:
the product gets created successfully.
I tried to paste the exact same code in my application, but I still get the 401.
My application is built apollo-server-micro and running as an api route from next.js
If you need more info, I am happy to provide.
The text was updated successfully, but these errors were encountered: