json - Getting a Server-Side JsonParseException / Char code 31 on Index Creation via Nest -
good afternoon,
i struggling bit index creation requests towards hosted elastic search service (facetflow), more precisely, es server returns jsonparseexception , returns http 500 response , nest client (correctly) reports index creation request have failed (non valid/not acknowledged etc)
i sniffed http traffic via fiddler , gets sent on following:
post https://myhostedesinstance.west-eu.azr.facetflow.io/users-dev http/1.1 accept: application/json content-type: application/json accept-encoding: gzip,deflate authorization: basic <cutforobviousreasons> host: myhostedesinstance.west-eu.azr.facetflow.io content-length: 891 { "settings": { "index": { "number_of_replicas": 0, "number_of_shards": 1 } }, "mappings": { "user": { "_all": { "enabled": false }, "_ttl": { "enabled": false }, "properties": { "dateofbirth": { "index": "not_analyzed", "type": "date" }, "gender": { "index": "not_analyzed", "type": "integer" }, "username": { "index": "not_analyzed", "type": "string" }, "usernamesuggestions": { "type": "completion", "payloads": false }, "id": { "index": "not_analyzed", "type": "string" }, "createdatutc": { "index": "not_analyzed", "type": "date" } } } } }
..and following:
http/1.1 500 server error server: nginx/1.4.7 date: wed, 01 jul 2015 21:17:11 gmt content-type: application/json; charset=utf-8 content-length: 199 connection: keep-alive access-control-allow-origin: * access-control-allow-credentials: true {"error":"jsonparseexception[illegal character ((ctrl-char, code 31)): regular white space (\\r, \\n, \\t) allowed between tokens\n @ [source: [b@a4fb74c; line: 1, column: 2]]","status":500}
i using nest 1.6.1 , json.net 7.0.1 , 'me' json sent on server looks fine.. or missing something? happen know might going on?
i have not changed serialization settings of nest/json.net confused why might happen.
Comments
Post a Comment