#284 django-piston 0.2.3 Issue


I was trying to use django-piston 0.2.3 for my Django application to create an API.
However, I was facing one exception as follows,

2013-07-31T18:58:34.752151+00:00 app[web.1]: Internal Server Error: /api/piston/article/
2013-07-31T18:58:34.752151+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
2013-07-31T18:58:34.752151+00:00 app[web.1]: Traceback (most recent call last):
2013-07-31T18:58:34.752151+00:00 app[web.1]: response = callback(request, callback_args, callback_kwargs)
2013-07-31T18:58:34.752151+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/django/views/decorators/vary.py", line 19, in inner_func
2013-07-31T18:58:34.752151+00:00 app[web.1]: response = func(*args,
2013-07-31T18:58:34.752151+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/piston/resource.py", line 201, in call
2013-07-31T18:58:34.752151+00:00 app[web.1]: else: stream = srl.render(request)
2013-07-31T18:58:34.752359+00:00 app[web.1]:
2013-07-31T18:58:34.752359+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/simplejson/init.py", line 334, in dumps
2013-07-31T18:58:34.752151+00:00 app[web.1]: seria = simplejson.dumps(self.construct(), cls=DateTimeAwareJSONEncoder, ensure_ascii=False, indent=4)
2013-07-31T18:58:34.752151+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/piston/emitters.py", line 391, in render
2013-07-31T18:58:34.752359+00:00 app[web.1]: TypeError: init() got an unexpected keyword argument 'bigint_as_string'
2013-07-31T18:58:34.854322+00:00 heroku[router]: at=info method=GET path=/api/piston/article/ host=immense-earth-5184.herokuapp.com fwd="" dyno=web.1 connect=1ms service=159ms status=500 bytes=67687
2013-07-31T18:58:35.178712+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=immense-earth-5184.herokuapp.com fwd="" dyno=web.1 connect=1ms service=8ms status=404 bytes=2452

I was facing same issue when running my app on localhost and I found that there is some issue related to simplejson for Django 1.4 version and on wards.
However, I found one patch from somewhere online

This patch helped me to solve the problem on localhost by editing emitters.py in 'usr' directory.
However, the problem now I am facing is I cannot make changes on piston framework which is installed on my Heroku server.

So, I wanted to ask whether this patch will be provided in next version of Piston framework or this problem is not faced by anyone so the patch will never get merged.




  • Richard Jones

    Richard Jones - 2013-07-31

    This is the support tracker for PyPI. Please contact the Piston project for support for their package.

  • Richard Jones

    Richard Jones - 2013-07-31
    • status: open --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks