You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered: