With a 500 Internal Server Error, you should have something in the ErrorLog. Can you send what you find there?
I've never posted directly to /v1/graphs; I've always used mlcp to load triples: http://docs.marklogic.com/guide/mlcp/import#id_32771. You could try that as an alternative. -- Dave Cassel, @dmcassel<https://twitter.com/dmcassel> Technical Community Manager MarkLogic Corporation<http://www.marklogic.com/> http://developer.marklogic.com/ From: <[email protected]<mailto:[email protected]>> on behalf of Ghislain Atemezing-Pro <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Wednesday, April 12, 2017 at 11:18 AM To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] Updating graph with Curl Hello, I am having an issue when trying to update my endpoint using curl with some triples in a .nq file. The file contains almost 2Mio triples and I wanted to update my repository. Here is the command: curl --anyauth --user mondeca:MdK2016! -i -X POST --data-binary @./<myfile>.nq -H "Content-type: application/n-quads" 'http://myhost:8000/v1/graphs?database=m<http://localhost:8000/v1/graphs?database=opoceProd>ydataset' I am having timeout after setting the limit to 600s and 1200s. Below is the error I receive: HTTP/1.1 500 Internal Server Error Content-type: application/json; charset=UTF-8 Server: MarkLogic Content-Length: 500 Connection: Keep-Alive Keep-Alive: timeout=5 Is there any good practice to do for this kind of task? Am I using a wrong Curl command to update my repository? Thanks in advance for any help. Best, Ghislain -- -------------------------------------------- Ghislain A. Atemezing, Ph.D R&D Engineer @ Mondeca, Paris, France Labs: http://labs.mondeca.com Tel: +33 (0)1 4111 3034 Web: www.mondeca.com<http://www.mondeca.com> Twitter: @gatemezing About Me: http://atemezing.org
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
