getgauge / gauge-java

Java runner for Gauge
https://gauge.org
Apache License 2.0
91 stars 47 forks source link

gauge install java plugin failing looks like the plugin download url is down #781

Closed pcnithin closed 6 months ago

pcnithin commented 6 months ago

Not able to install gauge java or any supported plugins gauge version 1.6.2 or later 1.6.3 not able to install plugins.

C:>gauge -v Gauge version: 1.6.3 Commit Hash: 44ebad3

Plugins

No plugins found Plugins can be installed with gauge install {plugin-name}

C:>gauge config --list Key Value

allow_insecure_download false check_updates true gauge_repository_url https://downloads.gauge.org/plugin ide_request_timeout 30000 plugin_connection_timeout 10000 plugin_kill_timeout 4000 runner_connection_timeout 30000 runner_request_timeout 30000

C:>gauge install java Failed to install plugin 'java'. Reason: Invalid plugin name or there's a network issue while fetching plugin details.

C:>gauge init java Initializing template from https://github.com/getgauge/template-java/releases/latest/download/java.zip Error ----------------------------------

[Gauge] Failed to initialize project. Get "https://github.com/getgauge/template-java/releases/latest/download/java.zip": dial tcp 140.82.112.4:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.. Please use a valid Gauge template URI or check network connection

Get Support ---------------------------- Docs: https://docs.gauge.org Bugs: https://github.com/getgauge/gauge/issues Chat: https://github.com/getgauge/gauge/discussions

Your Environment Information ----------- windows, 1.6.3, 44ebad3 Could not retrieve plugin information.

zabil commented 6 months ago

Worked for me just now

gauge install java                                                                                                                             08:41:43
........................
Successfully installed plugin 'java' version 0.10.3
⋊> ~/p/launchpad-automated on LPAUT-591/reserve-orderline-open-direct  gauge -v                                                                                                                                       08:41:55
Gauge version: 1.6.3
Plugins
-------
dotnet (0.5.0)
html-report (4.1.2)
java (0.10.3)
js (2.4.0)
python (0.3.17)
screenshot (0.1.0)
ts (0.1.0)
gauge init java                                                                                                                                                                                         08:43:55
Initializing template from https://github.com/getgauge/template-java/releases/latest/download/java.zip
.
Copying Gauge template java to current directory ...
Successfully initialized the project. Run specifications with "gauge run specs/".

Can you please check if there's a issue with your network, or check if you are behind a proxy?

pcnithin commented 6 months ago

Yes, my computer is behind a proxy server. I have set the proxy and still, it was failing. Hence I moved to download the plugins and install them manually. I was able to install plugins for "java" but for "js" it is failing. Note: I have used a lower version of gauge now and that should not be an issue here, right?

C:>gauge -v Gauge version: 1.5.1 Commit Hash: bdc0f73

Plugins

html-report (4.3.0) java (0.7.15)

C:>gauge install --file C:\Users\Administrator\Downloads\gauge-js-4.0.1.zip Compatible version of plugin js not found. Installing plugin js... Failed to install plugin 'js'. Reason: Invalid plugin name or there's a network issue while fetching plugin details.

C:>gauge install --file C:\Users\Administrator\Downloads\gauge-js-2.4.0.zip Compatible version of plugin js not found. Installing plugin js... Failed to install plugin 'js'. Reason: Invalid plugin name or there's a network issue while fetching plugin details.

zabil commented 6 months ago

If you are using a proxy please refer

https://docs.gauge.org/configuration.html?os=macos&language=javascript&ide=vscode#http-proxy-setting-while-using-gauge