Hi
I have been away for a bit (since 3.3) and I am back looking at JSON-RPC
calls, but for some reason I cannot get them to work anymore: For example
the following works without issues :
wget -v -O - --no-http-keep-alive --post-data='{"id": 1, "method":
"common.server.version", "params": [null, null]} ' \
--header="Content-Type: text/json" --no-check-certificate \
https://demo4.2.tryton.org
{
"id": 1,
"result": "4.2.1"
}
But when I attempt to connect with a specific database I get a 405 (method
not allowed error)
wget -v -O - --no-http-keep-alive --post-data='{"id": 1, "method":
"system.server.listMethods", "params": [null, null]} ' \
--header="Content-Type: text/json" --no-check-certificate \
https://demo4.2.tryton.org/demo4.2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>405 Method Not Allowed</title>
<h1>Method Not Allowed</h1>
<p>The method is not allowed for the requested URL.</p>
Is there an updated document on this JSON-RPC calls (Only document I could
find is https://trytond.readthedocs.io/en/latest/topics/rpc.html) ?
thanks
Nz
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/d2cfb716-342a-4ca1-96a5-bcf82f76e2d2%40googlegroups.com.