-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issues connecting behind a corporate proxy #35
Comments
Hi @stefan-THD! Thank you for submitting this issue! Can you please provide a reproducible example? That would help a lot! |
Thanks spirosikmd, our company uses a proxy, which requires us to add additional options with the http request, but the default plugin doesn't allow to send in options to the http request.
Would give us a connection timeout error because it wasn't get through our proxy. This is what we end up doing:
We were able to remedy this by using the |
Thank you for the detailed information @stefan-THD! So if I understood well, you basically want to configure the If you could do something like the following const Usabilla = require('usabilla-api');
const proxy = process.env.HTTP_PROXY;
const proxySplit = proxy.split(':');
const proxyServer = proxySplit[1].replace('//', '');
const proxyPort = proxySplit[2];
const usabilla = new Usabilla(
process.env.USABILLA_ACCESS_KEY,
process.env.USABILLA_SECRET_KEY,
{
protocol: 'http:',
host: proxyServer,
port: proxyPort,
}
);
usabilla.websites.buttons.feedback.get(/* query here */); would it work for you? Then, we can consider adding support for overriding |
@spirosikmd Yes! Something along those lines should work well for us, as long as we can set those options. |
Hi @stefan-THD! You should be able to configure client in v1.1.0! |
We were able to try it out, apparently, even you set the protocol to http, |
@spirosikmd Is there a way to use http instead of https yet? |
Hi @stefan-THD! It is true, by default the |
Hi @stefan-THD! There is a new release |
Thanks so much! We will check it out. |
We are having issues getting this package to work with our enterprise proxy settings, is it possible to configure the https get method in resource.js to accept proxy settings?
The text was updated successfully, but these errors were encountered: