-
Notifications
You must be signed in to change notification settings - Fork 215
Elasticsearch errors #17
Comments
The errors I've seen with elasticsearch all have to do with the mapping.
and then you hit a document that looked like this:
then elastic search wouldn't like this, because value changed from being a string to a double the error includes the document id, I have to say though that the error really isn't helpful to debug. I made a change (today) that lets the api be optional, but if you don't include the api, you won't get any messages :) (which also isn't very helpful in this case.) I'll be adding some logging options, and trying to fix that in the next bit. Thanks! |
Thanks a lot for the explanation! transporter: EventEmitter Error: http error code, expected 200 or 201, got 405, ({"ts":1419027073,"name":"error","path":"","record":{"id":"zzn4672Xpg5MKTnwD"},"message":"ERROR: Elasticsearch error (%!s(\u003cnil\u003e))"}) It feels like maybe there is simply a glitch in the parsing of the elasticsearch response? Maybe elasticsearch actually does not return any error (there is nothing in the logs either), could also explain the "nil" maybe? |
Ok, that's odd. I'll dive into this tonight. |
I tried both and get the same errors with and without transformer. |
This should help :) it was just noise that shouldn't have been emited, the documents were inserted properly |
Awesome! Just tried it out and it works perfectly now. |
First of all, this project is amazing! :)
I am currently trying to insert documents from a mongo collection into elasticsearch. It works for most of the documents, but I see also a lot of errors like below. The first part, I understand (because there is no API endpoint), but I do not understand what the Elasticsearch error (%!s(\u003cnil\u003e)) means.
I am using this transform function. Does the elastic search object need to have a certain format?
module.exports = function(doc) { var saveDoc = { _id: JSON.stringify(doc._id), text: doc.text, meta: doc.meta } return saveDoc }
transporter: EventEmitter Error: http error code, expected 200 or 201, got 405, ({"ts":1419023160,"name":"error","path":"","record":{"_id":"316254105985245184"},"message":"ERROR: Elasticsearch error (%!s(\u003cnil\u003e))"})
The text was updated successfully, but these errors were encountered: