-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 -> Request Time-out #925
Comments
Problem is in your code! |
I don't know where the problem is, because it happened when I restarted the server, after that it ran smoothly, this is my code for start device : const sessionDir = `./sessions/${deviceNumber}`;
const storePath = `./sessions/store/${deviceNumber}.json`;
const qrFile = `./public/qr/${deviceNumber}.png`;
console.log("Start Device => ", deviceNumber)
const { state, saveCreds } = await useMultiFileAuthState(sessionDir)
const options = {
// printQRInTerminal: true,
auth: state,
logger: pino({ level: "silent" }),
browser: [process.env.APP_NAME, 'Chrome', '1.0.0'],
qrTimeout: 20000,
keepAliveIntervalMs: 10000,
// browser: Browsers.macOS("Safari"),
// version,
};
const store = makeInMemoryStore({});
store.readFromFile(storePath);
deviceNumber = makeWASocket.default(options);
store.readFromFile(storePath);
setInterval(() => {
store.writeToFile(storePath);
}, 10_000);
store.bind(deviceNumber.ev); |
change your browser options. start opening the docs before creating an issue |
i got error Request Time-out when restart my server.
how to solve this error ?
The text was updated successfully, but these errors were encountered: