Closed musicformellons closed 5 years ago
style
to "virtualHosted"
. Check out S3 options: https://github.com/asilvas/image-steam-s3#optionsAfter adding virtualHosted
I now get a 400 error:
Server running at http://localhost:8888
ERR: 2019-02-12T16:51:59.666Z GET /test.jpeg/:/rs=w:640
Error: storage.s3.fetch.error: 400 for myS3testbucket/test.jpeg
at IncomingMessage.<anonymous> (/src/node_modules/image-steam-s3/lib/index.js:101:28)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
When I select the test.jpeg in S3 it gives the path https://s3.eu-west-3.amazonaws.com/myS3testbucket/test.jpeg
, so the problem might be I am using http instead of https?
It uses the Knox client, so I'd suggest checking out their docs: https://github.com/Automattic/knox
We don't use AWS S3.
I have a kubernetes cluster and make a request from another pod for a picture I uploaded to an S3 bucket:
And get following output:
My dev.js:
My questions: