求助!!!验证sendVerifyCode接口时报错一直无法解决
来源:3-8 开发用户EdgeService_C

编号89757321
2019-01-04
老师您好:
我在验证sendVerifyCode这个接口时出现了报错,我仔细地核对了ip及端口号没有问题,可是问题还没有解决,一直卡在这,无法向下进行学习,想向您请教一下:
验证的接口为:
postman的返回值为:
{
“code”: “9999”,
“message”: null
}
报错信息为:
我通过打断点发现问题出现在:
ServiceProvider.java的文件中的transport.open()这个方法
这块我想了很多方法都无法解决,以至于无法开展后续的学习,老师若时间麻烦指点我一下,拜谢!
4回答
-
boncsunny
2019-07-15
I had the same issue. Replacing "localhost" with the ip fixed it.
The reason was: Python used TCPV6, where Java used TCP.
Python: transport = TSocket.TServerSocket(host="127.0.0.1", port = 9091)
Java: transport = new TSocket("127.0.0.1", 9091);
10 -
慕用5051679
2019-01-15
你好 我也碰到了这个问题 解决了吗
00 -
编号89757321
提问者
2019-01-10
原因是在thrift中指定的是localhost 但是没有在windows端的hosts文件中配置localhost与127.0.0.1之间的关系
00 -
刘果国
2019-01-04
直接telnet一下这个ip+port,感觉像服务没起来
032020-04-26
相似问题