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

Select multiple allow methods for rpc shows wrong error #43

Open
michalbundyra opened this issue Jan 10, 2020 · 1 comment
Open

Select multiple allow methods for rpc shows wrong error #43

michalbundyra opened this issue Jan 10, 2020 · 1 comment

Comments

@michalbundyra
Copy link
Member

When you edit an RPC service the UI allows me to select multiple allowed methods. But it seems to be imposible to process this. The backend will show the error:
"controller_class: The Controller Class must be a valid, fully qualified, PHP class name" which is a strange error since I didn't change the controller class at all


Originally posted by @jaapio at zfcampus/zf-apigility-admin#234

@FXLima
Copy link

FXLima commented Mar 21, 2022

Create a new service RPC in: Api-Tools Laminas

XHRPOSThttp://localhost/api-tools/api/module/myapp/rpc
[HTTP/1.1 422 Unprocessable Entity 10175ms]

validation_messages Object { controller_class: […], accept_whitelist: […], content_type_whitelist: […], … }
controller_class [ "The Controller Class must be a valid, fully qualified, PHP class name" ]
0 "The Controller Class must be a valid, fully qualified, PHP class name"
accept_whitelist [ "The Accept Whitelist must be an array of valid media type expressions" ]
0 "The Accept Whitelist must be an array of valid media type expressions"
content_type_whitelist [ "The Content-Type Whitelist must be an array of valid media type expressions" ]
0 "The Content-Type Whitelist must be an array of valid media type expressions"
http_methods [ "The HTTP Methods must be an array of valid HTTP method names" ]
0 "The HTTP Methods must be an array of valid HTTP method names"
type "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
title "Unprocessable Entity"
status 422
detail "Failed Validation"

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

No branches or pull requests

2 participants