You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"error": {
"name": "TypeError",
"status": 500,
"message": "self.db.deleteByQuery is not a function",
"stack": "TypeError: self.db.deleteByQuery is not a function\n at destroyAll (/opt/development/node_modules/loopback-connector-es/lib/esConnector.js:796:13)\n at doDelete (/opt/development/node_modules/loopback-datasource-juggler/lib/dao.js:1740:19)\n at /opt/development/node_modules/loopback-datasource-juggler/lib/dao.js:1714:11\n at doNotify (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:93:49)\n at doNotify (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:93:49)\n at doNotify (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:93:49)\n at doNotify (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:93:49)\n at Function.ObserverMixin._notifyBaseObservers (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:116:5)\n at Function.ObserverMixin.notifyObserversOf (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:91:8)\n at Function.ObserverMixin._notifyBaseObservers (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:114:15)\n at Function.ObserverMixin.notifyObserversOf (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:91:8)\n at Function.ObserverMixin._notifyBaseObservers (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:114:15)\n at Function.ObserverMixin.notifyObserversOf (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:91:8)\n at Function.ObserverMixin._notifyBaseObservers (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:114:15)\n at Function.ObserverMixin.notifyObserversOf (/opt/development/node_modules/loopback-datasource-juggler/lib/observer.js:91:8)\n at /opt/development/node_modules/loopback-datasource-juggler/lib/dao.js:1712:15"
}
}
But if I execute the right request directly to elasticsearch, it's ok and this is the request :
Hi,
When I do a delete using explorer, the curl request is :
curl -X DELETE --header "Accept: application/json" "https://domain.com/api/items/AVRN9YTgQpzsefUO2miC"
This fail with :
But if I execute the right request directly to elasticsearch, it's ok and this is the request :
curl -XDELETE 'http://localhost:9200/items/item/AVRN9YTgQpzsefUO2miC'
Reference : Delete API
Thanks
The text was updated successfully, but these errors were encountered: