chrishubert / whatsapp-api

This project is a REST API wrapper for the whatsapp-web.js library, providing an easy-to-use interface to interact with the WhatsApp Web platform.
https://www.christophehubert.com
Other
849 stars 388 forks source link

Unable to run the server #190

Open arktnld opened 7 months ago

arktnld commented 7 months ago

Hello everyone,

I was having trouble running the server, but I managed to find a solution. Here's a step-by-step guide to help others who might be facing the same issue, this was tested on Ubuntu 22.

Change whatsapp-web.js Version in package.json:

Install Node.js 20.x LTS:

Install Forever and Start the Server:

GuilhermeScherner commented 7 months ago

Hi,

So when I try forever start server.js, I receive this error:


(Use `node --trace-warnings ...` to show where the warning was created)
(node:1163) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(node:1163) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency```
sunilsankar commented 7 months ago

The error is gone but session is not getting connected

arktnld commented 7 months ago

Hi,

So when I try forever start server.js, I receive this error:

(Use `node --trace-warnings ...` to show where the warning was created)
(node:1163) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(node:1163) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency```

This is just a warning. Type forever list to list yours running servers, forever logs 0 to show the logs of the first server.

chrishubert commented 6 months ago

Please use the latest docker version 🙏