?

Log in

No account? Create an account
Strange error from the API - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Strange error from the API [Jun. 8th, 2005|08:57 am]
LiveJournal Client Discussions
lj_clients
[hublet]
Hi,

This is my first post here, and I was directed to this Community after the normal LJ support couldn't help me

Anyways, here's the error I'm getting:
Can't call method "quote" on an undefined value at /home/lj/cgi-bin/ljlib.pl line 6013, <GEN7> line 341.

Since my code doesn't include the word "quote", I'm wondering whether it's something completely on the LJ end

This happens almost randomly, but not very often - for example, I might post 50 correct entries, and then get one with this message

Here's an example of the API post I'm doing:
<?xml version="1.0"?>
<methodCall>
<methodName>LJ.XMLRPC.postevent</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>username</name>
<value><string>username</string></value>
</member>
<member>
<name>password</name>
<value><string>password</string></value>
</member>
<member>
<name>event</name>
<value><string>
This is the type of content I'm entering for a <b>New Entry</b> and it's breaking with the error message. <br /> <br /> I'm trying to post using a bespoke front end for a client so it posts to multiple blogs, including LiveJournal.<br /><br />

<a href="http://www.mydomain.com/mypage.html" target="_blank">New Entry</a></string></value>
</member>
<member>
<name>subject</name>
<value><string><a href="http://www.mydomain.com/mypage.html" target="_blank">New Entry</a></string></value>
</member>
<member>
<name>lineendings</name>
<value><string>pc</string></value>
</member>
<member>
<name>year</name>
<value><int>2005</int></value>
</member>
<member>
<name>mon</name>
<value><int>5</int></value>
</member>
<member>
<name>day</name>
<value><int>10</int></value>
</member>
<member>
<name>hour</name>
<value><int>9</int></value>
</member>
<member>
<name>min</name>
<value><int>0</int></value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>

If anybody can point me in the right direction, it'd be MUCH appreciated
linkReply

Comments:
[User Picture]From: int
2005-06-08 03:14 pm (UTC)
Does it only happen when you're posting entries with tags in them? Try sticking the event inside stuff, or escaping the tags.
(Reply) (Thread)
[User Picture]From: int
2005-06-08 03:16 pm (UTC)
Whoops, forgot to escape that. Between 'inside' and 'stuff', it should have said <![CDATA[]]>.
(Reply) (Parent) (Thread)
From: hublet
2005-06-08 07:20 pm (UTC)
This worked perfectly on my first test - now to see how it posts for the clients using it :P
(Reply) (Parent) (Thread)
From: hublet
2005-06-08 07:39 pm (UTC)
Oops, forgot to mention that my internal tags are escaped, but when I posted it, the &lt; turned into < (if that makes sense)
(Reply) (Parent) (Thread)
[User Picture]From: dmierkin
2005-06-08 05:16 pm (UTC)
what language/library are you using to post ? i have a workin python code that i can share
(Reply) (Thread)
From: hublet
2005-06-08 07:20 pm (UTC)
I'm actually using a web-based solution, writing it myself in ColdFusion so that I can have complete control over the front/back end of things
(Reply) (Parent) (Thread)