rohit jaiswal
2018-06-20 09:56:03 UTC
Hi ,
I have a very weird error like this
{"error_structure": null, "version": "1.1", "id": "25", "error": {"message": "AttributeError:
'int' object has no attribute 'encode'", "code": 100, "name": "JSONRPCError"
}}
Same code runs perfectly fine locally but when deployed on apache
httpd-2.4.29-1.x86_64 it throws above error(and not every time, same code
sometime works and sometimes not).
The rpc method connects to db fetch data based on arguments passed and
return the data. Explicitly wrapping up the integer argument with str()
works fine on server.
I have a belief that there is something missing with apache/mod_wsgi
configuration. I am using Djangorestframework 2.2.4.
Does anyone has idea or clue about this behavior ?
I have a very weird error like this
{"error_structure": null, "version": "1.1", "id": "25", "error": {"message": "AttributeError:
'int' object has no attribute 'encode'", "code": 100, "name": "JSONRPCError"
}}
Same code runs perfectly fine locally but when deployed on apache
httpd-2.4.29-1.x86_64 it throws above error(and not every time, same code
sometime works and sometimes not).
The rpc method connects to db fetch data based on arguments passed and
return the data. Explicitly wrapping up the integer argument with str()
works fine on server.
I have a belief that there is something missing with apache/mod_wsgi
configuration. I am using Djangorestframework 2.2.4.
Does anyone has idea or clue about this behavior ?
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.