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

Excon::Error::Forbidden #2775

Open
ganeshchothve opened this issue Jan 20, 2025 · 2 comments
Open

Excon::Error::Forbidden #2775

ganeshchothve opened this issue Jan 20, 2025 · 2 comments

Comments

@ganeshchothve
Copy link

ganeshchothve commented Jan 20, 2025

Expected(200) <=> Actual(403 Forbidden) (Excon::Error::Forbidden) excon.error.response :body =>

Expected(200) <=> Actual(403 Forbidden) (Excon::Error::Forbidden)

getting error in carrierwave 3.1.0 whereas it was previously working

ex:

class Student

mount_uploader :profile
end

Student.first.profile.present?

getting error on above check

everything aws s3 permissions everything is okay. the only thing is i upgraded this from version 3.0.7 to 3.1.0 and issue started occuring

@jonathan-at-leavelogic
Copy link

We are seeing this issue as well when attempting to upgrade Carrierwave to the latest version. The error is happening on a HEAD request to a S3 file that is publicly readable. Excon and Fog-AWS are latest versions as well.

Excon::Error::Forbidden (Expected(200) <=> Actual(403 Forbidden)
excon.error.response
  :body              => ""
  :cookies           => [
  ]
  :headers           => {
    "Content-Type"      => "application/xml"
    "Date"              => "Fri, 31 Jan 2025 16:39:34 GMT"
    "Server"            => "AmazonS3"
    "Transfer-Encoding" => "chunked"
    "x-amz-id-2"        => "[Redacted]"
    "x-amz-request-id"  => "[Redacted]"
  }
  :host              => "[redacted].s3.amazonaws.com"
  :local_address     => "[redacted]"
  :local_port        => 55530
  :method            => "HEAD"
  :omit_default_port => true
  :path              => "/icons/05ce8c3bf021a7a797c8e30e6c3e6ad7/original/05ce8c3bf021a7a797c8e30e6c3e6ad7.png"
  :port              => 443
  :query             => nil
  :reason_phrase     => "Forbidden"
  :remote_ip         => "127.0.0.1"
  :scheme            => "https"
  :status            => 403
  :status_line       => "HTTP/1.1 403 Forbidden\r\n"

@mshibuya
Copy link
Member

mshibuya commented Feb 1, 2025

Could you provide the full stack trace?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants