Skip to content
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

Unable to closure-compile or connect #42

Open
Rudi9719 opened this issue Oct 20, 2020 · 1 comment
Open

Unable to closure-compile or connect #42

Rudi9719 opened this issue Oct 20, 2020 · 1 comment

Comments

@Rudi9719
Copy link

java -jar closure-compiler.jar --js_output_file=js/combinedLibs.comb.js js/defines.js js/src/*.js js/*.js 'wsproxy/.comb.js' 'wsproxy/Client.js'
ERROR - Cannot read file wsproxy/.comb.js: wsproxy/.comb.js

ERROR - Cannot read file wsproxy/Client.js: wsproxy/Client.js

2 error(s), 0 warning(s)

NPM Version 6.14.8
Node Version v14.13.0
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-1)
OpenJDK 64-Bit Server VM (build 11.0.8+10-1, mixed mode)

I tried to make the modifications here but was still unable to connect. I also tried updating var wsproxyURL to be the webserver's DNS name.

combinedLibs.comb.js:372 Uncaught DOMException: Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (13) is larger than the maximum index (0).
    at SSHyClient.settings.setColorScheme (https://ssh.nightmare.haus/js/combinedLibs.comb.js:372:85)
    at window.onload (https://ssh.nightmare.haus/:44:13)
(index):222 Uncaught DOMException: Failed to construct 'WebSocket': The URL 'ssh.nightmare.haus' is invalid.
    at startSSHy (https://ssh.nightmare.haus/:222:11)
    at HTMLInputElement.onclick (https://ssh.nightmare.haus/:464:92)

commands I ran:

   509  8:42    git clone https://github.com/stuicey/SSHy.git   
   510  8:44    cd SSHy/
   511  8:46    git submodule update --init --recursive
   512  8:46    npm i -g wsproxy/
   513  8:46    wsproxy
   514  8:46    bg
   515  8:46    ls wsproxy/
   516  8:46    java -jar closure-compiler.jar --js_output_file=js/combinedLibs.comb.js js/defines.js js/src/*.js js/*.js 'wsproxy/.comb.js' 'wsproxy/Client.js'

Note command 516 was typed as java -jar closure-compiler.jar --js_output_file=js/combinedLibs.comb.js js/defines.js js/src/*.js js/*.js '!**.comb.js' '!**Client.js' however bash expanded the ! for some reason.

@Rudi9719 Rudi9719 changed the title Unable to closure-compile Unable to closure-compile or connect Oct 20, 2020
@Rudi9719
Copy link
Author

Changed the var wsproxyURL to be "wss://ssh.nightmare.haus" and now I get the following

combinedLibs.comb.js:372 Uncaught DOMException: Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (13) is larger than the maximum index (0).
    at SSHyClient.settings.setColorScheme (https://ssh.nightmare.haus/js/combinedLibs.comb.js:372:85)
    at window.onload (https://ssh.nightmare.haus/:44:13)
setColorScheme @ combinedLibs.comb.js:372
window.onload @ (index):44
load (async)
(anonymous) @ (index):40
(index):222 WebSocket connection to 'wss://ssh.nightmare.haus/' failed: Error during WebSocket handshake: Unexpected response code: 200
startSSHy @ (index):222
onclick @ (index):463
(index):285 Uncaught TypeError: term.fit is not a function
    at termInit ((index):285)
    at WebSocket.ws.onclose ((index):257)

Seems like it doesn't appreciate the 200 okay that it is sending?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant