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

Can't connect to localhost:4273/new #34

Closed
cwervo opened this issue Jun 7, 2023 · 10 comments
Closed

Can't connect to localhost:4273/new #34

cwervo opened this issue Jun 7, 2023 · 10 comments

Comments

@cwervo
Copy link
Collaborator

cwervo commented Jun 7, 2023

key "protocols" not known in dictionary
key "protocols" not known in dictionary
    while executing
"dict get $res protocols"
    (procedure "::websocket::test" line 19)
    invoked from within
"::websocket::test $::serverSock $chan "/ws" $headers"
    (procedure "handleRead" line 38)
    invoked from within
"handleRead sock13ab2f610 ::1 49919"
@osnr
Copy link
Collaborator

osnr commented Jun 7, 2023

I think you installed tcllib on your computer and it broke stuff.

@cwervo
Copy link
Collaborator Author

cwervo commented Jun 7, 2023

Hmmm, how would I check? I don't see it in any directories under my path

@cwervo
Copy link
Collaborator Author

cwervo commented Jun 7, 2023

Yeah I checked my whole system for websocket.tcl & it's only in folk/vendor

@osnr
Copy link
Collaborator

osnr commented Jun 7, 2023

Hmm what browser are you on?

@cwervo
Copy link
Collaborator Author

cwervo commented Jun 7, 2023

Chrome but it also happens in Safari. Are you able to reproduce it?

@osnr
Copy link
Collaborator

osnr commented Jun 7, 2023

Can't reproduce it / haven't seen it

@charlesetc
Copy link
Collaborator

Hmmm I don't think I see it in either Chrome or Firefox...

I get this in the journal:

Expand
Jun 07 17:04:39 folk-charles.local make[3107]: make: Entering directory '/home/folk/folk'
Jun 07 17:04:39 folk-charles.local make[3107]: tclsh8.6 main.tcl
Jun 07 17:04:39 folk-charles.local make[3110]: Display thread id: tid0x7fa0ff7ff640
Jun 07 17:04:39 folk-charles.local make[3110]: Camera thread id: tid0x7fa0feffe640
Jun 07 17:04:39 folk-charles.local make[3110]: Keyboard thread id: tid0x7fa0fe7fd640
Jun 07 17:04:40 folk-charles.local make[3110]: Keyboard tid: 3129
Jun 07 17:04:40 folk-charles.local make[3110]: Thread error: tid0x7fa0fe7fd640 can't\ read\ \"Keyboard::kb\":\ no\ such\ variable\n\ \ \ \ while\ executing\n\"read\ \$Keyboard::kb\ 16\"\n\ \ \ \ (procedure\ \"Keyboard::getChar\"\ line\ 14)\n\ \ \ \ invoked\ from\ within\n\"Keyboard::getChar\"\n\ \ \ \ (\"while\"\ body\ line\ 2)\n\ \ \ \ invoked\ from\ within\n\"while\ true\ \{\n\ \ \ \ \ \ \ \ \ \ \ \ lappend\ chs\ \[Keyboard::getChar\]\n\n\ \ \ \ \ \ \ \ \ \ \ \ thread::send\ -async\ \"tid0x7fa1012c1e00\"\ \[subst\ \{\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Retract\ keyboar...\"
Jun 07 17:04:40 folk-charles.local make[3110]: Display tid: 3127
Jun 07 17:04:40 folk-charles.local make[3110]: Thread error: tid0x7fa0ff7ff640 {}
Jun 07 17:04:40 folk-charles.local make[3110]: Thread error: tid0x7fa0ff7ff640 {}
Jun 07 17:04:40 folk-charles.local make[3110]: Thread error: tid0x7fa0ff7ff640 {}
Jun 07 17:04:41 folk-charles.local make[3110]: Camera tid: 3128
Jun 07 17:04:41 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:41 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:42 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:42 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:43 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:44 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:44 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:45 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:47 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:47 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:48 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:49 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:50 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:52 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:52 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:53 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:53 folk-charles.local make[3110]: Added tag 15
Jun 07 17:04:56 folk-charles.local make[3110]: Added tag 15
Jun 07 17:05:17 folk-charles.local make[3110]: Http: sock56353222b640 2600:4041:5bf3:f700:e01e:95c1:b82c:2871 53059: GET /ws HTTP/1.1
Jun 07 17:05:17 folk-charles.local make[3110]: WS: sock56353222b640 2600:4041:5bf3:f700:e01e:95c1:b82c:2871 53059
Jun 07 17:05:18 folk-charles.local make[3107]: make: *** [Makefile:2: start] Terminated
Jun 07 17:05:18 folk-charles.local make[3433]: make: Entering directory '/home/folk/folk'
Jun 07 17:05:18 folk-charles.local make[3433]: tclsh8.6 main.tcl
Jun 07 17:05:18 folk-charles.local make[3436]: Display thread id: tid0x7f8e487ff640
Jun 07 17:05:18 folk-charles.local make[3436]: Camera thread id: tid0x7f8e47ffe640
Jun 07 17:05:18 folk-charles.local make[3436]: Keyboard thread id: tid0x7f8e477fd640
Jun 07 17:05:18 folk-charles.local make[3436]: Keyboard tid: 3457
Jun 07 17:05:19 folk-charles.local make[3436]: Thread error: tid0x7f8e477fd640 can't\ read\ \"Keyboard::kb\":\ no\ such\ variable\n\ \ \ \ while\ executing\n\"read\ \$Keyboard::kb\ 16\"\n\ \ \ \ (procedure\ \"Keyboard::getChar\"\ line\ 14)\n\ \ \ \ invoked\ from\ within\n\"Keyboard::getChar\"\n\ \ \ \ (\"while\"\ body\ line\ 2)\n\ \ \ \ invoked\ from\ within\n\"while\ true\ \{\n\ \ \ \ \ \ \ \ \ \ \ \ lappend\ chs\ \[Keyboard::getChar\]\n\n\ \ \ \ \ \ \ \ \ \ \ \ thread::send\ -async\ \"tid0x7f8e4a2eee00\"\ \[subst\ \{\n\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ Retract\ keyboar...\"
Jun 07 17:05:19 folk-charles.local make[3436]: Display tid: 3455
Jun 07 17:05:19 folk-charles.local make[3436]: Thread error: tid0x7f8e487ff640 {}
Jun 07 17:05:19 folk-charles.local make[3436]: Thread error: tid0x7f8e487ff640 {}
Jun 07 17:05:19 folk-charles.local make[3436]: Thread error: tid0x7f8e487ff640 {}
Jun 07 17:05:20 folk-charles.local make[3436]: Camera tid: 3456
Jun 07 17:05:20 folk-charles.local make[3436]: Http: sock5591e100b090 2600:4041:5bf3:f700:e01e:95c1:b82c:2871 53065: GET /ws HTTP/1.1
Jun 07 17:05:20 folk-charles.local make[3436]: WS: sock5591e100b090 2600:4041:5bf3:f700:e01e:95c1:b82c:2871 53065
Jun 07 17:06:30 folk-charles.local make[3436]: Http: sock5591e1a8f740 2600:4041:5bf3:f700:e01e:95c1:b82c:2871 53104: GET / HTTP/1.1
Jun 07 17:06:30 folk-charles.local make[3436]: Http: sock5591e1a8ba30 2600:4041:5bf3:f700:e01e:95c1:b82c:2871 53105: GET /favicon.ico HTTP/1.1

and this from make:

tclsh8.6 main.tcl
peer: Trying to connect to: ws://folk-charles.local:4273/ws
peer: Connected
[Wed Jun 07 17:11:08 EDT 2023] [websocket] [error] 'Cannot read header from socket: Socket closed.'
[Wed Jun 07 17:11:08 EDT 2023] [websocket] [error] 'Error when executing WebSocket reception handler: Unknown WebSocket event: close 1001 {Endpoint going away}'
peer: Disconnected
peer: Trying to connect to: ws://folk-charles.local:4273/ws
peer: Connected
Http: sock12e9ead90 127.0.0.1 53204: GET /new HTTP/1.1
Http: sock12e9ead10 127.0.0.1 53205: GET /favicon.ico HTTP/1.1
Http: sock12dcef890 ::1 53207: GET /new HTTP/1.1
Http: sock12e9ead90 ::1 53208: GET /favicon.ico HTTP/1.1

but I also don't get a proper 'new' page, it looks like this:

c84195167fcfbd941daa0ae80d214a0b9667215fae5489d04d01e7676201cc50

@osnr
Copy link
Collaborator

osnr commented Jun 7, 2023

It looks like in @charlesetc 's case, virtual-programs/new-program-web-editor.folk isn't running for some reason...

@charlesetc
Copy link
Collaborator

Going to http://folk-charles.local:4273/ works - it's the localhost one which seems different?

@cwervo
Copy link
Collaborator Author

cwervo commented Jun 7, 2023

Yeah, the localhost one is connecting to the instance of Folk just on your laptop

@osnr osnr closed this as completed Jul 11, 2023
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

3 participants