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

[ERR_SOCKET_CONNECTION_TIMEOUT]: Socket connection timeout #2

Open
Jhefer08 opened this issue Jan 24, 2024 · 0 comments
Open

[ERR_SOCKET_CONNECTION_TIMEOUT]: Socket connection timeout #2

Jhefer08 opened this issue Jan 24, 2024 · 0 comments

Comments

@Jhefer08
Copy link

Hello. Can you please help me with the error that comes out when I try to send a message?

this is my code

var request = require('request');
var options = {
'method': 'POST',
'url': 'https://api.ultramsg.com/i............/messages/chat',
'headers': {
'Content-Type': 'application/x-www-form-urlencoded'
},
form: {
'token': '..........',
'to': '966385097',
'body': 'WhatsApp API on UltraMsg.com works good'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant