codenotary / immugw

Apache License 2.0
23 stars 4 forks source link

Curl commands not working #7

Closed vishalbatra closed 2 years ago

vishalbatra commented 3 years ago

Unable to run the Curl examples listed at https://docs.immudb.io/immugw/curl.html

Environment & Setup: immudb and immugw docker containers on Mac (from latest docker images)

Able to run the login command and obtain the token, but safe write request fails with following error: {"error":"incorrect JSON payload","code":3,"message":"incorrect JSON payload"}

The token provides on login starts with v2.public.xxxx. Tried using the same token with and without the prefix v2.public. to make subsequent requests but no luck. Documentation is unclear whether the prefix v2.public. in the token is required or not when making the subsequent requests.

mmeloni commented 2 years ago

Hi @vishalbatra please try with the new doc