Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: API - Internal server error 500 #13

Closed
danardf opened this issue May 17, 2024 · 7 comments
Closed

[bug]: API - Internal server error 500 #13

danardf opened this issue May 17, 2024 · 7 comments
Assignees
Labels

Comments

@danardf
Copy link

danardf commented May 17, 2024

FreePBX Version

FreePBX 17

Issue Description

Unable to get token.
And a simple RestAPI request returns and error 500.

No way to use APIs on 17.

Operating Environment

FreePBX 17 version updated.

Relevant log output

{
	"error": {
		"type": "TypeError",
		"message": "Slim\\App::__construct(): Argument #1 ($responseFactory) must be of type Psr\\Http\\Message\\ResponseFactoryInterface, array given, called in \/var\/www\/html\/admin\/modules\/api\/Rest\/Api.php on line 49",
		"code": 0,
		"file": "\/var\/www\/html\/admin\/libraries\/Composer\/vendor\/slim\/slim\/Slim\/App.php",
		"line": 47
	}
}
@prasanthcode4 prasanthcode4 self-assigned this May 17, 2024
@dolesec
Copy link

dolesec commented May 17, 2024

I see the same

@danardf
Copy link
Author

danardf commented May 17, 2024

I see the same

@kguptasangoma is aware now.

@kguptasangoma
Copy link
Member

kguptasangoma commented May 17, 2024

Yes due to latest Slim lib updates, GQL API got the updated compatible code , same needs to be done for the Rest API.

will try to fix this asap.

Thanks

@danardf
Copy link
Author

danardf commented May 17, 2024

Yes due to latest Slim lib updates, GQL API got the updated compatible code , same needs to be done for the Rest API.

will try to fix this asap.

Thanks

Nice.
but it's not only with ResetAPI.
There is no way to get the token as well.

@kguptasangoma kguptasangoma removed the triage Triage label May 22, 2024
@kguptasangoma
Copy link
Member

Please update all your modules to the edge and give a try. Thanks

@danardf
Copy link
Author

danardf commented May 22, 2024

@kguptasangoma Ok I will test it tomorrow morning in my timezone and I will update you soon.
Thanks for your time Kapil.

@danardf
Copy link
Author

danardf commented May 23, 2024

@kguptasangoma Hey Kapil
It doesn't work.
Please check your email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants