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

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

Open
alexkillen opened this issue Mar 3, 2020 · 0 comments
Open

Comments

@alexkillen
Copy link

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'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant