soto-project / soto

Swift SDK for AWS that works on Linux, macOS and iOS
https://soto.codes
Apache License 2.0
875 stars 83 forks source link

Can list buckets in Digital Ocean Spaces, but unable to write/read a file into a bucket #572

Closed av0c0der closed 2 years ago

av0c0der commented 2 years ago

I tried my best searching this topic but didn't find anything useful.

Describe the bug I can list my buckets on DO Spaces, but can not read or write individual files.

To Reproduce Steps to reproduce the behavior:

  1. Create S3 connection object.
  2. Make request to read or write a file. snap

The file is there and accessible for public read. I have also tried to write a file into different buckets, no success.

Screenshot 2022-01-11 at 02 24 56

The error I'm getting in both cases is: The server returned an invalid or incomplete response.

Expected behavior I expect to receive/upload a file.

Setup (please complete the following information):

adam-fowler commented 2 years ago

A Couple of questions: Is it possible for you to try this with the latest v5 of Soto Have you tried your code on AWS S3, to see if this is an issue with the code?

av0c0der commented 2 years ago

I don't have AWS to try. But just tried with 5.0.0 and it works fine.

One thing to note here. To use soto 5.0.0 on macOS you must update swift-tools-version to 5.5 and set macOS(.v12) I forked the repo and changed it for myself: https://github.com/Jauzee/soto/commit/87e3effaadf7c7b0e33b10ac452c42ba163430f9

av0c0der commented 2 years ago

I think we can close this issue. I will just use 5.0.