[GH-ISSUE #41] Error for New Installations #28

Closed
opened 2026-02-27 10:23:53 +03:00 by kerem · 5 comments
Owner

Originally created by @sricsccenter on GitHub (Nov 10, 2024).
Original GitHub issue: https://github.com/mimamch/wa-gateway/issues/41

Only Showing Like this
{
"message": "phone number must start with valid country code"
}

I tried on my localmachine , Server and all parameters sending as POST and Get nothing works

only showing like this

Test URL: http://localhost:5000/send-message?session=mysession&to=919700000158&text=hi
Response:
{
"message": "phone number must start with valid country code"
}

Please Give me any ideas to overcome this problem.

Originally created by @sricsccenter on GitHub (Nov 10, 2024). Original GitHub issue: https://github.com/mimamch/wa-gateway/issues/41 Only Showing Like this { "message": "phone number must start with valid country code" } I tried on my localmachine , Server and all parameters sending as POST and Get nothing works only showing like this Test URL: http://localhost:5000/send-message?session=mysession&to=919700000158&text=hi Response: { "message": "phone number must start with valid country code" } Please Give me any ideas to overcome this problem.
kerem closed this issue 2026-02-27 10:23:53 +03:00
Author
Owner

@mimamch commented on GitHub (Nov 11, 2024):

Seems like "91" is not registered as valid country code on "wa-multi-session" library.

<!-- gh-comment-id:2467004686 --> @mimamch commented on GitHub (Nov 11, 2024): Seems like "91" is not registered as valid country code on "wa-multi-session" library.
Author
Owner

@renandatta commented on GitHub (Nov 21, 2024):

i got same problem, any solution yet ?

<!-- gh-comment-id:2490584135 --> @renandatta commented on GitHub (Nov 21, 2024): i got same problem, any solution yet ?
Author
Owner

@sricsccenter commented on GitHub (Nov 21, 2024):

i got same problem, any solution yet ?

Yes, I found a Solution to Use older Version of Wa-gateway. Exact version that working for me is Below.
Package.json below code and Run Again Run NPM installation.
{
"name": "wa-gateway",
"version": "3.2.1",
"scripts": {
"start": "node index.js",
"dev": "nodemon index.js --ignore ./wa_credentials --ignore ./public",
"production": "node server.js -- --staging"
},
"author": {
"name": "mimamch",
"email": "mimamch28@gmail.com"
},
"license": "ISC",
"dependencies": {
"cookie-parser": "~1.4.4",
"cors": "^2.8.5",
"debug": "~2.6.9",
"dotenv": "^16.0.0",
"ejs": "^3.1.8",
"express": "^4.18.2",
"http-errors": "~1.6.3",
"moment": "^2.29.4",
"morgan": "~1.9.1",
"qrcode": "^1.5.1",
"wa-multi-session": "3.2.1"
},
"repository": {
"type": "git",
"url": "git@github.com:mimamch/wa-gateway.git"
}
}

<!-- gh-comment-id:2490620605 --> @sricsccenter commented on GitHub (Nov 21, 2024): > i got same problem, any solution yet ? Yes, I found a Solution to Use older Version of Wa-gateway. Exact version that working for me is Below. Package.json below code and Run Again Run NPM installation. { "name": "wa-gateway", "version": "3.2.1", "scripts": { "start": "node index.js", "dev": "nodemon index.js --ignore ./wa_credentials --ignore ./public", "production": "node server.js -- --staging" }, "author": { "name": "mimamch", "email": "mimamch28@gmail.com" }, "license": "ISC", "dependencies": { "cookie-parser": "~1.4.4", "cors": "^2.8.5", "debug": "~2.6.9", "dotenv": "^16.0.0", "ejs": "^3.1.8", "express": "^4.18.2", "http-errors": "~1.6.3", "moment": "^2.29.4", "morgan": "~1.9.1", "qrcode": "^1.5.1", "wa-multi-session": "3.2.1" }, "repository": { "type": "git", "url": "git@github.com:mimamch/wa-gateway.git" } }
Author
Owner

@renandatta commented on GitHub (Nov 21, 2024):

Thank you, it worked

<!-- gh-comment-id:2490791615 --> @renandatta commented on GitHub (Nov 21, 2024): Thank you, it worked
Author
Owner

@mimamch commented on GitHub (Dec 10, 2024):

Fixed on latest version: github.com/mimamch/wa-gateway@28082475c0

<!-- gh-comment-id:2530200035 --> @mimamch commented on GitHub (Dec 10, 2024): Fixed on latest version: https://github.com/mimamch/wa-gateway/commit/28082475c07cfbb424931eaa995dd49e67b23136
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wa-gateway-mimamch#28
No description provided.