I'm build a script with node js and I'am using Bacblaze b2 + cloudflare.
I followed this tutorial: https://www.backblaze.com/blog/use-a-cloudflare-worker-to-send-notifications-on-backblaze-b2-events/
And when i use backblaze postman api it works perfectly but when i configure my aws credential it doesn't work.
My aws credential configuration:
AWS.config = new AWS.Config({
accessKeyId: "...",
secretAccessKey: "...",
region: "us-west-000",
endpoint: "cloudflare-b2-proxy.<api name omitted>.workers.dev"
});
But if i use my s3 endpoit it works but if i use this endpoint i'll pay the bacblaze output ($0.01) but if i use my worker i don't have to pay anything but with aws-sdk doesn't work.
Error:
Error [XMLParserError]: Non-whitespace before first tag.
Line: 0
Column: 1
Char: e