However, when I run this code, it always says "unexpected EOF". What is the main problem with this code? I have learned this code in an example in docs/json_rpc_api.md.
You'll get that if you either can't connect, or there's no cert file, or it isn't formatted correctly. Try to use either print statement or a debugger like dlv to figure out where things are going wrong.
Hello everyone, I have connected to btcd and I try to run this part of code for connecting to server:
However, when I run this code, it always says "unexpected EOF". What is the main problem with this code? I have learned this code in an example in docs/json_rpc_api.md.