草庐IT

go - gRPC 设置有问题。获取间歇性 RPC 不可用错误

我有一个grpc服务器和客户端,大部分时间都按预期工作,但偶尔会出现“传输正在关闭”错误:rpcerror:code=Unavailabledesc=transportisclosing我想知道是不是我的设置有问题。客户端非常基础connection,err:=grpc.Dial(address,grpc.WithInsecure(),grpc.WithBlock())pb.NewAppClient(connection)deferconnection.Close()调用超时时间如下ctx,cancel:=context.WithTimeout(ctx,300*time.Millise

go - net/rpc .Call 与 .Go 之间有什么区别?

我刚刚开始使用Golang和net/rpc包。我试图了解您何时可以使用异步client.Go()调用大多数在线示例使用的client.Call()方法。会通过类似的方式异步调用client.Callgoclient.Call(...)本质上和使用client.Gocall是一样的吗?我也在网上看到过这个例子(例如当同时调用多个RPC时)。 最佳答案 作为documented:Goinvokesthefunctionasynchronously.ItreturnstheCallstructurerepresentingtheinvoc

json - 如何在 Go 中正确调用 JSON-RPC?

我一直在尝试各种配置来调用asimpleJSON-RPCserverforBitcoin在Go中,但没有成功。在Python中,整个代码如下所示:fromjsonrpcimportServiceProxyaccess=ServiceProxy("http://user:pass@127.0.0.1:8332")printaccess.getinfo()但是在Go中,我似乎遇到了像"toomanycolonsinaddress"这样的错误。,或“没有这样的主机”。我试过使用rpc和rpc/jsonrpc这两个包,使用方法Dial和DialHTTP,使用各种网络参数,但仍然无法到达任何地方

Git 克隆错误 : RPC failed; result=56, HTTP 代码 = 200

我正在尝试克隆(私有(private))远程存储库,但出现以下错误:remote:Countingobjects:11410,doneremote:Findingsources:100%(11410/11410)remote:Gettingsizes:100%(9178/9178)error:RPCfailed;result=56,HTTPcode=200error:inflate:datastreamerror(invalidblocktype)fatal:packhasbadobjectatoffset427781:inflatereturned-3我在Windows8ProBui

git - RPC 失败结果 22 http 代码 404

我使用的是BonoboGit服务器,一切看起来都很好。我将我所有的旧SVNrepo移动到GIT,甚至使用+760的大repo(大约3.5GB)提交“gitsvnclone”和“gitpush”工作得很好。但对于小型存储库则不然:它只有3Mb(未压缩)和1次提交。我总是收到的消息是:efrror:RPCFailed;result=22,HTTPcode=404fatal:Theremoteendhungupunexpectedly我已经按照推荐更改了bonobowebconfighere我已经做了thisconfigcommand.那么,有人有任何其他线索吗?

Git 推送错误 : RPC failed: curl 52

gitpush失败并出现以下错误fatal:RPCfailed:curl52:Emptyreplyfromserver如果只修改、添加或删除了一个文件,则上传成功。以下设置不能可靠地工作gitconfig--global--addcore.compression-1在ubuntu14.04上运行的git版本是2.8.2,openssl和gnutls编译都试过了。sshRemote也失败。存储库遇到问题bitbucketgithubgitlab感谢失败安全的答案 最佳答案 在终端使用sudo克隆,或输入:gitconfig--glob

Git 错误 : RPC failed; result=22, HTTP 代码 = 404

我在OSX上使用SourceTree并使用Git推送到VisualStudioOnline。我收到以下错误:POSTgit-receive-pack(490857233bytes)error:RPCfailed;result=22,HTTPcode=404fatal:TheremoteendhungupunexpectedlyEverythingup-to-dateCompletedwitherrors,seeabove我已经尝试过以下方法:gitconfig--globalhttp.postBuffer524288000 最佳答案

windows - git 克隆错误 : RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054

我在git上克隆存储库时遇到问题。我已经尝试了好几天并尝试了很多解决方案(在大多数情况下,问题略有不同但似乎适用)但没有做任何改变。我试过关闭防病毒软件和防火墙,但没有用。我还尝试过卸载并重新安装网络适配器驱动程序(并重新启动计算机),但没有用。据我所知,这是某个地方的网络问题,因为远程服务器一直挂起,但我无法解决这个问题。使用gitclone-v--progress似乎给出了与gitclone相同的输出。gitclone-v--progresshttps://github.com/mit-cml/appinventor-sources.git的输出Cloninginto'appinv

Git:错误:RPC 失败;结果=22,HTTP 代码=411

症状:Git突然拒绝推送存储库(在我的例子中是向github):$gitpushCountingobjects:9292,done.Deltacompressionusingupto8threads.Compressingobjects:100%(2136/2136),done.error:RPCfailed;result=22,HTTPcode=411fatal:TheremoteendhungupunexpectedlyWritingobjects:100%(8222/8222),1.27MiB|837KiB/s,done.Total8222(delta6060),reused81

git - 错误 : RPC failed; curl transfer closed with outstanding read data remaining

当我尝试从GitLab(GitLab6.6.24ef8369)克隆存储库时遇到此错误:remote:Countingobjects:66352,done.remote:Compressingobjects:100%(10417/10417),done.error:RPCfailed;curl18transferclosedwithoutstandingreaddataremainingfatal:Theremoteendhungupunexpectedlyfatal:earlyEOFfatal:index-packfailed然后克隆被中止。我怎样才能避免这种情况?