mirror of
https://github.com/mimamch/wa-gateway.git
synced 2026-04-25 17:05:49 +03:00
[GH-ISSUE #41] Error for New Installations #28
Labels
No labels
bug
documentation
invalid
pull-request
question
request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wa-gateway-mimamch#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@mimamch commented on GitHub (Nov 11, 2024):
Seems like "91" is not registered as valid country code on "wa-multi-session" library.
@renandatta commented on GitHub (Nov 21, 2024):
i got same problem, any solution yet ?
@sricsccenter commented on GitHub (Nov 21, 2024):
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"
}
}
@renandatta commented on GitHub (Nov 21, 2024):
Thank you, it worked
@mimamch commented on GitHub (Dec 10, 2024):
Fixed on latest version:
github.com/mimamch/wa-gateway@28082475c0