Mart 0 Posted March 31, 2014 Report Share Posted March 31, 2014 Does anybody know what this means? {"errorCode":-1019,"errorDescription":"[runtime][WARNING][JAXB] c.w.f.o.JAXBRuntimeException - Unmarshaling failed","success":false,"payload":null} Thanks Quote Link to post Share on other sites
Mart 0 Posted March 31, 2014 Author Report Share Posted March 31, 2014 The site I am having trouble with is wix.com. I can login and post data no problem. I am just getting an error from this part of my script: plugin command("HTTP post.dll", "http set contenttype", "application/xml; charset=UTF-8")plugin command("HTTP post.dll", "http set headers", "accept", "application/json, text/plain, */*")set(#post image, $plugin function("HTTP post.dll", "$http post", "http://editor.wix.com/media/private/add", "<mediaItemList><mediaItem fileName=\"{#filename}\"\\n originalFileName=\"{#original}\"\\n fileSize=\"{#filesize}\"\\n mimeType=\"image/jpeg\"\\n sourceName=\"user\"\\n version=\"2\"\\n iconURL=\"{#icon}\"\\n sourceURL=\"undefined\"\\n mediaType=\"picture\"\\n width=\"{#width}\"\\n height=\"{#height}\"\\n /></mediaItemList>", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0", "http://editor.wix.com/static/services/media-gallery-ng/0.116.0/assets/media_gallery/index.html?mediaGalleryStaticBaseUrl=http://static.wix.com/services/media-gallery-ng/0.116.0//", "", ""), "Global") It does upload initially because I am able scrape those upload file variables right before this piece of code, it just won't post the information to make the image become live on the site. Quote Link to post Share on other sites
LazyBotter 188 Posted March 31, 2014 Report Share Posted March 31, 2014 You are setting up your parameters wrong i think, I will take a look now... Also have you tried the http upload function? Quote Link to post Share on other sites
LazyBotter 188 Posted March 31, 2014 Report Share Posted March 31, 2014 You can try this but probably won't work: plugin command("HTTP post.dll", "http container") { plugin command("HTTP post.dll", "http set contenttype", "application/xml; charset=UTF-8") plugin command("HTTP post.dll", "http set headers", "accept", "application/json, text/plain, */*") set(#post image, $plugin function("HTTP post.dll", "$http post", "http://editor.wix.com/media/private/add", "fileName={#filename}&originalFileName={#original}&fileSize=&{#filesize}&mimeType=image/jpeg&sourceName=user&version=2&iconURL={#icon}&sourceURL=undefined&mediaType=picture&width={#width}&height={#height}", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0", "http://editor.wix.com/static/services/media-gallery-ng/0.116.0/assets/media_gallery/index.html?mediaGalleryStaticBaseUrl=http://static.wix.com/services/media-gallery-ng/0.116.0/", "", ""), "Global") } You may need to url encode some of the parameter values. Also when posting code put it in the code "<>" tags. Quote Link to post Share on other sites
Mart 0 Posted March 31, 2014 Author Report Share Posted March 31, 2014 Yeah the upload comes before the script above and that is where I scrape all the variables to put into the post Quote Link to post Share on other sites
the_way 52 Posted April 3, 2014 Report Share Posted April 3, 2014 Where does your error message that you first posted show up? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.