API Template ZipFileURL broken

When I provide a parameter for ZipFileURL, the Campaign Monitor server is requesting HtmlPageURL instead. See the logs below. Anyone have any ideas? Anyone else able to use the ZipFileURL parameter? I submitted a tech support ticket, but it has already been 2 days with no response.

Here's the client-side log:

20:04:46 - CS_REST_Templates: Creating wrapper for https://api.createsend.com/api/v3/
20:04:46 - CS_REST_Templates: Using cURL for transport
20:04:46 - CS_REST_SERIALISATION_get_available: Getting serialiser
20:04:46 - CS_REST_Templates: Using native json serialising
20:04:46 - CS_REST_Templates: Making POST call to: https://api.createsend.com/api/v3/templates/********************************.json
20:04:46 - CS_REST_Templates: Call Options: Array ( [credentials] => ********************************:nopass [userAgent] => CS_REST_Wrapper v1.0.13 PHPv5.3.8 over cURL with native [contentType] => application/json; charset=utf-8 [deserialise] => 1 [host] => api.createsend.com [protocol] => https [route] => https://api.createsend.com/api/v3/templates/********************************.json [method] => POST [data] => {"Name":"Test","HtmlPageURL":"https:\/\/dev1.staging.******.com\/getEmailTemplate.php?id=19","ZipFileURL":"https:\/\/dev1.staging.******.com\/getEmailTemplateZipFile.php?id=19"} ) 
20:04:46 - CS_REST_CurlTransport: curl+zlib support available. Requesting gzipped response.
20:04:47 - CS_REST_CurlTransport: API Call Info for POST https://api.createsend.com/api/v3/templates/********************************.json: 0 bytes uploaded. 46 bytes downloaded Total time (seconds): 1.324062
20:04:47 - CS_REST_Templates: Call result:
array (
'code' => 400,
'response' => '{"Code":4006,"Message":"Invalid ZIP File URL"}',

And here's the staging Apache access log:

[root@staging html]# grep /var/log/httpd/ssl_access_log - - [03/Apr/2012:23:04:47 -0400] "GET /getEmailTemplate.php?id=19 HTTP/1.1" 200 68 - - [03/Apr/2012:23:04:47 -0400] "GET /getEmailTemplate.php?id=19 HTTP/1.1" 200 68

The 2nd call to getEmailTemplate.php should in fact be getEmailTemplateZipFile.php as evident by the POST data above.

roshodgekiss roshodgekiss, 5 years ago

Hi geofflee, I can't seem to find a ticket from you - could you kindly resend to support [at] campaignmonitor.com? We usually respond very quickly, so I'm very sorry that your message didn't get through in this instance. As soon as we hear from you, we'll get our devs to take a look at why this parameter isn't working.

Apologies from my end for getting to this so late - both Friday and Monday were public holidays in Australia, so we haven't been quite as vigilant with the forums as is usual.

Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
geofflee, 5 years ago

Hi, this issue has been resolved. Turns-out that the Campaign Monitor server was rejecting our staging server's self-signed SSL certificate. Thank you.

roshodgekiss roshodgekiss, 5 years ago

Thanks for the follow up, geofflee - much appreciated!

Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free