dbca-wa / ckan-o-sweave

Collaborative, data-driven, reproducible reporting with content from CKAN
Other
3 stars 2 forks source link

Bad Gateway error when using template #1

Open JKurps opened 8 years ago

JKurps commented 8 years ago

When I try to compile the PDF from the template report01.Rnw, I get a "Bad Gateway (HTTP 502)" error. I suspect it's because of "http://catalogue.alpha.data.wa.gov.au" being a bad gateway. What can I do to solve this? Thanks on forehand.

florianm commented 8 years ago

Sorry, the server got taken down. I'll replace catalogue.alpha with another domain soon.

Feel free to use any other ckan instance, e.g. catalogue.beta.data.wa.gov.au (and a corresponding existing resource ID for a PDF, PNG etc) in the mean time in secret.R at https://github.com/datawagovau/ckan-o-sweave/blob/master/scripts/ckan_secret_template.R!

JKurps commented 8 years ago

Thanks for the fast reply and the suggestions. I'll tried it and it resulted in an HTTP 404 error.

florianm commented 8 years ago

@JKurps did you also set the default_resource_id to the ID of a resource that exists on your chosen CKAN instance? The default resource ID only exists on the (now defunct) catalogue.alpha instance.

Also you'll have to make sure every occurrence of ckan_res() (e.g. here) points to an existing resource ID on the configured CKAN instance.

JKurps commented 8 years ago

@florianm I did change the default_resource_id last time, but not all occurrences of ckan_res(). So, i tried it again with the changes and I think i'm getting closer. Thanks a lot for your fast and frequent feedback.