Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Unknown encoding: base64url #291

Closed
patilanz opened this issue Sep 2, 2022 · 2 comments
Closed

Error Unknown encoding: base64url #291

patilanz opened this issue Sep 2, 2022 · 2 comments

Comments

@patilanz
Copy link

patilanz commented Sep 2, 2022

I'm using uppy in the client side to upload files. Everyting works great with tus.FileStore but when i use S3Store it throws this error:

Something went wrong with that request Unknown encoding: base64url

I tried standalone server and express, same result.

const tus = require('tus-node-server');

const server = new tus.Server();
server.datastore = new tus.S3Store({
    path: '/files',
    bucket: 'bucket-name',
    accessKeyId: 'access-key-id',
    secretAccessKey: 'secret-access-key',
    region: 'eu-west-1',
    partSize: 8 * 1024 * 1024, // each uploaded part will have ~8MB,
    tmpDirPrefix: 'tus-s3-store',
});

const host = '127.0.0.1';
const port = 1080;
server.listen({ host, port }, () => {
    console.log(`[${new Date().toLocaleTimeString()}] tus server listening at http://${host}:${port}`);
});
@Murderlon
Copy link
Member

Hi, you're node version is not recent enough. See: #247

@Murderlon Murderlon closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2022
@patilanz
Copy link
Author

patilanz commented Sep 2, 2022

Fixed thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants