Sunday, February 14, 2016

Error: $resource:badcfg

Error: $resource:badcfg
Response does not match configured parameter

Error in resource configuration for action `get`. Expected response to contain an object but got an array (Request: GET /api/eventSources)

To fix this, use `query() instead of `get()` of `$resource`.

Reference:
https://docs.angularjs.org/error/$resource/badcfg?p0=get&p1=object&p2=array&p3=GET&p4=%2Fapi%2FeventSources

No comments:

Post a Comment