Follow-up question - is there any good
Follow-up question - is there any good example of a simple websocket pass-through proxy for passing through websocket connections to a container?
16 Replies
the
fetch()
method on Container will do it automatically
so just pass in the Worker's request to itSo just something like:
?
ah, I think so - that's Hono?
Yeah, I just cloned that template
If
c.req.raw
is the same as the request
argument in a standard fetch handler then yes
ah yeah then should be good
If not LMKUnknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Currently debugging my deploy. Unsure where the issue is right now.
I have deployed it and it seems like it's up according to
wrangler containers list
https://cf-tlsn-notary.signup-b22.workers.dev/
Getting an error that there are no container instancesGitHub
GitHub - TheFrozenFire/cf-tlsn-notary
Contribute to TheFrozenFire/cf-tlsn-notary development by creating an account on GitHub.
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Application ID would be where? Is this it?
b22e0cb476976048f1f91cf0ef29ca63
https://github.com/tlsnotary/tlsn/blob/v0.1.0-alpha.10/crates/notary/server/src/server.rs
This is the service I'm wrapping, btw, if it lends any useful context
GitHub
tlsn/crates/notary/server/src/server.rs at v0.1.0-alpha.10 · tlsno...
Rust implementation of the TLSNotary protocol. Contribute to tlsnotary/tlsn development by creating an account on GitHub.
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Not clearly seeing anything like an application ID

Seems like maybe the durable object is not able to connect to the container. I'm quite certain the port I've specified (7047) is what the container listens to by default.
The container also defaults to non-TLS, so that shouldn't be the issue
Error checking 7047: The container is not listening in the TCP address 10.0.0.1:7047
I'll check that it's binding 0.0.0.0 specifically
How do you get the logs from a container?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Failed to connect to prover: received corrupt message of type InvalidContentType
Hrmm. Seems like the connection is coming through wrong
It does seem to be coming through, though
Yeah, at a bit of a loss on this one. I don't know enough about how DO requests to the container is serialized