Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Decode Error Json #21

Open
karasahinemre opened this issue Dec 24, 2019 · 1 comment
Open

How to Decode Error Json #21

karasahinemre opened this issue Dec 24, 2019 · 1 comment

Comments

@karasahinemre
Copy link

For success case decoders work as aspected.

But in error cases we have different json response.

How can we handle error cases?

@atifsaeed14
Copy link

Just update
request.responseDecodable(decoder: decoder, completionHandler: { (response: AFDataResponse) in
to
request.responseDecodable(decoder: decoder, completionHandler: { (response: DataResponse) in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants