Forum OpenACS Development: Re: Error: POST /RPC2/

Collapse
6: Re: Error: POST /RPC2/ (response to 5)
Posted by Iuri Sampaio on
Gustaff,

That's probably there from old oacs legacy. Even though, I was pretty sure I had downloaded xml-rpc pkg from CVS, oacs-core.

Anyway, I've followed your guides, restarted Naviserver, and called http://ndc.iurix.com/ws-ndc/ and it returned the same error. The release is

https://openacs.org/repository/download/apm/xml-rpc-0.3.apm

I believe the cause is not the one we expected.

[20/Sep/2016:02:02:36][15344.b4863b70][-conn:iurix:0-] Warning: ns_httpopen POST http://www.iurix.com/RPC2 d3 30 {?xml version="1.0"?<methodCall><methodName>ix_ndc.get_result</methodName><params>
...

<i4>4</i4></value></param><param><value><i4>44</i4></value></param></params></methodCall>} is deprecated. Use 'ns_http' instead!
[20/Sep/2016:02:02:36][15344.b5263b70][-conn:iurix:1-] Notice: 'ns_tmpnam ' is deprecated. Use 'ns_mktemp ?template?' instead.
[20/Sep/2016:02:02:36][15344.b5263b70][-conn:iurix:1-] Warning: ns_unlink /tmp/fileycXivT3532794781.xmlrpc2 is deprecated. Use 'file delete' instead!
[20/Sep/2016:02:02:36][15344.b5263b70][-conn:iurix:1-] Error: POST /RPC2/, PeerAddress: 192.199.241.135
invalid command name "ns_xml"
while executing
"

Collapse
7: Re: Error: POST /RPC2/ (response to 6)
Posted by Iuri Sampaio on
Gustaff,

Right there! I did install ns_xmlrpc within <rootdir>/tcl/. I removed it and the error is gone. It seems ns_xmlrpc was overlapping /packages/xml-rpc

Best wishes

[20/Sep/2016:02:47:15][22190.b47d9b70][-conn:iurix:0-] Warning: /RPC2/ has no doc(title) set, fallback to instance_name.
...

<i4>4</i4></value></param><param><value><i4>44</i4></value></param></params></methodCall>} is deprecated. Use 'ns_http' instead!
[20/Sep/2016:02:47:20][22190.b51d9b70][-conn:iurix:1-] Notice: Running ad_proc ws_ndc.get_result...
[20/Sep/2016:02:47:20][22190.b51d9b70][-conn:iurix:1-] Error: xmlrpc_invoke: error in xmlrpc method REQUEST: ?xml version="1.0"?<methodCall><methodName>ix_ndc.get_result</methodName><params><param><value><string>ix-ndc</string></value></param><param><value><i4>414835</i4></value></param><param><value><string/></value></param><param><value><string/></value></param><param><value><i4>4</i4></value></param><param><value><i4>44</i4></value></param></params></methodCall> RESULT: ?xml version="1.0"?<methodResponse><fault><value><struct><member><name>faultCode</name><value><i4>1</i4></value></member><member><name>faultString</name><value><string>Email required</string></value></member></struct></value></fault></methodResponse>
Email required
while executing
"lars_blog_auth_for_xmlrpc -username $username -password $password"
(procedure "ix_ndc.get_result" line 4)
invoked from within