-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class 'swoole_http_client' not found i #13
Comments
这个版本是按照 swoole 1.8+ 来写的,可能最新的 swoole 已经不在支持当时的一些 API 了。以后升级到 hprose 3.0 的时候,会使用 swoole 4.4+ 来重写的。 |
哦哦 我现在用http/client方式调用rpc服务层 出现404 Not found错误 但是在YII2 框架下服务层是可以访问的 这是怎么回事啊? |
刚才调试通了 为啥 hprose new client 一个地址 地址后面会默认加/ 比如: example.com/order 我测试了下 会变成 example.com/order/ 导致我严格的路由模式的话 会报错 就会404了 |
希望能够解决 |
代码里面并没有做把 example.com/order 变成 example.com/order/ 的处理啊。 |
但是 在我new client处理的时候 确实变成了 需要末尾加/ 才能返回数据 有点匪夷所思 |
这不恰恰说明client没有自动加 '/' 吗? |
请问有没有开发3.0的计划 |
有,但是现在在做go版本。 |
Class 'swoole_http_client' not found in /Users/chenxi/web/service-backend-project/vendor/hprose/hprose-swoole/src/Hprose/Swoole/Http/Transporter.php:42
报如下错误:
The text was updated successfully, but these errors were encountered: