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] TypeError: Object of type Spec is not JSON serializable #155
Comments
Thanks for the good bug report. I'll take a look at this later on. |
I'm not able to reproduce this locally. What address are you going to? |
Hello! Goes http://127.0.0.1:8000/ and get {"hello":"world"}. But http://127.0.0.1:8000/swagger/ gets me an error: Here is the app errors when I goes to http://127.0.0.1:8000/swagger/: If I goes http://localhost:8000/swagger/#/default/test it also returns same errors: |
It is because that |
@chenjr0719 Can we add CI for windows? Maybe returning the json of the dict of the Spec class. I could try that but can't really test it... :/ |
Thank you for your response, I created a pull request with trying to fix it, look it please. |
Maybe we can follow the same configuration from sanic to test without |
The #157 has been merged. Close this issue. |
btw, same issue 1-to-1 with 0.6.1 on MacOS 10.14.6, not only on Windows. Also solved problem with downgrade to 0.6.0 version. |
^^ Same issue on MacOs 10.15.1 , works when downgrading to 0.6.0 |
I'm facing this issue on a local Ubuntu 19.04 env. Tried to downgrade to 0.6.0 but still, have any clue?? |
@ray-t1 I think it is related to the new |
After install ujson==1.35 |
I can confirm that this bug is still happening; Downgrading to usjon==1.35 is not a solution, make silent bugs and memory leaks can occur. usjon==3.0.0 make the de-serialization stricter that's why exceptions occur, errors are no longer ignored. |
Description
Trying to reproduce simple example with Getting Started code: https://sanic-openapi.readthedocs.io/en/latest/
When opens swager page see an error: Failed to load API definition.
With previous version sanic-openapi 0.6.0 everithing works fine.
Screenshot
To Reproduce
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: