-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: "Action 'package_metadata_show' not found" #1
Comments
@kartikbha thanks for letting us know about this.
I'll update this issue when we've open sourced our implementation of |
After changing action to package_show. I got below error. 2018-01-20 00:16:16,930 INFO [ckanext.datagovsg_s3_resources.upload] Starting upload_resource_to_s3 for resource Control Sheet.pdf File '/usr/lib/ckan/default/lib/python2.7/site-packages/pylons/controllers/core.py', line 60 in _perform_call |
Can you describe the exact steps you're doing to reproduce this? Is it only for a specific resource/package or for all resources? Also, if you can copy paste the output of |
Getting error at
Initialize metadata
metadata = toolkit.get_action('package_metadata_show')(data_dict={'id': pkg['id']})
File '/opt/ckan/ckanext/ckanext-s3-resources/ckanext/datagovsg_s3_resources/plugin.py', line 107 in after_create
self.after_create_or_update(context, resource)
File '/opt/ckan/ckanext/ckanext-s3-resources/ckanext/datagovsg_s3_resources/plugin.py', line 92 in after_create_or_update
upload.upload_resource_zipfile_to_s3(context, resource)
File '/opt/ckan/ckanext/ckanext-s3-resources/ckanext/datagovsg_s3_resources/upload.py', line 173 in upload_resource_zipfile_to_s3
'package_metadata_show')(data_dict={'id': pkg['id']})
File '/usr/lib/ckan/default/src/ckan/ckan/logic/init.py', line 377 in get_action
raise KeyError("Action '%s' not found" % action)
KeyError: "Action 'package_metadata_show' not found"
The text was updated successfully, but these errors were encountered: