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

RemoteAuth saving an increasingly large file becoming unmaintainable in a short time #3258

Open
1 task done
GuilhermeRX opened this issue Aug 27, 2024 · 3 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@GuilhermeRX
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The zip file generated by RemoteAuth has become increasingly larger, so that it becomes unsustainable in a short time, as I will have huge costs for data traffic in the clouds. I don't know what to do to solve the problem. Can anyone help me

Expected behavior

The remote authentication zip file should never exceed 50MB

Steps to Reproduce the Bug or Issue

const store = new AwsS3Store({
bucketName: 'xxxxx',
remoteDataPath: 'xxxxxxxx',
s3Client: s3,
putObjectCommand,
headObjectCommand,
getObjectCommand,
deleteObjectCommand
});

const hours = +process.env.BACKUP_HOURS;
const backupMsTime = hours * 60 * 60 * 1000;

const remoteAuth = new RemoteAuth({
clientId: 'client_id',
dataPath: 'path_here',
store: store,
backupSyncIntervalMs: backupMsTime
});

const client = new Client({
authStrategy: remoteAuth,
puppeteer: {
executablePath: '/usr/bin/chromium-browser',
args: [
"--no-sandbox",
"--disable-setuid-sandbox",
],
headless: true,
},
});

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

OS: [ Linux, Docker + node-alpine]
Phone OS: [e.g. Android, iOS]
whatsapp-web.js version [1.25.0]
Node.js Version [20.14]

Additional context

No response

@GuilhermeRX GuilhermeRX added the bug Something isn't working label Aug 27, 2024
@williamsouto-dev
Copy link

Any solution to this problem? My storage is almost 2GB

@GuilhermeRX
Copy link
Author

Any solution to this problem? My storage is almost 2GB

I still don't have a solution for this problem, I'm seriously considering disabling remote authentication. Furthermore, now the code recovers the session and simply hangs, does not generate a new qr code and also does not complete the login

@AKwoKWH
Copy link

AKwoKWH commented Sep 8, 2024

I guess it is the same thing
#3222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants