[GH-ISSUE #401] ValueError in basic auth #299

Closed
opened 2026-02-26 10:30:40 +03:00 by kerem · 0 comments
Owner

Originally created by @ThomasWaldmann on GitHub (Jan 17, 2019).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/401

Originally assigned to: @ThomasWaldmann on GitHub.

Internal Server Error: /nic/update

ValueError at /nic/update
not enough values to unpack (expected 2, got 1)

Request Method: GET
Request URL: https://ipv4.nsupdate.info/nic/update

Traceback:  

File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

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

File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)

File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/views/generic/base.py" in dispatch
  88.         return handler(request, *args, **kwargs)

File "/srv/nsupdate.info/repo/nsupdate/utils/log.py" in caller
  124.             return func(*args, **kwargs)

File "/srv/nsupdate.info/repo/nsupdate/api/views.py" in get
  207.         username, password = basic_authenticate(auth)

File "/srv/nsupdate.info/repo/nsupdate/api/views.py" in basic_authenticate
  122.     authmeth, auth = auth.split(' ', 1)

Exception Type: ValueError at /nic/update
Exception Value: not enough values to unpack (expected 2, got 1)
Request information:
USER: AnonymousUser

GET: No GET data

POST: No POST data

FILES: No FILES data

COOKIES: No cookie data

META:
CONTENT_LENGTH = ''
CONTENT_TYPE = ''
DOCUMENT_ROOT = '/srv/nsupdate.info/htdocs'
HTTP_AUTHORIZATION = 'Basic'
HTTP_CONNECTION = 'close'
HTTP_HOST = 'ipv4.nsupdate.info'
HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT; Windows NT 10.0; ru-RU) WindowsPowerShell/5.1.17763.134'
HTTP_X_FORWARDED_FOR = '185.65.134.xxx'
HTTP_X_FORWARDED_PROTO = 'https'
HTTP_X_REAL_IP = '185.65.134.xxx'
PATH_INFO = '/nic/update'
QUERY_STRING = ''
REMOTE_ADDR = '185.65.134.xxx'
REMOTE_PORT = ''
REQUEST_METHOD = 'GET'
REQUEST_URI = '/nic/update'
SERVER_NAME = 'www.nsupdate.info'
wsgi.url_scheme = 'https'
Originally created by @ThomasWaldmann on GitHub (Jan 17, 2019). Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/401 Originally assigned to: @ThomasWaldmann on GitHub. ``` Internal Server Error: /nic/update ValueError at /nic/update not enough values to unpack (expected 2, got 1) Request Method: GET Request URL: https://ipv4.nsupdate.info/nic/update Traceback: File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner 41. response = get_response(request) File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/views/generic/base.py" in view 68. return self.dispatch(request, *args, **kwargs) File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/views/generic/base.py" in dispatch 88. return handler(request, *args, **kwargs) File "/srv/nsupdate.info/repo/nsupdate/utils/log.py" in caller 124. return func(*args, **kwargs) File "/srv/nsupdate.info/repo/nsupdate/api/views.py" in get 207. username, password = basic_authenticate(auth) File "/srv/nsupdate.info/repo/nsupdate/api/views.py" in basic_authenticate 122. authmeth, auth = auth.split(' ', 1) Exception Type: ValueError at /nic/update Exception Value: not enough values to unpack (expected 2, got 1) Request information: USER: AnonymousUser GET: No GET data POST: No POST data FILES: No FILES data COOKIES: No cookie data META: CONTENT_LENGTH = '' CONTENT_TYPE = '' DOCUMENT_ROOT = '/srv/nsupdate.info/htdocs' HTTP_AUTHORIZATION = 'Basic' HTTP_CONNECTION = 'close' HTTP_HOST = 'ipv4.nsupdate.info' HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT; Windows NT 10.0; ru-RU) WindowsPowerShell/5.1.17763.134' HTTP_X_FORWARDED_FOR = '185.65.134.xxx' HTTP_X_FORWARDED_PROTO = 'https' HTTP_X_REAL_IP = '185.65.134.xxx' PATH_INFO = '/nic/update' QUERY_STRING = '' REMOTE_ADDR = '185.65.134.xxx' REMOTE_PORT = '' REQUEST_METHOD = 'GET' REQUEST_URI = '/nic/update' SERVER_NAME = 'www.nsupdate.info' wsgi.url_scheme = 'https' ```
kerem closed this issue 2026-02-26 10:30:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsupdate.info-nsupdate-info#299
No description provided.