Closed li-sicong closed 3 years ago
Do you have an example which triggers this case? The root cause of this problem might lie elsewhere.
Do you have an example which triggers this case? The root cause of this problem might lie elsewhere.
Yes. The error was found when I passed a list to data argument in stan.build instead of a dictionary. I think this caused an exception to be raised in the marshmallow package but was not handled, resulting in a confusing error message.
I don't object to figuring out a solution to this problem. However, we need more discussion. I suspect something might need to be changed in httpstan
.
If you want to pursue this, open a bug report with a minimal example showing how the (unhelpful) error arises.
Some error cases do not set 'message' field in the response. Handle such cases by propagating the full response.