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

ValueError at /api/manage-token/sw.js invalid literal for int() with base 10: 'sw' #342

Closed
jw35 opened this issue Nov 7, 2019 · 3 comments
Labels

Comments

@jw35
Copy link
Collaborator

jw35 commented Nov 7, 2019

Internal Server Error: /api/manage-token/sw.js

ValueError at /api/manage-token/sw.js
invalid literal for int() with base 10: 'sw'

Request Method: GET
Request URL: https://smartcambridge.org/api/manage-token/sw.js

Traceback:  

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
 41.             response = get_response(request)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _legacy_get_response
 249.             response = self._get_response(request)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
 187.                 response = self.process_exception_by_middleware(e, request)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
 185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
 23.                 return view_func(request, *args, **kwargs)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
 23.                 return view_func(request, *args, **kwargs)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
 23.                 return view_func(request, *args, **kwargs)

File "/home/tfc_prod/tfc_web/tfc_web/authmultitoken/views.py" in manage_token
 108.             id=token_id)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/manager.py" in manager_method
 85.                 return getattr(self.get_queryset(), name)(*args, **kwargs)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/query.py" in get
 371.         clone = self.filter(*args, **kwargs)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/query.py" in filter
 787.         return self._filter_or_exclude(False, *args, **kwargs)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/query.py" in _filter_or_exclude
 805.             clone.query.add_q(Q(*args, **kwargs))

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/sql/query.py" in add_q
 1250.         clause, _ = self._add_q(q_object, self.used_aliases)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/sql/query.py" in _add_q
 1276.                     allow_joins=allow_joins, split_subq=split_subq,

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/sql/query.py" in build_filter
 1210.             condition = self.build_lookup(lookups, col, value)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/sql/query.py" in build_lookup
 1104.                 return final_lookup(lhs, rhs)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/lookups.py" in __init__
 24.         self.rhs = self.get_prep_lookup()

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/lookups.py" in get_prep_lookup
 74.             return self.lhs.output_field.get_prep_value(self.rhs)

File "/home/tfc_prod/tfc_web_venv/lib/python3.5/site-packages/django/db/models/fields/__init__.py" in get_prep_value
 966.         return int(value)

Exception Type: ValueError at /api/manage-token/sw.js
Exception Value: invalid literal for int() with base 10: 'sw'
Request information:
USER: tom_bardsley

GET: No GET data

POST: No POST data

FILES: No FILES data
@jw35
Copy link
Collaborator Author

jw35 commented Nov 7, 2019

This is probably a side effect of #337

@jw35
Copy link
Collaborator Author

jw35 commented Nov 7, 2019

It doesn't seem to be service affecting.

@jw35 jw35 added the bug label Nov 7, 2019
@jw35
Copy link
Collaborator Author

jw35 commented Dec 2, 2019

Fixed by #344

@jw35 jw35 closed this as completed Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant