S3 driver and S3 compatible storage (backblaze)
Is it possible to use any S3 compatible storage? Trying to use my backblaze bucket which seems to work fine outside of twenty.
I'm going a little nutty trying different combinations here with the environment variables found here.
https://twenty.com/developers/section/self-hosting/setup
My bucket is url s3.us-west-002.backblazeb2.com/{mybucket}
Here is the error (abbreviated)
Exception Captured
TypeError: Cannot read properties of undefined (reading 'send')
at S3Driver.write (/app/packages/twenty-server/dist/src/engine/core-modules/file-storage/drivers/s3.driver.js:35:29)
at FileStorageService.write (/app/packages/twenty-server/dist/src/engine/core-modules/file-storage/file-storage.service.js:33:28)
at FileUploadService._uploadFile (/app/packages/twenty-server/dist/src/engine/core-modules/file/file-upload/services/file-upload.service.js:36:32)
at /app/packages/twenty-server/dist/src/engine/core-modules/file/file-upload/services/file-upload.service.js:92:25
at async Promise.all (index 0)
at async FileUploadService.uploadImage (/app/packages/twenty-server/dist/src/engine/core-modules/file/file-upload/services/file-upload.service.js:88:9)
at async UserResolver.uploadProfilePicture (/app/packages/twenty-server/dist/src/engine/core-modules/user/user.resolver.js:140:27) {
path: undefined,
locations: undefined,
extensions: {
code: 'INTERNAL_SERVER_ERROR',
response: "Cannot read properties of undefined (reading 'send')"
1 Reply
was eventually able to get it to work- I think it was missing the environment variables in the default template, but I spent a ton of time trying different things until I felt like I was losing my mind