Error:No entry or class found for 'api'

Hello
I have some trouble with my FrrePBX and i don’t know why.
Everything was working, but one moment i saw error
this api url is “/admin/api/api/authorize” Can you help me,please?

{“error”:{“type”:“Error”,“message”:“Class "Slim\Http\Stream" not found”,“code”:0,“file”:“/var/www/html/admin/modules/api/Oauth/Oauth.php”,“line”:221}}

What’s the FreePBX version?

It is FreePBX 17.0.19.23

I don’t know what problem,Version 17.0.19.23

Well. I don’t know if the URL for Auth worked before.
I know there was an issue with the local account. But anyway.I never saw the Auth worked as expected.
Maybe it’s fixed right now.

Using this link will result in an error, while other API links will work normally

looks like bug, raised [bug]: API error "Class \"Slim\\Http\\Stream\" not found" · Issue #631 · FreePBX/issue-tracker · GitHub to keep track of this issue.

1 Like

Hello, I need your help. I have reinstalled FreePBX 17 and the logs show this error.

However, the backend can be opened normally, but the API interface shows this error.
231

May I ask if this installation was successful? What’s the problem again?

Hi @jame

Please try to run below commands to finish the installation -

fwconsole ma refreshsignatures
fwconsole ma updateall
fwconsole restart

Regards
Kapil