New Error Tonight on Upload with API
Kevin L. Kitchens
Registered Users Posts: 149 Major grins
Did not get this last night, now this morning am. Has there been a change?
"" is an unexpected token. The expected token is '='
My upload API is suddenly not working. The upload works, but when I fire the following line of code:
doc.LoadXml(response);
That error occurs.
Idears?
Here's the "response" text:
<?xml version "1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>ImageID</name>
<value>
<int>300403866</int>
</value>
</member>
<member>
<name>ImageKey</name>
<value>
<string>Bd3Hq</string>
</value>
</member>
<member>
<name>ImageURL</name>
<value>
<string>http://peiklk.smugmug.com/gallery/1927555_9BdiK#300403866_Bd3Hq</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
"" is an unexpected token. The expected token is '='
My upload API is suddenly not working. The upload works, but when I fire the following line of code:
doc.LoadXml(response);
That error occurs.
Idears?
Here's the "response" text:
<?xml version "1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>ImageID</name>
<value>
<int>300403866</int>
</value>
</member>
<member>
<name>ImageKey</name>
<value>
<string>Bd3Hq</string>
</value>
</member>
<member>
<name>ImageURL</name>
<value>
<string>http://peiklk.smugmug.com/gallery/1927555_9BdiK#300403866_Bd3Hq</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
Kevin L. Kitchens
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
0
Comments
Cheers,
David
SmugMug API Developer
My Photos
Minor == breaks the system. ???
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]
The bug is that it should say version="1.0". You could try fixing it before you treat it as XML, in the meantime.
Excellent thanks.
"Know me through my lens."
My smugmug: http://peiklk.smugmug.com
My site: http://www.photographyvoice.com [POTD, Blog, News, & more!]