Skip to content
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

Google::APIClient::BatchRequest, broken pipe when performing Google Analytics call #106

Closed
buren opened this issue Jan 18, 2014 · 1 comment
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@buren
Copy link

buren commented Jan 18, 2014

copy from: https://code.google.com/p/google-api-ruby-client/issues/detail?id=87

What steps will reproduce the problem?

  1. Create Google::APIClient.new (and perform auth...)
  2. Create Google::APIClient::BatchRequest.new
  3. Add a new valid Google Analytics API call to batch request object (i've verified that mine work by using client.execute as usual)
  4. Perform the batch request client.execute(batch)
  5. client.execeute(batch) returns !! #<Errno::EPIPE: Broken pipe>

What is the expected output? What do you see instead?

Expected; Google::APIClient::Result
Result: !! #<Errno::EPIPE: Broken pipe>

What version of the product are you using? On what operating system?

google-api-client v 0.6.2 (ruby gem) (Macintosh; Intel Mac OS X 10_8_3)

Please provide any additional information below.

I've verified that the call im trying to perform is valid and functional using client.execute without batch requests.

STACKTRACE:

Errno::EPIPE - Broken pipe:
/Users/buren/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/openssl/buffering.rb:318:in do_write' /Users/buren/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/openssl/buffering.rb:336:inwrite'
/Users/buren/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http/generic_request.rb:202:in send_request_with_body_stream' /Users/buren/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http/generic_request.rb:132:inexec'
/Users/buren/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:1403:in block in transport_request' /Users/buren/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:1402:intransport_request'
/Users/buren/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:1375:in request' /Users/buren/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:1368:inblock in request'
/Users/buren/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:851:in start' /Users/buren/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/http.rb:1366:inrequest'
(gem) faraday-0.8.5/lib/faraday/adapter/net_http.rb:75:in perform_request' (gem) faraday-0.8.5/lib/faraday/adapter/net_http.rb:38:incall'
(gem) faraday-0.8.5/lib/faraday/request/url_encoded.rb:14:in call' (gem) google-api-client-0.6.2/lib/google/api_client/request.rb:159:insend'
(gem) google-api-client-0.6.2/lib/google/api_client.rb:563:in execute' lib/google/tb_analytics.rb:81:inexecute_request'
app/controllers/participants_controller.rb:360:in google_analytics_data' (gem) actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:4:insend_action'
(gem) actionpack-3.2.13/lib/abstract_controller/base.rb:167:in process_action' (gem) actionpack-3.2.13/lib/action_controller/metal/rendering.rb:10:inprocess_action'
(gem) actionpack-3.2.13/lib/abstract_controller/callbacks.rb:18:in block in process_action' (gem) activesupport-3.2.13/lib/active_support/callbacks.rb:469:in_run__4205675944270840246__process_action__3704399789718745000__callbacks'
(gem) activesupport-3.2.13/lib/active_support/callbacks.rb:405:in __run_callback' (gem) activesupport-3.2.13/lib/active_support/callbacks.rb:385:in_run_process_action_callbacks'
(gem) activesupport-3.2.13/lib/active_support/callbacks.rb:81:in run_callbacks' (gem) actionpack-3.2.13/lib/abstract_controller/callbacks.rb:17:inprocess_action'
(gem) actionpack-3.2.13/lib/action_controller/metal/rescue.rb:29:in process_action' (gem) actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:30:inblock in process_action'
(gem) activesupport-3.2.13/lib/active_support/notifications.rb:123:in block in instrument' (gem) activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:ininstrument'
(gem) activesupport-3.2.13/lib/active_support/notifications.rb:123:in instrument' (gem) actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:29:inprocess_action'
(gem) actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:207:in process_action' (gem) activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:18:inprocess_action'
(gem) actionpack-3.2.13/lib/abstract_controller/base.rb:121:in process' (gem) actionpack-3.2.13/lib/abstract_controller/rendering.rb:45:inprocess'
(gem) actionpack-3.2.13/lib/action_controller/metal.rb:203:in dispatch' (gem) actionpack-3.2.13/lib/action_controller/metal/rack_delegation.rb:14:indispatch'
(gem) actionpack-3.2.13/lib/action_controller/metal.rb:246:in block in action' (gem) actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:indispatch'
(gem) actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:36:in call' (gem) journey-1.0.4/lib/journey/router.rb:68:inblock in call'
(gem) journey-1.0.4/lib/journey/router.rb:56:in call' (gem) actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:612:incall'
(gem) bullet-4.3.0/lib/bullet/rack.rb:11:in call' (gem) actionpack-3.2.13/lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
(gem) rack-1.4.5/lib/rack/etag.rb:23:in call' (gem) rack-1.4.5/lib/rack/conditionalget.rb:25:incall'
(gem) actionpack-3.2.13/lib/action_dispatch/middleware/head.rb:14:in call' (gem) actionpack-3.2.13/lib/action_dispatch/middleware/params_parser.rb:21:incall'
(gem) actionpack-3.2.13/lib/action_dispatch/middleware/flash.rb:242:in call' (gem) rack-1.4.5/lib/rack/session/abstract/id.rb:210:incontext'
(gem) rack-1.4.5/lib/rack/session/abstract/id.rb:205:in call' (gem) actionpack-3.2.13/lib/action_dispatch/middleware/cookies.rb:341:incall'
(gem) activerecord-3.2.13/lib/active_record/query_cache.rb:64:in call' (gem) activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall'
(gem) actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:28:in block in call' (gem) activesupport-3.2.13/lib/active_support/callbacks.rb:405:in_run__1148351990235291595__call__1004835448436417272__callbacks'
(gem) activesupport-3.2.13/lib/active_support/callbacks.rb:405:in __run_callback' (gem) activesupport-3.2.13/lib/active_support/callbacks.rb:385:in_run_call_callbacks'
(gem) activesupport-3.2.13/lib/active_support/callbacks.rb:81:in run_callbacks' (gem) actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:27:incall'
(gem) actionpack-3.2.13/lib/action_dispatch/middleware/remote_ip.rb:31:in call' (gem) better_errors-0.8.0/lib/better_errors/middleware.rb:84:inprotected_app_call'
(gem) better_errors-0.8.0/lib/better_errors/middleware.rb:79:in better_errors_call' (gem) better_errors-0.8.0/lib/better_errors/middleware.rb:56:incall'
(gem) actionpack-3.2.13/lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' (gem) actionpack-3.2.13/lib/action_dispatch/middleware/show_exceptions.rb:56:incall'
(gem) railties-3.2.13/lib/rails/rack/logger.rb:32:in call_app' (gem) railties-3.2.13/lib/rails/rack/logger.rb:16:inblock in call'
(gem) activesupport-3.2.13/lib/active_support/tagged_logging.rb:22:in tagged' (gem) railties-3.2.13/lib/rails/rack/logger.rb:16:incall'
(gem) actionpack-3.2.13/lib/action_dispatch/middleware/request_id.rb:22:in call' (gem) rack-1.4.5/lib/rack/methodoverride.rb:21:incall'
(gem) rack-1.4.5/lib/rack/runtime.rb:17:in call' (gem) activesupport-3.2.13/lib/active_support/cache/strategy/local_cache.rb:72:incall'
(gem) actionpack-3.2.13/lib/action_dispatch/middleware/static.rb:63:in call' (gem) railties-3.2.13/lib/rails/engine.rb:479:incall'
(gem) railties-3.2.13/lib/rails/application.rb:223:in call' (gem) rack-1.4.5/lib/rack/content_length.rb:14:incall'
(gem) railties-3.2.13/lib/rails/rack/log_tailer.rb:17:in call' (gem) thin-1.5.0/lib/thin/connection.rb:81:inblock in pre_process'
(gem) thin-1.5.0/lib/thin/connection.rb:79:in pre_process' (gem) thin-1.5.0/lib/thin/connection.rb:54:inprocess'
(gem) thin-1.5.0/lib/thin/connection.rb:39:in receive_data' (gem) eventmachine-1.0.0/lib/eventmachine.rb:187:inrun'
(gem) thin-1.5.0/lib/thin/backends/base.rb:63:in start' (gem) thin-1.5.0/lib/thin/server.rb:159:instart'
(gem) rack-1.4.5/lib/rack/handler/thin.rb:13:in run' (gem) rack-1.4.5/lib/rack/server.rb:268:instart'
(gem) railties-3.2.13/lib/rails/commands/server.rb:70:in start' (gem) railties-3.2.13/lib/rails/commands.rb:55:inblock in <top (required)>'
(gem) railties-3.2.13/lib/rails/commands.rb:50:in <top (required)>' script/rails:6:in

'

@sqrrrl sqrrrl removed this from the 0.7.2 milestone Dec 17, 2014
@kensentor
Copy link

I've seen the broken pipe issue before on other calls, and in those cases, switching Faraday to use the httpclient as the adapter has fixed it. It's something I found here: http://stackoverflow.com/questions/24201842/uploading-a-video-to-youtube-using-youtube-data-api-broken-pipe-errnoepipe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants