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
Pytest returns JSONDecodeError #63
Comments
I would say you are hitting the same wall as others with the (not yet implemented) orm_mode. You can check https://github.com/tiangolo/full-stack-fastapi-postgresql/pull/43/files and let us know if that does not resolve your issue 🤞 |
Yes - this was exactly the issue and it resolves to a Successful Response now... Thanks. My homework now is to understand why. Thanks. |
Well @Llibyddap , the explanation is a long story that involves a PR from tiangolo in pydantic itself... but the point is that this repo has not been properly updated (yet) to support the new version of fastapi that's for @tiangolo to fix 😁 Happy digging 👨🏭 |
Thanks for the help here @ebreton ! 👏 🙇 Thanks for reporting back and closing the issue @Llibyddap 👍 |
Still working through exactly how everything fits together (great project that does everything) - but finally got around to testing the code after noticing that the Swagger UI would post data into the DB (verified in pgAdmin), but would throw a response error.
To start fresh - pulled a new version of everything and ran the test from a clean install - same error...
You can see that the tests all fail on same JSON decoding. I've tried each of the failed tests and noted the same behavior - the POSTs will update the db - but returning information from the bd has the decoder error...
Here is an example of a successful POST to the database of an item but the response fails.
There are no changes to the code... As I'm slightly better than noob status, it's possible that I've missed something in the install workflow - but, if so, can't find it. Any help or a point in the right direction would be greatly appreciated.
The text was updated successfully, but these errors were encountered: