Comments (4)
Hi! Just publised new 2024.5.5
version, could you check this one?
If it doesn't help - please run the session with debug enabled and send here logs 🙏
https://waha.devlike.pro/docs/how-to/sessions/#enable-debug
{
"name": "default",
"config": {
"debug": true
}
}
from whatsapp-http-api.
Try to setup proxy for phone numbers (especially for Indian 🇮🇳 ):
https://waha.devlike.pro/docs/how-to/proxy/
Overview
If you're experiencing issues scanning QR codes in WhatsApp, especially with Indian 🇮🇳 phone numbers,
using a proxy located close to the phone number's location may help resolve the problem.
It affects both WEBJS and NOWEB engines.
Symptoms
- You start a new session in WhatsApp.
- Scan the QR code.
- Experience a long loading time.
- Face login failures or instant logout.
- Encounter a new QR code or enter a FAILED state immediately.
Configuration
There are two ways to set up proxies:
- Global Setting (for all sessions per container)
- Per Session Configuration (you can define a proxy for each session when you start it)
Global Proxy Configuration
To use a proxy, you can set the following environment variables:
WHATSAPP_PROXY_SERVER=localhost:3128
: Set the proxy server in the formathost:port
, without HTTP or HTTPS.WHATSAPP_PROXY_SERVER_USERNAME=username
andWHATSAPP_PROXY_SERVER_PASSWORD=password
: Configure credentials for the proxy.WHATSAPP_PROXY_SERVER_LIST=host1.example.com:3138,host2.example.com:3138
: Specify a comma-separated list of addresses to use, utilizing a round-robin algorithm for server selection.WHATSAPP_PROXY_SERVER_INDEX_PREFIX=proxy-
: Define a session name prefix to choose the appropriate proxy from the list.
Session Proxy Configuration
You can configure proxy for a session by setting config.proxy
fields when you POST /api/sessions/start
:
server
- proxy server address, withouthttp://
orhttps://
prefixesusername
andpassword
- set this if the proxy requires authentication
No authentication
{
"name": "default",
"config": {
"proxy": {
"server": "localhost:3128"
}
}
}
Proxy with authentication
{
"name": "default",
"config": {
"proxy": {
"server": "localhost:3128",
"username": "username",
"password": "P@ssw0rd"
}
}
}
The configuration is saved and will be applied if the docker container restarts,
and you set WHATSAPP_RESTART_ALL_SESSIONS
environment variables.
Read more about it in Autostart section.
Recommended Proxies
Proxy6
We recommend using Proxy6
where you can get a DEDICATED proxy (only you'll use it) for $1.77 per month.
Apply the promocode get a 5% discount on your purchase.
9W9oVxx3UX
Geonode
Another option is Geonode.
from whatsapp-http-api.
Try to setup proxy for phone numbers (especially for Indian 🇮🇳 ): https://waha.devlike.pro/docs/how-to/proxy/
Overview
If you're experiencing issues scanning QR codes in WhatsApp, especially with Indian 🇮🇳 phone numbers, using a proxy located close to the phone number's location may help resolve the problem.
It affects both WEBJS and NOWEB engines.
Symptoms
- You start a new session in WhatsApp.
- Scan the QR code.
- Experience a long loading time.
- Face login failures or instant logout.
- Encounter a new QR code or enter a FAILED state immediately.
Configuration
There are two ways to set up proxies:
- Global Setting (for all sessions per container)
- Per Session Configuration (you can define a proxy for each session when you start it)
Global Proxy Configuration
To use a proxy, you can set the following environment variables:
WHATSAPP_PROXY_SERVER=localhost:3128
: Set the proxy server in the formathost:port
, without HTTP or HTTPS.WHATSAPP_PROXY_SERVER_USERNAME=username
andWHATSAPP_PROXY_SERVER_PASSWORD=password
: Configure credentials for the proxy.WHATSAPP_PROXY_SERVER_LIST=host1.example.com:3138,host2.example.com:3138
: Specify a comma-separated list of addresses to use, utilizing a round-robin algorithm for server selection.WHATSAPP_PROXY_SERVER_INDEX_PREFIX=proxy-
: Define a session name prefix to choose the appropriate proxy from the list.Session Proxy Configuration
You can configure proxy for a session by setting
config.proxy
fields when youPOST /api/sessions/start
:
server
- proxy server address, withouthttp://
orhttps://
prefixesusername
andpassword
- set this if the proxy requires authenticationNo authentication
{ "name": "default", "config": { "proxy": { "server": "localhost:3128" } } }Proxy with authentication
{ "name": "default", "config": { "proxy": { "server": "localhost:3128", "username": "username", "password": "P@ssw0rd" } } }The configuration is saved and will be applied if the docker container restarts, and you set
WHATSAPP_RESTART_ALL_SESSIONS
environment variables. Read more about it in Autostart section.Recommended Proxies
Proxy6
We recommend using Proxy6 where you can get a DEDICATED proxy (only you'll use it) for $1.77 per month.
Apply the promocode get a 5% discount on your purchase.
9W9oVxx3UX
Geonode
Another option is Geonode.
my vps is in India and still im not able to login
from whatsapp-http-api.
@rohankm could you try to run it on your local PC/laptop? Some VPS is blocked as well.
If it works, the only way to fix that - setup a your own proxy somewhere in real location (using 4G\5G usually helps as well)
from whatsapp-http-api.
Related Issues (20)
- [BUG][WEBJS] - GET /sessions list takes long if a WebJS is "starting" or scan qr HOT 1
- [Feature Request] GET /api/contacts/profile-picture returns "not-authorized" error when get profile from blocked account HOT 2
- [BUG][NOWEB] - Send status to 1K and more contacts HOT 1
- [BUG][NOWEB] - Sync "edited" messages to Store from history
- Webhook configuration question HOT 1
- [BUG][NOWEB] - send status to 10K contacts and more HOT 1
- [FEATURE][NOWEB] - delete status HOT 1
- [Feature Request] - per session key
- [BUG][NOWEB] - Getting Status 403 while adding a participant to a group HOT 5
- [BUG][NOWEB] - Error 500 when sending status to many contacts HOT 5
- Add Websokets for Sending And Receiving Messages and all events
- [Task] - Check session.name length for MongoDB (or any?) storage
- [Feature Request][NOWEB] - Support Send List
- [BUG][WEBJS] - Session stuck in INITIALIZING state HOT 6
- [FIXED][BUG][WEBJS] - WEB whatsapp-http-api-plus CAN NOT LOAD QRCODE after update latest version HOT 6
- [BUG][WEBJS] - HOT 16
- [BUG][WEBJS] - sendVoice Not Working
- [BUG] - OpenAPI JSON File contains wrong typing HOT 1
- [BUG][NOWEB] - Inconsistent API Error json
- [BUG][NOWEB] - Webhook group.join, group.leave empty payload.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-http-api.