This worked for me on v8:

curl -i -H 'Content-Type: text/plain' -d '' -X POST --anyauth --user
admin:admin http://localhost:8000/v1/transactions

Can you retry with -i?

On Wed, Oct 21, 2015 at 12:40 PM, Gilles Lenfant <gilles.lenf...@alterway.fr
> wrote:

> Hi,
>
> Experimenting the transactions does not work for me as described in
> http://docs.marklogic.com/REST/POST/v1/transactions in my dev server.
>
> curl -X POST -d "" --anyauth --user admin:admin
> http://localhost:8000/v1/transactions
>
> yields this JSON response...
>
> {"errorResponse":{"statusCode":500, "status":"Internal Server Error",
> "messageCode":"INTERNAL ERROR", "message":"XDMP-AS: (err:XPTY0004)
> $txid as xs:unsignedLong -- Invalid coercion: () as xs:unsignedLong .
> See the MarkLogic server error log for further detail."}}
>
> This suggests that a "txid" should be provided when this REST query is
> supposed to provide a new "txid".
>
> Did I miss something ? Many thanks in advance for any hint !
>
> --
> Gilles Lenfant
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to