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 27.126.151.254 /var/log/httpd/ssl_access_log
27.126.151.254 - - [03/Apr/2012:23:04:47 -0400] "GET /getEmailTemplate.php?id=19 HTTP/1.1" 200 68
27.126.151.254 - - [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, 4 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, 4 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, 4 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

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098