[ckan-dev] problems with api authentication
Sasha Cuerda
scuerda at ctdata.org
Mon Aug 8 21:17:34 UTC 2016
I'm working on updating some datasets and am running in to persistent
authentication issues.
{
"message": "Access denied: <function resource_update at 0x7efead4c4848>
requires an authenticated user",
"__type": "Authorization Error"
}
I am the primary sysadmin, but I did not create the datasets in question.
I've tried via curl:
curl -H 'Authorization:<API-KEY>' 'http://ckan/api/action/resource_update'
--form upload=file.csv --form id=<RESOURCE-ID>
and via requests:
r = requests.post('http://ckan/api/action/resource_update',
data={"id":"<RESOURCE-ID>"},
headers={"X-CKAN-API-Key": "<API-KEY"},
files=[('upload', file('file.csv'))])
and via R using a similar call....
I've done this hundreds of times before and yet...persistent 403 errors.
Help would be appreciated.
Thanks,
Sasha
--
CT Data Collaborative, Director of Technology
805 Brook St Building 4
Rocky Hill, CT 06067
M: (860) 385-4860
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160808/b8111ad0/attachment-0002.html>
More information about the ckan-dev
mailing list