-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
AttributeError: 'NoneType' object has no attribute 'split' in masonite response.json() #413
Comments
I'll try a different environment to see if I will still encounter the issue. |
According to https://docs.masoniteproject.com/advanced/responses#json-responses
is the same as doing
But about setting the response status code, it's documented you can do
But I am not sure that it's working when returning a dict. |
I was not able to reproduce the issue either... Is it working in you web browser ? in Postman ? |
The request is being done via Ajax request. I'm suspecting now it's my database connection. I'm just currently finishing the development in my local then I'll test it in the test environment. |
I found out now the problem and it's not Masonite. I tried removing threads in my gunicorn and I don't receive the errors anymore. |
Hi,
Related to this issue.
MasoniteFramework/orm#346
My scenario in this is in my controller im using response.json and the in the frontend Im doing long pooiling every 5000 seconds.
When I use this kind of response.
Im getting the error, but when I changed it to
Im not getting anymore the error.
The text was updated successfully, but these errors were encountered: