-
Notifications
You must be signed in to change notification settings - Fork 876
Closed
Description
Environment details
- OS: macOS 15.6
- Ruby version: jruby-9.4.12.0
- Gem name and version: google-apis-core 1.0.0
Steps to reproduce
Making batched calendar requests to add events leads to a Content-Length not given and Transfer-Encoding is not 'chunked'
error
Code example
I have code that boils down to the code below, and has worked for years with google-apis-core < 1.0.0, but now gives this error.
gclient = Google::Apis::CalendarV3::CalendarService.new
gclient.authorization = valid_access_token
gclient.batch {|gclient|
gclient.insert_event("primary", body1, &batch_request_proc)
gclient.insert_event("primary", body2, &batch_request_proc)
}
and i end up with a stack trace like
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/net-http-0.5.0/lib/net/http/generic_request.rb:202:in `exec'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/net-http-0.5.0/lib/net/http.rb:2413:in `block in transport_request'
from org/jruby/RubyKernel.java:1426:in `catch'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/net-http-0.5.0/lib/net/http.rb:2411:in `transport_request'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/net-http-0.5.0/lib/net/http.rb:2384:in `request'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/faraday-net_http-3.4.1/lib/faraday/adapter/net_http.rb:113:in `block in request_with_wrapped_block'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/net-http-0.5.0/lib/net/http.rb:1632:in `start'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/faraday-net_http-3.4.1/lib/faraday/adapter/net_http.rb:112:in `request_with_wrapped_block'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/faraday-net_http-3.4.1/lib/faraday/adapter/net_http.rb:102:in `perform_request'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/faraday-net_http-3.4.1/lib/faraday/adapter/net_http.rb:66:in `block in call'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/faraday-2.13.4/lib/faraday/adapter.rb:45:in `connection'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/faraday-net_http-3.4.1/lib/faraday/adapter/net_http.rb:65:in `call'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/faraday-follow_redirects-0.3.0/lib/faraday/follow_redirects/middleware.rb:77:in `perform_with_redirection'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/faraday-follow_redirects-0.3.0/lib/faraday/follow_redirects/middleware.rb:65:in `call'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/faraday-2.13.4/lib/faraday/rack_builder.rb:153:in `build_response'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/faraday-2.13.4/lib/faraday/connection.rb:452:in `run_request'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/google-apis-core-1.0.0/lib/google/apis/core/http_command.rb:317:in `execute_once'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/google-apis-core-1.0.0/lib/google/apis/core/http_command.rb:132:in `block in do_retry'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'
from org/jruby/RubyFixnum.java:311:in `times'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/google-apis-core-1.0.0/lib/google/apis/core/http_command.rb:129:in `block in do_retry'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/retriable-3.1.2/lib/retriable.rb:61:in `block in retriable'
from org/jruby/RubyFixnum.java:311:in `times'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/retriable-3.1.2/lib/retriable.rb:56:in `retriable'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/google-apis-core-1.0.0/lib/google/apis/core/http_command.rb:119:in `do_retry'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/google-apis-core-1.0.0/lib/google/apis/core/http_command.rb:110:in `execute'
from /Users/mohamed/.rbenv/versions/jruby-9.4.12.0/lib/ruby/gems/shared/gems/google-apis-core-1.0.0/lib/google/apis/core/base_service.rb:231:in `batch'
from /Users/mohamed/rubyprojects/substitutealert/app/models/gcal.rb:238:in `block in sync'
Metadata
Metadata
Assignees
Labels
No labels