DocSpring / libreconv

Ruby gem that converts office documents to PDF using LibreOffice / OpenOffice.
MIT License
198 stars 63 forks source link

Getting 403 Forbidden when using S3 url #31

Open khataev opened 3 years ago

khataev commented 3 years ago

I've noticed, that Amazon API returns 403 response when trying to request only headers:

curl "https:/..." --head            
HTTP/1.1 403 Forbidden
x-amz-request-id: 9A0D5596C066E400
x-amz-id-2: Cb1y8kEjyPKd3JzpaxV8cGAsXvA9tzlLaCy4l/HP1qBfaRMIR9Q/da0tnpHUfItbyH8P7WmokkI=
Content-Type: application/xml
Date: Tue, 23 Feb 2021 07:01:38 GMT
Server: AmazonS3

While, ordinary request works fine

 curl "https://..." --output file.docx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 38010  100 38010    0     0   123k      0 --:--:-- --:--:-- --:--:--  123k

What is the reason for this?

MeterSoft commented 1 year ago

same problem