Soketi config error fix

Aug 29
text posts

I have been playing around with Soketi as a self-hosted Pusher alternative and, while the software is great, boy is its documentation and error messaging lacking. If you're trying to run it and get the error

There was an error while parsing the JSON in your config file. It has not been loaded. 

This is, as near as I can tell, the minimum required set of keys to get an app working:

{
    "debug": true,
    "port": 6001,
    "appManager.array.apps": [
        {
            "id": "id",
            "key": "key",
            "secret": "secret",
            "webhooks" : []
        }
    ]
}

Without the empty webhooks array, it kept failing on me.

I still have not gotten a pm2 instance to accept a config file 😭️. I gave up on the Docker instance because it doesn't allow more than one app per instance and I want something more flexible.

I'm sure it's great and super easy if you're just spinning up a single app, though!

Permalink

Open source is wonderful but we'd all appreciate the bare minimum in telling other people how to get it to run as well.