Report this

What is the reason for this report?

spaces storage works locally but not in production

Posted on September 27, 2021

Running locally in Laravel sail container, using league/flysystem-aws-s3-v3. It stores correctly in spaces.

All the credentials remain the same in production and I get

Found 1 error while validating the input provided for the GetObject operation: [Key] expected string length to be >= 1, but found string length of 0

I set CORS to allow all methods, header to *. I use cloudflare but set the proxy to DNS-only.

It is on a subdomain.

The error definitely occurs on Storage::disk(‘spaces’). When I change the disk to local the error goes away.

Anyone experience this?

thanks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

found issue in the code. resolved.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.