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

QrCode not being generated (Status: INITIALIZING -> CLOSE) #2083

Open
vzani opened this issue Nov 18, 2024 · 2 comments
Open

QrCode not being generated (Status: INITIALIZING -> CLOSE) #2083

vzani opened this issue Nov 18, 2024 · 2 comments
Labels
bug Something isn't working needs triage

Comments

@vzani
Copy link

vzani commented Nov 18, 2024

Description

I'm trying to use wppconnect-server on Cloud Run (GCP), but qrcode is never created and status goes from initializing to close.
Version 2.8.1
chromium installed

Dockerfile

FROM node:lts-alpine3.18 as builder

ENV PORT=21465

RUN apk add wget &&
apk add --no-cache git

WORKDIR /home/node
RUN git clone https://github.com/wppconnect-team/wppconnect-server.git /home/node/app

WORKDIR /home/node/app

COPY ./config.ts /home/node/app/src

RUN yarn install
RUN yarn build

FROM node:lts-alpine3.18
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /home/node/app
RUN apk add chromium
COPY --from=builder /home/node/app/ .
EXPOSE 21465
ENTRYPOINT ["node", "dist/server.js"]

Steps to Reproduce

POST https:///api/mySession//generate-token
POST https:///api/mySession/start-session using the token as Bearer Token

Log Output

Start session output:
{
"status": "CLOSED",
"qrcode": null,
"version": "2.8.1"
}

Log details

POST 201 422 77 ms PostmanRuntime/7.42.0 -> /api/mySession/<token?>/generate-token
POST 200 259 60 ms PostmanRuntime/7.42.0 -> /api/mySession/start-session
http: [mySession-browser] Using browser folder './UserDataDir/mySession'
http: [mySession-browser] Initializing browser...
http: [mySession-browser] Checking headless...
http: [mySession-browser] headless option is active, browser hidden
http: [mySession-browser] Initializing...
verbose: [mySession-client] Setting WhatsApp WEB version to 2.2308.101173x
verbose: [mySession-client] Loading WhatsApp WEB
16mverbose: [mySession-client] Page loaded
16mverbose: [mySession-client] Injecting wapi.js
16mverbose: [mySession-client] WhatsApp WEB loaded
http: [mySession-client] Session Unpaired
http: [mySession-client] Waiting page load
16mverbose: [mySession-client] wapi.js injected
http: [mySession-client] Exposing onMessage function
http: [mySession-client] Exposing onAnyMessage function
http: [mySession-client] Checking isLogged
http: [mySession-client] WhatsApp WEB version: 2.2308.1011739021
http: [mySession-client] WA-JS version: 3.14.2
http: [mySession-client] Auto close configured to 60s
http: [mySession-client] Waiting for QRCode Scan...
http: [mySession-client] Auto close remain: 60s
http: [mySession-client] Registered event 2024-11-18T15:16:34.927Z
debug: [mySession-client] Exposing onAck function
debug: [mySession-client] Exposing onActionMessage function
debug: [mySession-client] Exposing onParticipantsChanged function
debug: [mySession-client] Exposing onStateChange function
debug: [mySession-client] Exposing onChatChange function
debug: [mySession-client] Exposing onAnyStateChanged function
debug: [mySession-client] Exposing onLiveLocation function
debug: [mySession-client] Exposing onGroupNotification function
debug: [mySession-client] Exposing onNewMessage function
debug: [mySession-client] Exposing onPollResponse function
debug: [mySession-client] Exposing onReaction function
debug: [mySession-client] Exposing onStatusUpdate function
debug: [mySession-client] Exposing onRemove function
debug: [mySession-client] Exposing onPresenceChanged function
debug: [mySession-client] Exposing onThreadReady function (1 registered)
http: [mySession-client] Current state: PR (CONNECTING)
http: [mySession-client] Auto close remain: 59s

@vzani vzani added bug Something isn't working needs triage labels Nov 18, 2024
@exonos
Copy link

exonos commented Nov 25, 2024

Same here, after last update i have this issue

@ngethe
Copy link

ngethe commented Dec 2, 2024

I am having the same issue as well

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

No branches or pull requests

3 participants