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

Apigility GET doesn't list items #17

Open
weierophinney opened this issue Dec 31, 2019 · 3 comments
Open

Apigility GET doesn't list items #17

weierophinney opened this issue Dec 31, 2019 · 3 comments

Comments

@weierophinney
Copy link
Contributor

I made a simple service using "db-connected" and it was created nicely.

But when I make a simple GET request to list all of my users, the response is 200 and anything appear in response. But when I make a GET informing an ID it works fine. POST and DELETE requests are working fine too.


Originally posted by @alessandrogarcez at zfcampus/zf-apigility-skeleton#110

@weierophinney
Copy link
Contributor Author

I looked for a solution or a explanation why it is happening, but I didn't find anything.
I also opened a question in stack overflow...
http://stackoverflow.com/questions/31949299/apigility-get-doesnt-work


Originally posted by @alessandrogarcez at zfcampus/zf-apigility-skeleton#110 (comment)

@weierophinney
Copy link
Contributor Author

The "select" query is been executed in database because I'm got it in logs of mysql but the code it seems always null.
If I run the query in my client database, I get the result correctly.


Originally posted by @alessandrogarcez at zfcampus/zf-apigility-skeleton#110 (comment)

@weierophinney
Copy link
Contributor Author

It happens because I didn't set the driver option DO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES UTF8" and I had some words with accent. But the problem is that any error is displayed. I think it should throw some exception and not success (200) without any item in body of response.


Originally posted by @alessandrogarcez at zfcampus/zf-apigility-skeleton#110 (comment)

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

1 participant