While building the project i used a HTTPS proxy to run, but now when i run on different environment without proxy i’m getting an error to download remote modules.
Guide me on this.
While building the project i used a HTTPS proxy to run, but now when i run on different environment without proxy i’m getting an error to download remote modules.
Guide me on this.
Hi @Gerard !
The error means that the proxy’s host isn’t available in the environment where you currently try to run. So I believe you should remove the usage of the proxy from your scripts.
Let me know if that helps,
Cheers
Hi @olegbespalov,
The proxy available on my local. I removed the proxy from the code, but still I’m getting an error. If i use the proxy there is no error.
Looks like once we run with proxy it cache or bind it some where. Guide me to troubleshoot.
Hi @Gerard !
Not sure if I got you.
So first message:
While building the project i used a HTTPS proxy to run, but now when i run on different environment without proxy i’m getting an error to download remote modules.
I can understand that in your local environment you have internet access only using a proxy, so having a script configured with a proxy that works is expected, I mean this message:
The proxy available on my local. I removed the proxy from the code, but still I’m getting an error. If i use the proxy there is no error.
But in the original message, you mention that you tried to run in a different environment. And I supposed that there (on a different environment) the proxy isn’t available (it’s literally what is on the screenshot). So I suggested removing the proxy when you try to run in a different environment.
What is the different environment and are you still trying to run k6 there?
Looks like once we run with proxy it cache or bind it some where. Guide me to troubleshoot.
You can try to configure the DNS cache and also for the debugging enable the HTTP debug.
Cheers
The scenario here, I can access different test environment on my machine by switching proxy or no proxy. If i access an environment without a proxy it redirect to PROD, and if i use a proxy it redirect to a test environment.
The new scripts i created for PROD is working without any problem, but if I used the same test environment script by removing the proxy and use it for PROD it throws an error mentioning not able to download remote modules. Both environment have same domain, no changes on the URL or the relevant resources.
Hi @Gerard !
So it seems like your proxy has a connection to your different test environments, but has no connection (or limited connection to the Internet).
So the options that you can
https://jslib.k6.io
)Let me know if that answers
Cheers