-
Notifications
You must be signed in to change notification settings - Fork 369
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
HTTP::RequestError: invalid transfer encoding in 0.7.0 #78
Comments
遇到同样的问题 |
能够贴出调用堆栈么? 这个错误是http的报错。 Stack Overflow上Invalid transfer encoding也没答案,我也无法复现。。 |
用 media_create 上传 file 都会出错
|
嗯,我复现了这个错,看起来http.rb传文件的API和Rest Client不一样了。 |
draft version have error, relative issue in http. |
Just the form-data boundary number not right if only one field exist. (in this case, |
👏👏👏 |
删除永久素材接口仍然报错 /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/http-1.0.4/lib/http/request/writer.rb:57:in `add_body_type_headers': invalid transfer encoding (HTTP::RequestError)
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/http-1.0.4/lib/http/request/writer.rb:41:in `stream'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/http-1.0.4/lib/http/request.rb:110:in `stream'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/http-1.0.4/lib/http/connection.rb:71:in `send_request'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/http-1.0.4/lib/http/client.rb:66:in `perform'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/http-1.0.4/lib/http/client.rb:44:in `request'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/http-1.0.4/lib/http/chainable.rb:26:in `post'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/wechat-0.7.11/lib/wechat/http_client.rb:24:in `block in post'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/wechat-0.7.11/lib/wechat/http_client.rb:45:in `request'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/wechat-0.7.11/lib/wechat/http_client.rb:22:in `post'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/wechat-0.7.11/lib/wechat/api_base.rb:38:in `block in post'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/wechat-0.7.11/lib/wechat/api_base.rb:50:in `with_access_token'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/wechat-0.7.11/lib/wechat/api_base.rb:37:in `post'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/wechat-0.7.11/lib/wechat/api.rb:117:in `material_delete'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/wechat-0.7.11/bin/wechat:365:in `material_delete'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/wechat-0.7.11/bin/wechat:461:in `<top (required)>'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bin/wechat:22:in `load'
from /Users/hackerzhang/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/bin/wechat:22:in `<main>' wechat 版本 0.7.11 |
删除永久素材接口仍然报错的问题又遇到了 |
在升级到0.7.0后,http代替了rest-client。不过请求都出现了
HTTP::RequestError: invalid transfer encoding
问题,已经回退到了0.6.8。Rails版本:4.2.1
The text was updated successfully, but these errors were encountered: