Uploaded image for project: 'Open Data Hub'
  1. Open Data Hub
  2. ODH-487

JSP: Server error when api can not retrieve authenticated user from cookie or token

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • JupyterHub
    • None
    • Open Data Hub Sprint 11, Open Data Hub Sprint 12

      The JupyterHub server reports an error when the api does not populate an authenticated "user" from a cookie or token

        File "/opt/app-root/lib64/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
          return self.view_functions[rule.endpoint](**req.view_args)
        File "/opt/app-root/lib64/python3.8/site-packages/connexion/decorators/decorator.py", line 68, in wrapper
          response = function(request)
        File "/opt/app-root/lib64/python3.8/site-packages/connexion/decorators/uri_parsing.py", line 149, in wrapper
          response = function(request)
        File "/opt/app-root/lib64/python3.8/site-packages/connexion/decorators/parameter.py", line 115, in wrapper
          return function(**kwargs)
        File "/opt/app-root/lib64/python3.8/site-packages/jupyterhub_singleuser_profiles/api/api.py", line 50, in decorated
          if for_user and user.get('admin'):
      AttributeError: 'NoneType' object has no attribute 'get'
      

        1. jupyterhub_jsp_api_user_error.png
          31 kB
          Landon LaSmith
        2. jupyterhub-1-tsnpr-jupyterhub.log
          488 kB
          Landon LaSmith

              llasmith@redhat.com Landon LaSmith
              llasmith@redhat.com Landon LaSmith
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: