ckan / ckan/datapusher

TypeError: 'bool' object is not callable

Open
#148 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
82
Forks
157
PR merge metrics
No merged PRs in 30d

Description

Stacktrace:
```
Exception on /job/9a7fac5d-f237-490e-b639-78da5c67ea70 [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python2.7/site-packages/ckanserviceprovider/web.py", line 436, in job_status
if not ignore_auth and not is_authorized(job_dict):
File "/usr/local/lib/python2.7/site-packages/ckanserviceprovider/web.py", line 695, in is_authorized
if flogin.current_user.is_authenticated():
TypeError: 'bool' object is not callable
```

It relates to Flask-Login. I've got it on a new setup when `Flask-Login==0.4.0`. It works on my other machine with `Flask-Login==0.2.11`

Solution: I've freezed Flask-Login at a lower version: https://github.com/DanePubliczneGovPl/datapusher/commit/34d21ae7d328b6ca8201d5a8c4283991250d47b9

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.