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

ProgrammingError: more than one row returned by a subquery used as an expression #1821

Open
sentry-io bot opened this issue Aug 16, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working product:mitx-online

Comments

@sentry-io
Copy link

sentry-io bot commented Aug 16, 2023

Sentry Issue: MITXONLINE-31G

CardinalityViolation: more than one row returned by a subquery used as an expression

  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "newrelic/hooks/database_psycopg2.py", line 64, in execute
    return super(CursorWrapper, self).execute(sql, parameters, *args,
  File "newrelic/hooks/database_dbapi2.py", line 37, in execute
    return self.__wrapped__.execute(sql, parameters,

ProgrammingError: more than one row returned by a subquery used as an expression

(21 additional frame(s) were not displayed)
...
  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "django/db/utils.py", line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "newrelic/hooks/database_psycopg2.py", line 64, in execute
    return super(CursorWrapper, self).execute(sql, parameters, *args,
  File "newrelic/hooks/database_dbapi2.py", line 37, in execute
    return self.__wrapped__.execute(sql, parameters,

Going to https://rc.mitxonline.mit.edu/api/products/ results in a 500 - not sure this endpoint gets used by anything (it dumps everything, we don't display lists of products anywhere) but it is failing. The endpoint on production works OK. Pulling individual products doesn't work (with a 404) on either RC or production.

@jkachel jkachel self-assigned this Aug 16, 2023
@jkachel jkachel added bug Something isn't working product:mitx-online labels Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product:mitx-online
Projects
None yet
Development

No branches or pull requests

1 participant