directus / v8-archive

Directus Database API — Wraps Custom SQL Databases with a REST/GraphQL API
https://docs.directus.io/api/reference.html
505 stars 204 forks source link

Amazon S3 adapter is not working #2122

Open jmodanwal opened 4 years ago

jmodanwal commented 4 years ago

Hi I am trying to connect S3 storage to my directus APP but it's giving error while I upload new file. I am following this article to implement S3: https://docs.directus.io/extensions/storage-adapters.html#using-aws-s3

Directus Version: 8.8.0 Here is the error message:

{"error":{"code":null,"message":"Error executing \"ListObjects\" on \"https:\/\/0707-images.s3-us-west-2.amazonaws.com\/0707-images?prefix=originals%2Fea51e8fc-f24f-4ef4-bd08-223d33e40803.jpg%2F&max-keys=1&encoding-type=url\"; AWS HTTP error: Client error:GET https:\/\/0707-images.s3-us-west-2.amazonaws.com\/0707-images?prefix=originals%2Fea51e8fc-f24f-4ef4-bd08-223d33e40803.jpg%2F&max-keys=1&encoding-type=urlresulted in a404 Not Foundresponse:\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>NoSuchKey<\/Code><Message>The specified key does not exist.<\/Message> (truncated...)\n NoSuchKey (client): The specified key does not exist. - <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>NoSuchKey<\/Code><Message>The specified key does not exist.<\/Message><Key>0707-images<\/Key><RequestId>61FA8398A4791435<\/RequestId><HostId>NkBFxMPjF9YRvZuivs5NTG\/6LO2L1W6jtp0o0m6MIOIEqOfcI4W+rEhP9t82TQkJCKl7ifkoSEM=<\/HostId><\/Error>"}}

Please help me in this issue. Thanks 🐰

ambujbpl commented 3 years ago

Hi, I am facing the same issue {"error":{"code":null,"message":"Error executing \"ListObjects\" on \"https:\/\/xyz.s3.ap-south-1.amazonaws.com\/xyz?prefix=uploads%2F48476f53-6482-443b-95a0-c04fb02be377.png%2F&max-keys=1&encoding-type=url\"; AWS HTTP error: Client error: GET https:\/\/xyz.s3.ap-south-1.amazonaws.com\/xyz?prefix=uploads%2F48476f53-6482-443b-95a0-c04fb02be377.png%2F&max-keys=1&encoding-type=url resulted in a 404 Not Found response:\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\nNoSuchKey<\/Code>The specified key does not exist.<\/Message> (truncated...)\n NoSuchKey (client): The specified key does not exist. - <?xml version=\"1.0\" encoding=\"UTF-8\"?>\nNoSuchKey<\/Code>The specified key does not exist.<\/Message>logikview<\/Key>832337D12F33C063<\/RequestId>cCESKZLl8OxI2\/D+stfhytTf3Et90W+wEt6vI\/0\/YVVf5sYgr6jAndLHinYVDu\/eC+QfPFvlPVU=<\/HostId><\/Error>"}}