[2022-06-20 19:28:44,842] ERROR in app: Exception on /post_manual [POST]
Traceback (most recent call last):
File "/kijiji-manager/venv/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/kijiji-manager/venv/lib/python3.10/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/kijiji-manager/venv/lib/python3.10/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/kijiji-manager/venv/lib/python3.10/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "kijiji-manager/venv/lib/python3.10/site-packages/flask_login/utils.py", line 303, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
File "kijiji-manager/kijiji_manager/views/ad.py", line 53, in post_manual
f.write(xml_payload)
TypeError: write() argument must be str, not bytes
Was breaking during manual post ->
check data type and encoding.
change variable if detected.
Was breaking during manual post -> check data type and encoding. change variable if detected.