Skip to content
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

API crash on requests for releases (with userid) #27

Open
leshow opened this issue Apr 22, 2015 · 0 comments
Open

API crash on requests for releases (with userid) #27

leshow opened this issue Apr 22, 2015 · 0 comments

Comments

@leshow
Copy link

leshow commented Apr 22, 2015

I'm trying to request all releases in an account after this id

https://muspy.com/api/1/releases/***useridhere****/?since=1319ef80-c4de-42dc-9973-8e5ea781f327

this is the error the api gives me:

Piston/0.2.3rc1 (Django 1.3.7) crash report: Traceback (most recent call last): File "/usr/home/alex/muspy/api/handlers.py", line 180, in read release = ReleaseGroup.objects.get(mbid=since) File "/usr/home/alex/muspy/env/lib/python2.7/site-packages/django/db/models/manager.py", line 132, in get return self.get_query_set().get(_args, *_kwargs) File "/usr/home/alex/muspy/env/lib/python2.7/site-packages/django/db/models/query.py", line 351, in get % (self.model._meta.object_name, num, kwargs)) MultipleObjectsReturned: get() returned more than one ReleaseGroup -- it returned 2! Lookup parameters were {'mbid': u'1319ef80-c4de-42dc-9973-8e5ea781f327'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant