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

unexpected end of JSON input room (secure channel) not ready #879

Open
injust opened this issue Jan 15, 2025 · 6 comments
Open

unexpected end of JSON input room (secure channel) not ready #879

injust opened this issue Jan 15, 2025 · 6 comments

Comments

@injust
Copy link

injust commented Jan 15, 2025

I'm transferring from macOS to a Windows system on the same LAN, with both ends running v10.2.1.

[debug] 18:49:32 cli.go:215: debug mode on
[debug] 18:49:32 cli.go:219: public IP address: xxx.xxx.xxx.xxx
connecting...[debug]    18:49:32 croc.go:884: attempt to discover peers
[debug] 18:49:32 croc.go:924: all discoveries: [address: yyy.yyy.yyy.yyy, payload: croc9009]
[debug] 18:49:32 croc.go:926: discovery 0 has payload: address: yyy.yyy.yyy.yyy, payload: croc9009
[debug] 18:49:32 croc.go:931: switching to local
[debug] 18:49:32 tcp.go:462: pinging yyy.yyy.yyy.yyy:9009
[debug] 18:49:32 comm.go:78: dialing to yyy.yyy.yyy.yyy:9009 with timelimit 300ms
[debug] 18:49:32 comm.go:87: connected to 'yyy.yyy.yyy.yyy:9009'
[debug] 18:49:32 comm.go:151: initial read error: read tcp zzz.zzz.zzz.zzz:58782->yyy.yyy.yyy.yyy:9009: wsarecv: An existing connection was forcibly closed by the remote host.
[debug] 18:49:32 tcp.go:475: read tcp zzz.zzz.zzz.zzz:58782->yyy.yyy.yyy.yyy:9009: wsarecv: An existing connection was forcibly closed by the remote host.
[debug] 18:49:32 croc.go:946: could not ping: read tcp zzz.zzz.zzz.zzz:58782->yyy.yyy.yyy.yyy:9009: wsarecv: An existing connection was forcibly closed by the remote host.
[debug] 18:49:32 croc.go:950: discoveries: [address: yyy.yyy.yyy.yyy, payload: croc9009]
[debug] 18:49:32 croc.go:951: establishing connection
[debug] 18:49:32 croc.go:967: got host '168.119.238.198' and port '9009'
[debug] 18:49:32 croc.go:969: trying connection to 168.119.238.198:9009
[debug] 18:49:32 comm.go:78: dialing to 168.119.238.198:9009 with timelimit 5s
[debug] 18:49:33 comm.go:87: connected to '168.119.238.198:9009'
[debug] 18:49:33 tcp.go:523: strong key: e1c6893f6fe703df00663527cbeb8893b2f785f5676737472c1538950e8829d8
[debug] 18:49:33 tcp.go:537: sending password
[debug] 18:49:33 tcp.go:548: waiting for first ok
[debug] 18:49:33 tcp.go:566: sending room; 01cecb4101c2cb4327a68f623b1adb736530963563892d774da1294ad9032f5b
[debug] 18:49:33 tcp.go:577: waiting for room confirmation
[debug] 18:49:33 tcp.go:593: all set
[debug] 18:49:33 croc.go:982: receiver connection established: &{connection:0xc0002120e0}
[debug] 18:49:33 croc.go:983: banner: 9010,9011,9012,9013,9014,9015,9016,9017
[debug] 18:49:33 croc.go:1015: data:
[debug] 18:49:33 croc.go:1104: exchanged header message
securing channel...[debug]      18:49:33 croc.go:1122: ready
[debug] 18:49:33 message.go:61: writing pake message (unencrypted)
[debug] 18:49:34 compress.go:50: error copying data: unexpected EOF
[debug] 18:49:34 croc.go:1506: problem with decoding: unexpected end of JSON input
[debug] 18:49:34 croc.go:1148: data:
[debug] 18:49:34 croc.go:1149: got error processing: problem with decoding: unexpected end of JSON input
[debug] 18:49:34 croc.go:1203: error: problem with decoding: , maybe peer disconnected

I don't think this is a recent regression, either. croc hasn't worked for me for at least a year.

Originally posted by @injust in #878 (comment)

@SubmitCodes
Copy link

I get the same error transferring files from a Windows pc to android

@schollz
Copy link
Owner

schollz commented Jan 17, 2025

@injust is it possible your data is changing while you are transferring

@injust
Copy link
Author

injust commented Jan 17, 2025

@injust is it possible your data is changing while you are transferring

Not possible. I just reproduced it when sending text (croc send --text foo).

@schollz
Copy link
Owner

schollz commented Jan 17, 2025

can you share the debug info when you send with the text flag

@schollz
Copy link
Owner

schollz commented Jan 17, 2025

I get the same error transferring files from a Windows pc to android

Please make a new issue for your system

@Ozoniuss
Copy link
Contributor

Ozoniuss commented Jan 18, 2025

I just tried a transfer from Windows to MacOS on the local network, works fine for me with v10.2.1

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

4 participants