VB10 / vexana

Vexana is network manager project with dio.
https://pub.dev/packages/vexana
MIT License
147 stars 39 forks source link

Getting response.error.model null for Response Code 400 #63

Closed pravin-sorigin closed 1 year ago

pravin-sorigin commented 1 year ago

Hi, I'm using this library since one year in our product. And just noticed that in vexana: 3.3.2, I'm getting response.error.model as a null for status code 400.

I can see the response in the interceptor but not getting into the error model.

Please help, How can I get error model?

VB10 commented 1 year ago

@pravin-sorigin hi Please update your version to the latest (3.4.1), and your implementation should be as follows: image

dart class ApiBaseError extends INetworkModel<ApiBaseError> { ApiBaseError({ this.errors, });

pravin-sorigin commented 1 year ago

@VB10 Thanks. I resolved it by adding below two params.

image