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

QR Not authenticating and bug message #1168

Closed
randracar opened this issue Dec 11, 2020 · 14 comments
Closed

QR Not authenticating and bug message #1168

randracar opened this issue Dec 11, 2020 · 14 comments

Comments

@randracar
Copy link

Describe the bug
When trying to authenticate, an error message appears, and the QR code appears after. But, the QR code does not work, and does not authenticate.
Steps to Reproduce
Steps to reproduce the behavior:
I could not find an way to reproduce it.

create() code
This is the code you use to create the client. e.g

const options = {
    sessionId: 'Imperial',
    headless: true,
    qrTimeout: 0,
    authTimeout: 0,
    restartOnCrash: start,
    cacheEnabled: false,
    useChrome: true,
    killProcessOnBrowserClose: true,
    throwErrorOnTosBlock: false,
    chromiumArgs: [
        '--no-sandbox',
        '--disable-setuid-sandbox',
        '--aggressive-cache-discard',
        '--disable-cache',
        '--disable-application-cache',
        '--disable-offline-load-stale-cache',
        '--disk-cache-size=0'
    ]
}

create(options)
    .then((client) => start(client))
    .catch((err) => new Error(err))

Expected behavior
I expected it to authenticate normally.

DEBUG INFO
This is the info printed to the console when you start your app. It should look like this

set -> e Error: Evaluation failed: TypeError: Cannot read property 'default' of undefined
    at window.<computed>.window.<computed> (/home/random-guy/.npm/_npx/6213/lib/node_modules/@open-wa/wa-automate/dist/lib/launch.js:1:36887)
    at __puppeteer_evaluation_script__:3:89
    at ExecutionContext._evaluateInternal (/home/random-guy/.npm/_npx/6213/lib/node_modules/@open-wa/wa-automate/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Screenshots
If applicable, add screenshots to help explain your problem. Use headless: false to get screenshots

Host (please complete the following information):

  • OS: Ubuntu 20.04

Additional context
Happens every time.

@smashah
Copy link
Member

smashah commented Dec 11, 2020

@randracar thanks for filling out the issue template, there is some information printed after the logo in the logs. can you add that here please, and actually include all the logs from the process. The system is also meant to take some screenshots. Please add those screenshots also.

thanks

@randracar
Copy link
Author

@smashah , this is everything that appears.

The following appears on the logs folder:

1607702016583

This is what appears on the terminal.

Captura de tela de 2020-12-11 12-55-54
Captura de tela de 2020-12-11 12-59-03

@smashah
Copy link
Member

smashah commented Dec 11, 2020

duplicate: #1117

#1117 (comment)

@randracar
Copy link
Author

randracar commented Dec 12, 2020

@smashah I did what you said on how to resolve it, but it did not work. Same error message, same everything.

(Sorry if my english is bad)

@smashah
Copy link
Member

smashah commented Dec 12, 2020

@randracar can you try without all of those chromiumArgs please

@randracar
Copy link
Author

randracar commented Dec 12, 2020

@smashah Same error without them.

Captura de tela de 2020-12-12 14-51-11

@smashah
Copy link
Member

smashah commented Dec 12, 2020

@randracar I will work on this tonight

@randracar
Copy link
Author

@smashah Ok, thank you for your time helping me.

@JulioLongo
Copy link

JulioLongo commented Dec 12, 2020

Same problem herem, using ubuntu

smashah added a commit that referenced this issue Dec 13, 2020
@NasirKhalid24
Copy link

Running on ParrotOS linux and having the same issue - it started recently. Initially I would just keep re-starting the server and it would work eventually but now the issue is persistent

@smashah
Copy link
Member

smashah commented Dec 13, 2020

@NasirKhalid24 will be releasing a new version in a few minuets. stand by

@smashah
Copy link
Member

smashah commented Dec 13, 2020

@NasirKhalid24 @JulioLongo @randracar Can you please try the latest version:

https://github.com/open-wa/wa-automate-nodejs/releases/tag/3.1.9

and report back if this issue has been resolved.

Thanks

@NasirKhalid24
Copy link

@NasirKhalid24 @JulioLongo @randracar Can you please try the latest version:

https://github.com/open-wa/wa-automate-nodejs/releases/tag/3.1.9

and report back if this issue has been resolved.

Thanks

No longer having this issue - back to normal in the latest build. Thanks!

@smashah smashah closed this as completed Dec 14, 2020
@smashah
Copy link
Member

smashah commented Dec 14, 2020

Closing thanks

smashah added a commit that referenced this issue Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants