Jump to content

Recommended Posts

On 8/21/2023 at 11:23 AM, kecoamumet said:

@Magd Almuntaser hi bro. the webhook didnt work. could u fix it? i find the webhook script is in his github

 

https://github.com/Ilmans/webhook-wamp-example/tree/master

 

error from node is like this

2023-08-21T10:20:37: SyntaxError: Unexpected token o in JSON at position 1
2023-08-21T10:20:37:     at JSON.parse (<anonymous>)
2023-08-21T10:20:37:     at IncomingMessage (/www/wwwroot/xxxx/server/controllers/incomingMessage.js:84:54)
2023-08-21T10:20:37:     at processTicksAndRejections (node:internal/process/task_queues:96:5)

edited:

if using original incomingmessage.js the webhook works. but the autoreply not work

i solve mine

5 часов назад, guruskid сказал:

I bought a VPS to run the script, The Laravel application is working fine, but my issue now is that the node port of 3100 can't be connected to the application to scan my Whatsapp

Install aapanel or plesk panel on your vps and make setup normally.

3 hours ago, Magd Almuntaser said:

do you have nodejs in your vps? and what is your version?
do you have dns to cloudflare or the nameserver dircet to vps?

The node version was 18 so I had to reinstall it with version 20, my subdomain is working, but port 3100 can't be communicated with the laravel application, I even use pm2 to start the script on background

On 10/9/2023 at 12:16 AM, guruskid said:

The node version was 18 so I had to reinstall it with version 20, my subdomain is working, but port 3100 can't be communicated with the laravel application, I even use pm2 to start the script on background

if you link your dns to cloudflare you can't use 3100 if not you can run nodejs via SSH and screenshot to see the log

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...