Attempt to original channel via ARI results in out of memory

I’m using the following command to create and originate a channel:

curl -X POST "http://192.168.1.100:8088/ari/channels" -u myun:mypw -d "endpoint=PJSIP/123" -d "app=mystasisapp"

and although I have ARI debug on, the command is NOT shown as received (in the Asterisk CLI with ARI debug on). But it does show sending this response:

<--- Sending ARI response to 192.168.1.2:39924 --->
500 Server Error
Content-type: application/json
{"message":"Out of memory"}

I restarted Asterisk immediately before sending this command…so I don’t think it’s actually out of memory. If I send the “asterisk/info” command using CURL with the same syntax as above (but with GET not POST) it works fine, and the received and sent messages are shown in the CLI debug output. So there must be something else wrong with my command/syntax. I can confirm that endpoint PJSIP/123 exists.

Can anyone see what’s wrong with my syntax?

I would suggest actually looking at the Asterisk console and see if anything comes up. I’m unable to reproduce it myself. I also don’t recall you ever stating the version in use.

I took a wild guess and noticed this interesting process:

3667 ? Ssl 0:00 PM2 v4.5.0: God Daemon (/home/asterisk/.pm2)

So I killed that process and suddenly my ARI command works!!! I will have to study what this process is and why it’s interfering with Asterisk/ARI ! I’m running ALmaLinux 8.8.

Since this is clearly not an ARI usage/syntax issue I’ll close this thread an open a more focused one.