Node.js

埃拉桑德拉“action_request_validation_exception”

  • September 23, 2019
Elasticsearch DEBUG: 2019-09-23T09:23:39Z
 starting request {
   "method": "HEAD",
   "castExists": true,
   "path": "/my_keyspace",
   "query": {}
 }


Elasticsearch TRACE: 2019-09-23T09:23:39Z
 -> HEAD http://192.168.99.100:9200/my_keyspace

 <- 200


Elasticsearch DEBUG: 2019-09-23T09:23:39Z
 Request complete

Elasticsearch DEBUG: 2019-09-23T09:23:39Z
 starting request {
   "method": "PUT",
   "path": "/my_keyspace/_mapping",
   "body": {
     "discover": ".*",
     "properties": {
       "id": {
         "type": "text"
       },
       "title": {
         "type": "text"
       },
       "summary": {
         "type": "text"
       },
       "company": {
         "type": "text"
       }
     }
   },
   "query": {
     "type": "job"
   }
 }


Elasticsearch TRACE: 2019-09-23T09:23:39Z
 -> PUT http://192.168.99.100:9200/my_keyspace/_mapping?type=job
 {
   "discover": ".*",
   "properties": {
     "id": {
       "type": "text"
     },
     "title": {
       "type": "text"
     },
     "summary": {
       "type": "text"
     },
     "company": {
       "type": "text"
     }
   }
 }
 <- 400
 {
   "error": {
     "root_cause": [
       {
         "type": "action_request_validation_exception",
         "reason": "Validation Failed: 1: my_keyspace.job table does not exists;"
       }
     ],
     "type": "action_request_validation_exception",
     "reason": "Validation Failed: 1: my_keyspace.job table does not exists;"
   },
   "status": 400
 }

Elasticsearch DEBUG: 2019-09-23T09:23:39Z
 Request complete

Unhandled rejection Error: [action_request_validation_exception] Validation Failed: 1: my_keyspace.job table does not exists;
   at respond (\project\root\node_modules\elasticsearch\src\lib\transport.js:349:15)
   at checkRespForFailure (\project\root\node_modules\elasticsearch\src\lib\transport.js:306:7)
   at HttpConnector.<anonymous> (\project\root\node_modules\elasticsearch\src\lib\connectors\http.js:173:7)
   at IncomingMessage.wrapper (\project\root\node_modules\lodash\lodash.js:4929:19)
   at emitNone (events.js:111:20)
   at IncomingMessage.emit (events.js:208:7)
   at endReadableNT (_stream_readable.js:1064:12)
   at _combinedTickCallback (internal/process/next_tick.js:138:11)
   at process._tickDomainCallback (internal/process/next_tick.js:218:9)

我正在嘗試使用masumsoft/express-cassandra連接到最新的 Elassandra,位於strapdata/elassandra. 該對話框似乎是有效的,但是連接會導致意外錯誤,任何指針表示讚賞。

結果我不得不重命名“Job”模型,因為它是 Elasticsearch/Cassandra 中的保留關鍵字。

引用自:https://serverfault.com/questions/985264