vespa-engine / vespa

AI + Data, online. https://vespa.ai
https://vespa.ai
Apache License 2.0
5.82k stars 604 forks source link

Document api error: DOCUMENT_EXCEPTION #15136

Closed kuipertan closed 4 years ago

kuipertan commented 4 years ago

I build vespa, and install it on phiscal machine, call /opt/vespa/bin/vespa-start-configserver and /opt/vespa/bin/vespa-start-services . Submit my application package normally, and http://localhost:19071/application/v2/tenant/ourtenant/application/ show normally. But when I feed it with one document, it failed:

_**curl -H "Content-Type:application/json" --data-binary @/opt/samples/bd-search-data/english1.json
http://localhost:8080/document/v1/mynamespace/kosmos/docid/1

response: {"errors":[{"description":"DOCUMENT_EXCEPTION [ENCODEERROR @ localhost]: Protocol 'document' failed to encode message. ","id":-11}],"id":"id:mynamespace:kosmos::1","pathId":"/document/v1/mynamespace/kosmos/docid/1"}**

Anyone can tell me why? Tks

kkraune commented 4 years ago

can you paste the contents of /opt/samples/bd-search-data/english1.json here? thanks

kkraune commented 4 years ago

I am sorry I have tried to feed different kinds of input to trigger this error, with no success - I assume there is something with the file data in english1.json that triggers this - reopen if you can submit the data, thanks