Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

Ember Adapter does not call serializer when call to a backend API fails

$
0
0

@ajinkya-apte wrote:

  1. I am using a 'JSONAPIAdapter' and have my own serializer.
  2. When a call to my backend succeeds the serializers 'normalizeResponse' gets called correctly.
  3. However if a call fails the serializer never gets called.
  4. My backend is sending a meaningful message if the call fails and I want to show the message in the UI.
  5. Currently it seems like a failure payload is not being bubbled up.
  6. How can I get access to the payload that was received when a call to the backend fails?

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles