REST API BUGS IN 1.2
Summary
Getting 403 Error in API
- Using flectra in windows (Local Postman not working getting 404 or 403 error)
- In ubuntu server, Cloudflare + Flectra 1.2 = 403 Error in API using Postman.
I Revert to 1.1 and everything works fine.
this is my logs in windows.
2018-05-21 06:12:49,022 7812 INFO test werkzeug: 127.0.0.1 - - [21/May/2018 06:12:49] "GET / HTTP/1.1" 403 - 2018-05-21 06:12:49,715 7812 INFO test flectra.addons.base.ir.ir_http: Exception during request Authentication. Traceback (most recent call last): File "C:\Program Files (x86)\Flectra 1.2\server\flectra\addons\base\ir\ir_http.py", line 108, in authenticate request.session.check_security() File "C:\Program Files (x86)\Flectra 1.2\server\flectra\http.py", line 1062, in check_security if not security.check_session(self): File "C:\Program Files (x86)\Flectra 1.2\server\flectra\service\security.py", line 23, in check_session if flectra.tools.misc.consteq(self.compute_session_token(session.sid), session.session_token): File "C:\Program Files (x86)\Flectra 1.2\python\lib\site-packages\passlib\utils__init.py", line 288, in consteq raise TypeError("inputs must be both unicode or both bytes") TypeError: inputs must be both unicode or both bytes 2018-05-21 06:12:49,716 7812 INFO test werkzeug: 127.0.0.1 - - [21/May/2018 06:12:49] "GET / HTTP/1.1" 403 - 2018-05-21 06:12:52,341 7812 INFO test flectra.addons.base.ir.ir_http: Exception during request Authentication. Traceback (most recent call last): File "C:\Program Files (x86)\Flectra 1.2\server\flectra\addons\base\ir\ir_http.py", line 108, in authenticate request.session.check_security() File "C:\Program Files (x86)\Flectra 1.2\server\flectra\http.py", line 1062, in check_security if not security.check_session(self): File "C:\Program Files (x86)\Flectra 1.2\server\flectra\service\security.py", line 23, in check_session if flectra.tools.misc.consteq(self.compute_session_token(session.sid), session.session_token): File "C:\Program Files (x86)\Flectra 1.2\python\lib\site-packages\passlib\utils__init.py", line 288, in consteq raise TypeError("inputs must be both unicode or both bytes") TypeError: inputs must be both unicode or both bytes 2018-05-21 06:12:52,341 7812 INFO test werkzeug: 127.0.0.1 - - [21/May/2018 06:12:52] "GET / HTTP/1.1" 403 -