Bug #272
[XMLRPC] undefined method `[]' for nil:NilClass
| Status : | Closed | Start : | ||
| Priority : | Normal | Due date : | ||
| Assigned to : | tobi - | % Done : | 0% |
|
| Category : | backend | |||
| Target version : | - | |||
| Resolution : | worksforme |
Description
I'm trying to post via Blogjet and get the error: undefined method @[]' for nil:NilClass
This is what is showing up in my production.log:
Processing BackendController#xmlrpc (for 194.109.89.82 at Tue May 17 10:27:28 CEST 2005)
Parameters: {""\"1.0\" encoding=\"UTF-8\"?>\r\n<methodCall>\r\n <methodName>metaWeblog.newPost</methodName>\r\n <params>\r\n <param>\r\n<value><string>1</string></value>\r\n </param>\r\n <param>\r\n<value><string>boris</string></value>\r\n </param>\r\n <param>\r\n<value><string>somepassword</string></value>\r\n </param>\r\n <param>\r\n<value>\r\n <struct>\r\n <member>\r\n <name>title</name>\r\n <value><string>bitslapped reloaded</string></value>\r\n </member>\r\n <member>\r\n <name>description</name>\r\n <value><string>", "/p"=>"", "gt"=>"", "action"=>"xmlrpc", "</string></value>\r\n </member>\r\n <member>\r\n <name>dateCreated</name>\r\n <value><dateTime.iso8601>20050517T10:30:23</dateTime.iso8601></value>\r\n </member>\r\n </struct>\r\n</value>\r\n\r\n </param>\r\n <param>\r\n<value><boolean>1</boolean></value>\r\n </param>\r\n </params>\r\n</methodCall>\r\n"=>"", "p"=>"", "controller"=>"backend", "Yay."=>"", "lt"=>""}
Casting of method parameters failed
User Load (0.000542) SELECT * FROM users WHERE login = 'boris' AND password = 'somepassword' LIMIT 1
User Columns (0.000666) SHOW FIELDS FROM users
Article Columns (0.000997) SHOW FIELDS FROM articles
Article Columns (0.000987) SHOW FIELDS FROM articles
Web Service Request: metaWeblog.newPost(blogid=>"1", username=>"boris", password=>"somepassword", struct=>{"title"=>"bitslapped reloaded", "description"=>"<p>Yay.</p>", "dateCreated"=>#<XMLRPC::DateTime:0x4091b3dc @hour=10, @day=17, @sec=23, @month=5, @min=30, @year=2005>}, publish=>true) Entrypoint: xmlrpc
<methodCall>
<methodName>metaWeblog.newPost</methodName>
<params>
<param>
<value><string>1</string></value>
</param>
<param>
<value><string>boris</string></value>
</param>
<param>
<value><string>somepassword</string></value>
</param>
<param>
<value>
<struct>
<member>
<name>title</name>
<value><string>bitslapped reloaded</string></value>
</member>
<member>
<name>description</name>
<value><string><p>Yay.</p></string></value>
</member>
<member>
<name>dateCreated</name>
<value><dateTime.iso8601>20050517T10:30:23</dateTime.iso8601></value>
</member>
</struct>
</value>
</param>
<param>
<value><boolean>1</boolean></value>
</param>
</params>
</methodCall>
NoMethodError (undefined method @[]' for nil:NilClass):
/app/apis/meta_weblog_service.rb:102:in @newPost'
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-0.7.1/lib/action_web_service/invocation.rb:144:in @send'
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-0.7.1/lib/action_web_service/invocation.rb:144:in @perform_invocation_without_interception'
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-0.7.1/lib/action_web_service/invocation.rb:138:in @perform_invocation'
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-0.7.1/lib/action_web_service/dispatcher/abstract.rb:40:in @web_service_delegated_invoke'
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-0.7.1/lib/action_web_service/dispatcher/abstract.rb:23:in @invoke_web_service_request'
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-0.7.1/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:52:in @dispatch_web_service_request'
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-0.7.1/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:50:in @measure'
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-0.7.1/lib/action_web_service/dispatcher/action_controller_dispatcher.rb:50:in @dispatch_web_service_request'
(eval):1:in @xmlrpc'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:708:in @send'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:708:in @perform_action_without_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/filters.rb:294:in @perform_action_without_benchmark'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in @perform_action_without_rescue'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in @measure'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/benchmarking.rb:37:in @perform_action_without_rescue'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/rescue.rb:79:in @perform_action'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in @send'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:330:in @process'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/action_controller/base.rb:273:in @process'
/usr/local/lib/ruby/gems/1.8/gems/rails-0.12.1/lib/dispatcher.rb:32:in @dispatch'
/home/httpd/vhosts/bitslapped.nl/apps/weblog/public/dispatch.cgi:10
Web Service Response: => #<XMLRPC::FaultException: XMLRPC::FaultException>
<methodResponse><fault><value><struct><member><name>faultCode</name><value><i4>2</i4></value></member><member><name>faultString</name><value><string>undefined method @[]' for nil:NilClass</string></value></member></struct></value></fault></methodResponse>
Sending data
Completed in 0.02789 (35 reqs/sec) | DB: 0.00319 (11%)
Associated revisions
Fix teh typo. (closes #272)
History
05/21/2005 12:43 AM - huw-nichols-gmail-com -
I get a very similar error when trying to post using either blogjet or windows version of ecto [stable or dev versions]
Has anyone got a solution for this yet ? Or any suggestions on what to try next maybe
05/25/2005 10:51 PM - EricStewart -
I found the same problem when tring to use both w.Bloggar and BlogThis! (Within Newz Crawler). I think w.Bloggar posting was resolved by configuring the "Advanced Options" for the post that set the Ping and Comments options. Perhaps typo is expecting that those are always set??
