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
{{ message }}
This repository was archived by the owner on Sep 4, 2024. It is now read-only.
Unhandled rejection Error: Incorrect HTTP method for uri [/randomindex] and method [POST], allowed: [PUT, DELETE, GET, HEAD]
at respond (/Users/sugizo/js/learn/express.js-elasticsearch-autocomplete/node_modules/elasticsearch/src/lib/transport.js:264:15)
at checkRespForFailure (/Users/sugizo/js/learn/express.js-elasticsearch-autocomplete/node_modules/elasticsearch/src/lib/transport.js:223:7)
at HttpConnector. (/Users/sugizo/js/learn/express.js-elasticsearch-autocomplete/node_modules/elasticsearch/src/lib/connectors/http.js:155:7)
at IncomingMessage.wrapper (/Users/sugizo/js/learn/express.js-elasticsearch-autocomplete/node_modules/lodash/index.js:3095:19)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1056:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
The text was updated successfully, but these errors were encountered:
please note, this was written (2 years ago) for elasticsearch 2. Code needs to be modified to fit the new API.
Whenever I will find the time, I will dive into the new ES API. Not in the near future thou
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
$ npm start
Elasticsearch INFO: 2017-11-21T03:21:53Z
Adding connection to http://localhost:9200/
Unhandled rejection Error: Incorrect HTTP method for uri [/randomindex] and method [POST], allowed: [PUT, DELETE, GET, HEAD]
at respond (/Users/sugizo/js/learn/express.js-elasticsearch-autocomplete/node_modules/elasticsearch/src/lib/transport.js:264:15)
at checkRespForFailure (/Users/sugizo/js/learn/express.js-elasticsearch-autocomplete/node_modules/elasticsearch/src/lib/transport.js:223:7)
at HttpConnector. (/Users/sugizo/js/learn/express.js-elasticsearch-autocomplete/node_modules/elasticsearch/src/lib/connectors/http.js:155:7)
at IncomingMessage.wrapper (/Users/sugizo/js/learn/express.js-elasticsearch-autocomplete/node_modules/lodash/index.js:3095:19)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1056:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
The text was updated successfully, but these errors were encountered: