Mega s4 bucket
I'm trying to use my Mega Bucket Storage with twenty but I'm getting invalid URL error.
My configuration:
Error:
STORAGE_TYPE=S3
STORAGE_S3_REGION=Amsterdan
STORAGE_S3_NAME=twenty
STORAGE_S3_ENDPOINT=s3.eu-central-1.s4.mega.io
STORAGE_S3_ACCESS_KEY_ID=MEGA_ACCESS_KEY
STORAGE_S3_SECRET_ACCESS_KEY=MEGA_SECRET_ACCESS_KEY
STORAGE_TYPE=S3
STORAGE_S3_REGION=Amsterdan
STORAGE_S3_NAME=twenty
STORAGE_S3_ENDPOINT=s3.eu-central-1.s4.mega.io
STORAGE_S3_ACCESS_KEY_ID=MEGA_ACCESS_KEY
STORAGE_S3_SECRET_ACCESS_KEY=MEGA_SECRET_ACCESS_KEY
operation: { name: 'UploadProfilePicture', type: 'mutation' },
document: 'mutation UploadProfilePicture($file: Upload!) {\n' +
' uploadProfilePicture(file: $file) {\n' +
' path\n' +
' token\n' +
' __typename\n' +
' }\n' +
'}',
user: User {
id: 'b29aa631-f41a-4c49-9355-f0c1a7ed8f22',
firstName: '',
lastName: '',
email: 'hey@gatodelcaribe.com',
defaultAvatarUrl: null,
isEmailVerified: false,
disabled: false,
passwordHash: '$2b$10$d3rxnEbz6.FEoOgRkuzno.vxibp0LskBbvf/clacQi6.3vHrbccJW',
canImpersonate: true,
canAccessFullAdminPanel: true,
createdAt: 2025-09-10T08:14:38.540Z,
updatedAt: 2025-09-10T08:14:38.540Z,
deletedAt: null,
locale: 'en'
},
workspace: {
id: 'd0d4b6c7-0540-4252-9b7e-ff5879fc15f2',
displayName: 'Gato del Caribe',
createdAt: '2025-09-10T08:14:38.529Z',
activationStatus: 'ACTIVE'
}
}
[
TypeError: Invalid URL
at new URL (node:internal/url:826:25)
at parseUrl (/app/node_modules/@smithy/url-parser/dist-cjs/index.js:29:21)
at toEndpointV1 (/app/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js:119:41)
at customEndpointProvider (/app/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js:250:65) {
code: 'ERR_INVALID_URL',
input: 's3.eu-central-1.s4.mega.io',
extensions: {}
}
]
operation: { name: 'UploadProfilePicture', type: 'mutation' },
document: 'mutation UploadProfilePicture($file: Upload!) {\n' +
' uploadProfilePicture(file: $file) {\n' +
' path\n' +
' token\n' +
' __typename\n' +
' }\n' +
'}',
user: User {
id: 'b29aa631-f41a-4c49-9355-f0c1a7ed8f22',
firstName: '',
lastName: '',
email: 'hey@gatodelcaribe.com',
defaultAvatarUrl: null,
isEmailVerified: false,
disabled: false,
passwordHash: '$2b$10$d3rxnEbz6.FEoOgRkuzno.vxibp0LskBbvf/clacQi6.3vHrbccJW',
canImpersonate: true,
canAccessFullAdminPanel: true,
createdAt: 2025-09-10T08:14:38.540Z,
updatedAt: 2025-09-10T08:14:38.540Z,
deletedAt: null,
locale: 'en'
},
workspace: {
id: 'd0d4b6c7-0540-4252-9b7e-ff5879fc15f2',
displayName: 'Gato del Caribe',
createdAt: '2025-09-10T08:14:38.529Z',
activationStatus: 'ACTIVE'
}
}
[
TypeError: Invalid URL
at new URL (node:internal/url:826:25)
at parseUrl (/app/node_modules/@smithy/url-parser/dist-cjs/index.js:29:21)
at toEndpointV1 (/app/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js:119:41)
at customEndpointProvider (/app/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js:250:65) {
code: 'ERR_INVALID_URL',
input: 's3.eu-central-1.s4.mega.io',
extensions: {}
}
]
3 Replies