-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
使用注入的方式封装获取的json数据,结果是空的 #2891
Labels
Comments
我知道了,需要等待。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Describe the bug
我封装了一个类,用来获取json数据,然后将这个类注入到app中。结果在获取的json是None。
I encapsulated a class to retrieve JSON data and then injected this class into the app. The result is that the obtained JSON is None.
Code snippet
Expected Behavior
request.json=None
How do you run Sanic?
Sanic CLI
Operating System
Windows
Sanic Version
23.6.0
Additional context
我在视图函数中打印request.json,结果就是有数据的,
应该是时间问题
I print request.json in the view function, and the result is that there is data,
It should be a matter of time
The text was updated successfully, but these errors were encountered: