Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

AttributeError: '_AppCtxGlobals' object has no attribute 'user' #76

Description

@alexkillen

When making requests to the server (I tried service/list and task/list) I'm getting the following error on the server:

[2020-03-03 11:25:58,925] ERROR in routes: Traceback (most recent call last):
  File "/home/alexk/Development/playground/nmt-wizard/nmt-wizard/env/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/alexk/Development/playground/nmt-wizard/nmt-wizard/env/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/alexk/Development/playground/nmt-wizard/nmt-wizard/server/app/routes.py", line 308, in func_wrapper
    return func(*args, **kwargs)
  File "/home/alexk/Development/playground/nmt-wizard/nmt-wizard/server/app/routes.py", line 346, in list_services
    if any(has_ability(flask.g, "train", pool_entity) for pool_entity in pool_entities):
  File "/home/alexk/Development/playground/nmt-wizard/nmt-wizard/env/lib/python3.7/site-packages/werkzeug/local.py", line 347, in __getattr__
    return getattr(self._get_current_object(), name)
AttributeError: '_AppCtxGlobals' object has no attribute 'user'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions