You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't tested this with other models, but the Card model at least is throwing a 500 when using orderBy.
This is my query: Card.where(name=card_name).where(orderBy='name').all()
And this is the response I'm getting:
Traceback (most recent call last):
File "/home/user/.local/lib/python3.8/site-packages/mtgsdk/restclient.py", line 35, in get
response = json.loads(urlopen(req).read().decode("utf-8"))
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error
The text was updated successfully, but these errors were encountered:
codeunifier
changed the title
Card.orderBy is throwing a 500 error
Card orderBy is throwing a 500 error
May 2, 2022
I haven't tested this with other models, but the Card model at least is throwing a 500 when using
orderBy
.This is my query:
Card.where(name=card_name).where(orderBy='name').all()
And this is the response I'm getting:
The text was updated successfully, but these errors were encountered: