[ckan-dev] Trouble setting up email notifications
Justin Lewis
jlewis at drcog.org
Wed Mar 12 16:33:39 UTC 2014
Hi,
I'm trying to get e-mail notifications setup for a local CKAN instance and having some trouble.
While trying to run the '/api/action/send_email_notifications' request through the terminal I get errors like this "Bad request - JSON Error: No request body data". I have tried:
1. sending as simple http request through a browser
2. sending as a curl request - 'curl http://geodataportaldev/api/action/send_email_notifications -H "Authorization:my-api-key"'
3. sending as a paster request as outlined in the docs - echo '{}' | /usr/lib/ckan/default/bin/paster --plugin=ckan post -c /etc/ckan/default/production.ini /api/action/send_email_notifications
a. ensuring that the paths are correct to production.ini in the paster request
4. adding authorization (api_key) to all variations of the request
5. ensured email notifications where enabled and sending to a valid email
6. ensured there where recent changes to data that would trigger an email
I'm unsure where to go from here. If anyone has a working example of a request this could be helpful to make sure that I am getting the syntax correct. Otherwise I am seeing little useful info in regards to log errors.
Thank You,
Justin Lewis | Software Developer | Administration and Finance
Direct 303-480-6750 | Fax 303-480-6790 | jlewis at drcog.org
[cid:image001.gif at 01CF3DDC.4D9A21C0]<http://www.drcog.org/>
[cid:image002.png at 01CF3DDC.4D9A21C0]<http://www.denverregionalequityatlas.org/>
Check out the new interactive Regional Equity Atlas<http://denverregionalequityatlas.org/>: Mapping
opportunity on a regional scale from a local perspective.
[cid:image003.png at 01CF3DDC.4D9A21C0]<http://www.facebook.com/Denver.Regional.Council.of.Governments> [cid:image004.png at 01CF3DDC.4D9A21C0] <https://twitter.com/DRCOGorg> [cid:image005.png at 01CF3DDC.4D9A21C0] <http://www.linkedin.com/company/denver-regional-council-of-governments?trk=cp_followed_name_denver-regional-council-of-governments>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140312/8ad08eb4/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 8239 bytes
Desc: image001.gif
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140312/8ad08eb4/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 7178 bytes
Desc: image002.png
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140312/8ad08eb4/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 2696 bytes
Desc: image003.png
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140312/8ad08eb4/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1830 bytes
Desc: image004.png
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140312/8ad08eb4/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 2770 bytes
Desc: image005.png
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140312/8ad08eb4/attachment-0011.png>
More information about the ckan-dev
mailing list