Project

General

Profile

Actions

Bug #16701

closed

Technique editor fails with internal error

Added by Nicolas CHARLES about 4 years ago. Updated about 4 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

After upgrading Rudder from 5.0 to 6.0 (see https://issues.rudder.io/issues/16699), ncf fails - errors are

[Mon Feb 10 15:50:44.748299 2020] [:error] [pid 22101] ERROR: Unknown internal error during authentication
[Mon Feb 10 15:50:44.748321 2020] [:error] [pid 22101] Cause: 'Request' object has no attribute 'is_xhr'
[Mon Feb 10 15:50:44.748324 2020] [:error] [pid 22101] Traceback (most recent call last):
[Mon Feb 10 15:50:44.748326 2020] [:error] [pid 22101]   File "/usr/share/ncf/api/ncf_api_flask_app/views.py", line 99, in get_auth
[Mon Feb 10 15:50:44.748328 2020] [:error] [pid 22101]     success = jsonify ( authentication_result )
[Mon Feb 10 15:50:44.748330 2020] [:error] [pid 22101]   File "/usr/share/ncf-api-virtualenv/lib/python2.7/site-packages/flask/json.py", line 298, in jsonify
[Mon Feb 10 15:50:44.748332 2020] [:error] [pid 22101]     if current_app.config['JSONIFY_PRETTYPRINT_REGULAR'] and not request.is_xhr:
[Mon Feb 10 15:50:44.748334 2020] [:error] [pid 22101]   File "/usr/share/ncf-api-virtualenv/lib/python2.7/site-packages/werkzeug/local.py", line 347, in __getattr__
[Mon Feb 10 15:50:44.748335 2020] [:error] [pid 22101]     return getattr(self._get_current_object(), name)
[Mon Feb 10 15:50:44.748337 2020] [:error] [pid 22101] AttributeError: 'Request' object has no attribute 'is_xhr'
[Mon Feb 10 15:50:44.748339 2020] [:error] [pid 22101] 

Actions

Also available in: Atom PDF