# ARI returning { "message": "Resource not found" } for ari/asterisk/info

**URL:** <https://community.asterisk.org/t/ari-returning-message-resource-not-found-for-ari-asterisk-info/104091>\
**Category:** Asterisk APIs\
**Created:** [August 26, 2024, 8:54pm UTC](https://community.asterisk.org/t/ari-returning-message-resource-not-found-for-ari-asterisk-info/104091 "2024-08-26T20:54:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeorgeE](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@GeorgeE](https://community.asterisk.org/u/GeorgeE)\
**Post date:** [August 26, 2024, 8:54pm UTC](https://community.asterisk.org/t/ari-returning-message-resource-not-found-for-ari-asterisk-info/104091/1 "2024-08-26T20:54:59Z")

</div>

I have two Asterisk systems, one v18 and one v20. Both are configured for ARI, but the v20 returns a

{  
“message”: “Resource not found”  
}

response for all API requests. The web socket (via wscat) always gets a 404. The only API endpoint that responds properly is /httpstatus.

The v18 system works fine and responds properly to API requests.

I am looking for a hint at what to look for. In both cases, we built Asterisk from source code. I looked at the configuration (compared to the working v18 system), searched the topics on this site, Googled, etc. and I can’t find anyone else that has posted about this type of issue. I would appreciate any hints on what to look at.

Here are the details on the v20 system:

The OS is:

[root@rhel8 etc]# cat /etc/system-release  
Red Hat Enterprise Linux release 8.10 (Ootpa)

Asterisk is:

rhel8\*CLI\> core show version  
Asterisk 20.9.2 built by root @ [XXXXXXXXX.com](http://XXXXXXXXX.com) on a x86\_64 running Linux on 2024-08-20 00:52:08 UTC

Modules are loaded:

rhel8_CLI\> module show like ari  
Module Description Use Count Status Support Level  
res\_ari.so Asterisk RESTful Interface 0 Running core  
1 modules loaded  
rhel8_CLI\> module show like stasis  
Module Description Use Count Status Support Level  
res\_stasis.so Stasis application support 1 Running core  
1 modules loaded

* * *

http is loaded:

rhel8\*CLI\> http show status  
HTTP Server Status:  
Prefix:  
Server: Asterisk  
Server Enabled and Bound to 0.0.0.0:8088

Enabled URI’s:  
`/httpstatus => Asterisk HTTP General Status <= returns the expected page showing bind address of 0.0.0.0 port 8088 /ari/... => Asterisk RESTful API <= /ari/asterisk/info returns { "message": "Resource not found" } /ws => Asterisk HTTP WebSocket <= wscat gets a 404`

Enabled Redirects:  
None.

* * *

ARI thinks it is running:

rhel8\*CLI\> ari show status  
ARI Status:  
Enabled: Yes  
Output format: pretty  
Auth realm: Asterisk REST Interface  
Allowed Origins: \*  
User count: 1

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [August 26, 2024, 8:56pm UTC](https://community.asterisk.org/t/ari-returning-message-resource-not-found-for-ari-asterisk-info/104091/2 "2024-08-26T20:56:26Z")

</div>

The res\_ari\_asterisk module has to be loaded to have that route available.

---

<div class="post-metadata">

**Author:** ![GeorgeE](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@GeorgeE](https://community.asterisk.org/u/GeorgeE)\
**Post date:** [August 26, 2024, 10:36pm UTC](https://community.asterisk.org/t/ari-returning-message-resource-not-found-for-ari-asterisk-info/104091/3 "2024-08-26T22:36:02Z")

</div>

I always hate it when I figure it out shortly after posting for help. I found all the missing dependencies after reviewing the “make menuselect” dependencies listed at the bottom of the page. It is interesting that for some of the ari modules, I get an unknown dependencies error and others actually list the needed dependencies when I tried the “module load” them.

Thanks for your patience with me.

George

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 25, 2024, 10:36pm UTC](https://community.asterisk.org/t/ari-returning-message-resource-not-found-for-ari-asterisk-info/104091/4 "2024-09-25T22:36:44Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
