Mistral doesn't handle a 400 response from keycloak
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Triaged
|
Medium
|
Unassigned |
Bug Description
when mistral is trying to validate a keycloak token, and gets a HTTP 400 response,
we get an exception in the log, when trying to process the response, and at the end return 500 due to that.
this is the segment from mistral API.log:
2017-12-27 08:24:49.372 28710 DEBUG requests.
2017-12-27 08:24:49.376 28710 INFO eventlet.
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib/
return self.func(req, *args, **kwargs)
File "/usr/lib/
response = req.get_
File "/usr/lib/
application, catch_exc_
File "/usr/lib/
app_iter = application(
File "/usr/lib/
return self.applicatio
File "/usr/lib/
return super(Pecan, self)._
File "/usr/lib/
return state.response(
File "/usr/lib/
app_iter = self.generate_
File "/usr/lib/
content_
File "/usr/lib/
"You cannot set the body to a text value without a "
TypeError: You cannot set the body to a text value without a charset
Changed in mistral: | |
status: | New → Triaged |
importance: | Undecided → Medium |