Google::Cloud::Error Events - Stream error in the HTTP/2 framing layer (Google::Cloud::Error)

未关闭
#33,451 1 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@rajeevpodar 已经在做这个了。

开始于 2026年10月9日。

评估

这个 Issue 还没有评估数据。

描述

api: storage priority: p2 type: bug

Environment details

OS: Linux/Debian latest trixie
Ruby version: 3.4.9
Gem name and version: google-cloud-storage 1.59.0, google-apis-core 1.0.2
Steps to reproduce
  1. Rails ActiveStorage 8.x using the the above versions of the gcp gems
  2. Have an attachment on a model like - has_one_attached :profile_picture, service: 'some_service' where some_service refers to a config that looks like
some_service:
  name: 'some_service'
  service: GCS
  project: some-project-id
  credentials: credentials-json
  bucket: bucket name
  1. Attach a file to to the active storage attribute
Code example
company = Company.find(1)
company.profile_picture.attach(io: File.open(Rails.root.join("picture.jpg")), filename: "picture.jpg")
Full backtrace
Faraday::ConnectionFailed: Stream error in the HTTP/2 framing layer (Faraday::ConnectionFailed)
    from faraday/adapter/typhoeus.rb:91:in 'block in Faraday::Adapter::Typhoeus#request'
    from typhoeus/request/callbacks.rb:146:in 'block in Typhoeus::Request::Callbacks#execute_callbacks'
    from typhoeus/request/callbacks.rb:145:in 'each'
    from typhoeus/request/callbacks.rb:145:in 'execute_callbacks'
    from typhoeus/request/operations.rb:35:in 'finish'
    from typhoeus/easy_factory.rb:170:in 'block in Typhoeus::EasyFactory#set_callback'
    from typhoeus/request/operations.rb:16:in 'run'
    from typhoeus/request/cacheable.rb:18:in 'run'
    from typhoeus/request/block_connection.rb:31:in 'run'
    from typhoeus/request/stubbable.rb:25:in 'run'
    from typhoeus/request/before.rb:26:in 'run'
    from faraday/adapter/typhoeus.rb:48:in 'perform_request'
    from faraday/adapter/typhoeus.rb:28:in 'call'
    from faraday/follow_redirects/middleware.rb:77:in 'perform_with_redirection'
    from faraday/follow_redirects/middleware.rb:65:in 'call'
    from faraday/rack_builder.rb:153:in 'build_response'
    from faraday/connection.rb:452:in 'run_request'
    from faraday/connection.rb:280:in 'post'
    from google/apis/core/storage_upload.rb:140:in 'initiate_resumable_upload'
    from google/apis/core/http_command.rb:132:in 'block (2 levels) in Google::Apis::Core::HttpCommand#do_retry'
    from retriable.rb:94:in 'Retriable.call_with_timeout'
    from retriable.rb:65:in 'block in Retriable.execute_tries'
    from <internal:numeric>:257:in 'times'
    from retriable.rb:61:in 'Retriable.execute_tries'
    from retriable.rb:49:in 'Retriable.retriable'
    from google/apis/core/http_command.rb:129:in 'block in Google::Apis::Core::HttpCommand#do_retry'
    from retriable.rb:94:in 'Retriable.call_with_timeout'
    from retriable.rb:65:in 'block in Retriable.execute_tries'
    from <internal:numeric>:257:in 'times'
    from retriable.rb:61:in 'Retriable.execute_tries'
    from retriable.rb:49:in 'Retriable.retriable'
    from google/apis/core/http_command.rb:119:in 'do_retry'
    from google/apis/core/storage_upload.rb:108:in 'execute'
    from google/apis/core/base_service.rb:507:in 'execute_or_queue_command'
    from google/apis/storage_v1/service.rb:2952:in 'insert_object'
    from google/cloud/storage/service.rb:440:in 'block in Google::Cloud::Storage::Service#insert_file'
    from google/cloud/storage/service.rb:1032:in 'execute'
    from google/cloud/storage/service.rb:439:in 'insert_file'
    from google/cloud/storage/bucket.rb:1811:in 'create_file'
主要语言
Ruby
星标
1.4k
派生
581
平均合并
1 天 22 小时
30 天内合并 PR
69

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

googleapis/google-cloud-ruby 的其他 Issue

查看 googleapis/google-cloud-ruby 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。