Skip to content

Multiple objects returned on remote repository sync #1864

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

Closed
agjohnson opened this issue Dec 14, 2015 · 0 comments · Fixed by #1850
Closed

Multiple objects returned on remote repository sync #1864

agjohnson opened this issue Dec 14, 2015 · 0 comments · Fixed by #1850
Labels
Bug A bug

Comments

@agjohnson
Copy link
Contributor

readthedocs.oauth.models:MultipleObjectsReturned: get() returned more than one RemoteRepository -- it returned 2!
Traceback ​(most recent call last)​:​​
File "/​home/​docs/​local/​lib/​python​2.​7/​site-​packages/​newrelic-​2.​44.​0.​36/​newrelic/​hooks/​application_​celery.​py",​ line 66,​ in wrapper​ return wrapped​(*args,​ **kwargs)​​
File "/​home/​docs/​local/​lib/​python​2.​7/​site-​packages/​celery/​app/​trace.​py",​ line 438,​ in _​_​protected_​call_​_​ return self.​run​(*args,​ **kwargs)​​
File "/​home/​docs/​checkouts/​readthedocs.​org/​readthedocs/​core/​utils/​tasks/​public.​py",​ line 68,​ in run​ result = self.​run_​public​(*args,​ **kwargs)​​
File "/​home/​docs/​checkouts/​readthedocs.​org/​readthedocs/​oauth/​tasks.​py",​ line 19,​ in run_​public​ import_​bitbucket​(user,​ sync=True)​​
File "/​home/​docs/​checkouts/​readthedocs.​org/​readthedocs/​oauth/​utils.​py",​ line 214,​ in import_​bitbucket​ process_​bitbucket_​json​(user,​ org_​resp)​​
File "/​home/​docs/​checkouts/​readthedocs.​org/​readthedocs/​oauth/​utils.​py",​ line 182,​ in process_​bitbucket_​json​ user=user)​​
File "/​home/​docs/​checkouts/​readthedocs.​org/​readthedocs/​oauth/​managers.​py",​ line 66,​ in create_​from_​bitbucket_​api​ full_​name=api_​json['full_​name'])​​
File "/​home/​docs/​local/​lib/​python​2.​7/​site-​packages/​django/​db/​models/​manager.​py",​ line 127,​ in manager_​method​ return getattr​(self.​get_​queryset​()​,​ name)​(*args,​ **kwargs)​​
File "/​home/​docs/​local/​lib/​python​2.​7/​site-​packages/​django/​db/​models/​query.​py",​ line 405,​ in get_​or_​create​ return self.​get​(**lookup)​,​ False​​
File "/​home/​docs/​local/​lib/​python​2.​7/​site-​packages/​django/​db/​models/​query.​py",​ line 338,​ in get​ ​(self.​model.​_​meta.​object_​name,​ num)​​
Multiple​Objects​Returned:​ get​()​ returned more than one Remote​Repository -​-​ it returned 2!​​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant