-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
This usage is out of date, please use 'application/json' as content-type #622
Comments
谢谢你的回复,找到原因了,启动服务后访问http://127.0.0.1:8866,提交页面的地址不对,请求网址是:http://127.0.0.1:8866/predict/image/ace2p,应该是把image去掉,提交参数是image,但是文档里面是images。经测试只要路径加上image就会提示{"msg":{"Warnning":"This usage is out of date, please use 'application/json' as content-type to post to /predict/ace2p. See 'https://github.com/PaddlePaddle/PaddleHub/blob/release/v1.6/docs/tutorial/serving.md' for more details."}} |
不过不知道为啥使用http返回的图片是全黑的,使用api的是正常的。 |
您好,您是说使用的网页上的图片是全黑,还是在脚本中请求得到的返回是全黑呢?您打开的网页是我们测试使用的,不能正常使用的。 |
用网页的确实不能用,脚本里面返回是全黑的,api返回是正确的 |
可以看下您的脚本吗 我这边复现排查 |
今天换了个电脑,屏幕比较亮,发现之前的电脑可能不是全黑,轮廓是灰色的,不仔细看是全黑的,api是彩色的。
|
环境
复现信息:
执行命令hub serving start -m ace2p,启动http服务,访问网页,选择图片,点击start没反应,f12查看请求回应信息为:
{"msg":{"Warnning":"This usage is out of date, please use 'application/json' as content-type to post to /predict/ace2p. See 'https://github.com/PaddlePaddle/PaddleHub/blob/release/v1.6/docs/tutorial/serving.md' for more details."}}
The text was updated successfully, but these errors were encountered: