-
I using command: curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"hello","params":["YourName"],"id":1}' http://localhost:8080 for test but it dose not return response |
Beta Was this translation helpful? Give feedback.
Answered by
tikue
Nov 2, 2024
Replies: 1 comment 2 replies
-
Hi! Can you share your server code? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah ok, try using
RUST_LOG=debug
to get more verbose logging. But I think the problem is that thecurl
command you used sends an HTTP request that looks like this:But the server binary in example-service does not use HTTP at all. The request you need to send looks something like this: