You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you using https://github.com/trpc/trpc as the server? Although we have the same name, we are different projects. Our client cannot connect to their server. The error indicates that the server is running in HTTP protocol (magic 18516), and the trpc magic number required is 2352.
For those who are curious, 2352 is the decimal representation of 0x930. The number 18516, when converted to its hexadecimal representation and decoded to ASCII, is HT (which is the beginning two characters of an HTTP response).
I am trying to make a TypeScript server and a Go client work together, but they are not compatible.
I created a minimal repository where I tried to integrate them:
https://github.com/adamgajzlerowicz/trcp-cross-lang
What version of
trpc-cmdline
are you using?trpc-group/trpc-cmdline version: v1.0.9
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am looking for a way to generate a TypeScript-based server from a proto file and a Golang client using the same proto file.
I created a proto file, and generated the backend code. Then I generated the Go code, but whenever I try to make a connection, I get an error.
What did you expect to see?
I expected to see data returned by the server.
What did you see instead?
Error:
Questions:
Many thanks.
The text was updated successfully, but these errors were encountered: