SSHy icon indicating copy to clipboard operation
SSHy copied to clipboard

DOMExeption atob()

Open wizard8387 opened this issue 6 years ago • 2 comments

I have a problem with decode function atob().

It's generate an error :

Uncaught DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded. at WebSocket.ws.onmessage (http://localhost/index.php:237:38)

My code in index.php : // Send all recieved messages to SSHyClient.Transport.handle() ws.onmessage = function(e) { // Convert the recieved data from base64 to a string transport.parceler.handle(window.atob(e.data)); };

My WebSocket is turn on correctly on Debian Server in my host localhost.

I am a beginner in programming.

Thank you for your help !

wizard8387 avatar Oct 20 '19 15:10 wizard8387

Seems related to https://github.com/stuicey/SSHy/issues/18

Can you make sure you've installed the correct version of wsproxy?

stuicey avatar Oct 21 '19 12:10 stuicey

Thank you !

It’s Work with the correct wsproxy !!! :)

Someone, I have second problem.

Debian 6,7,8 —> the connexion work fine

Debian 9 —> websocket return error 1005.

Idea ?

Regards,

wizard8387 avatar Oct 22 '19 10:10 wizard8387