Open scropion86 opened 1 year ago
watching :)
i am spinning up open-wa with npx on a python subprocess, i can create a new directory, open the process from there, and get a fresh wa api ready for qr scanning... I wish to know how to export it and also get the changing qr if it wasn't scanned it time. I assume this is what the webhook option is for.. Some guidance or material would help :) thanks alot
Yes this might be a smart workaround , environment variable or CLI flag in case of EasyApi
On Mon, Jan 16, 2023 at 7:43 PM Mohammed Shah @.***> wrote:
Hmmm, it's assumed that you want to block public access to the qr code if you set the api key.
Maybe there can be an environment variable to bypass any authentication specifically on the popup?
— Reply to this email directly, view it on GitHub https://github.com/open-wa/wa-automate-nodejs/issues/3016#issuecomment-1384309222, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKPXPW2T5ZSX2RQMTWSEPTWSV3CNANCNFSM6AAAAAAT42IUMU . You are receiving this because you authored the thread.Message ID: @.***>
watching :)
- can anyone share a link to docs where this is officially covered ?
i am spinning up open-wa with npx on a python subprocess, i can create a new directory, open the process from there, and get a fresh wa api ready for qr scanning... I wish to know how to export it and also get the changing qr if it wasn't scanned it time. I assume this is what the webhook option is for.. Some guidance or material would help :) thanks alot
if you mean documentation for EASY API CLI here is the Link https://openwa.dev/docs/configuration/command-line-options
something is missing here, how are you getting {"error":"unauthorised"}
if:
-k
in your command (are you using cli.config.json
?)Can you show me a screen recording (including terminal) of you experiencing this problem please + -v
logs
Also @scropion86 @fire17 you can constantly refresh that --ezqr
image as it is not cached and always returns the latest qr code (albeit with a delay of upload).
Thanks @scropion86 for the cli docs link, i've learned of a few more things that are possible even though it didnt mention the qr there, since im using the api with python, I usually go by https://openwa.dev/docs/api/classes/api_Client.Client but again no mention there of onQR event
@smashah could you please advise ? for me the best case scenario is to have an event from the client (like any other) where it fires every time a qr is prompted This way I can update any open socket to my site with an updated qr for me to scan remotely Please let me know if this is possible or how this could be done otherwise from my env?.. Thanks a lot 🙏 😇
something is missing here, how are you getting
{"error":"unauthorised"}
if:
- you don't have
-k
in your command (are you usingcli.config.json
?)- that authentication layer is only available once the api is up and the session is running?
Can you show me a screen recording (including terminal) of you experiencing this problem please +
-v
logs
sorry for confusing you , the error {"error":"unauthorised"}
was a result from other session which -k was used.
and i am not using cli.config.json
@fire17 have you tried the python socket client?
https://github.com/open-wa/wa-automate-socket-client-python
@scropion86 ok so there should be no limitations on the popup URL. What is the remaining problem then?
--ezqr URL is not sent to the webhook if --ev 'https://webhook.site/7dce32e9…..
todo:
ef
@github-actions run
@fire17 have you tried the python socket client?
Yes @smashah this is exactly what I am using I figured my issue should go there perhaps... Getting QR to client before connection #7 (hope you watch the issues there as you do here lol 😋 )
Are you using the latest version of the library?
What type of session are you experiencing this issue on?
Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag
What type of host account are you experiencing this issue on?
Personal account (normal)
Mode
EASY API/CLI
Current Behavior
When enabling
--ezqr --popup true --ev 'https://webhook.site/7dce32e9…..
the webhock received everything at launch except the QR URL such this message
“Scan the qr code at https://qr.openwa.cloud/1681d”
and since I enabled popup flag I was expecting to be able to see the QR from
“server:port/qr"
but because I am using API key o got “{"error":"unauthorised"}”Expected Behavior
“server:port/qr"
without API KeySteps To Reproduce
npx @open-wa/wa-automate -p 1234 --ezqr --popup true --ev 'https://webhook.site/7dce32e9-561d-4.........'
create() code OR full CLI command + CONFIG
DEBUG INFO
Environment
Screenshots/Logs
No response
Anything else?
No response