Question
Use s3-streamlogger with DigitalOcean Spaces
I am using s3-streamlogger along with DigitalOcean Spaces, and in order to create logs into my bucket I use the following code:
import { S3StreamLogger } from 's3-streamlogger';
const s3Stream = new S3StreamLogger({
bucket: "mybucket",
config: {
endpoint: 'nyc3.digitaloceanspaces.com'
},
access_key_id: "MY_ACCESS_KEY",
secret_access_key: "MY_SECRET_KEY",
tags: {type: "error", project: "myproject"}
});
s3Stream.write("hello S3");
In the configuguration, if I omit the tags: {type: "error", project: "myproject"}
an InvalidArgument: Null
exception is raised.
Is this a normal behavior or an incompatibility with S3?
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.
×