ckan / ckanext-qa

CKAN QA Extension
MIT License
26 stars 52 forks source link

paster qa update fails with ckanapi error on datasets without resources #25

Open florianm opened 8 years ago

florianm commented 8 years ago
(datacats)me@IP:/mnt/projects/datacats/private/ckanext-qa⟫ datacats paster qa update
2015-11-17 04:10:07,343 ERROR [ckanext.qa] Failed to get package list with resources from url 'http://internal-data.dpaw.wa.gov.au/api/action/current_package_list_with_resources': Forbidden
Traceback (most recent call last):
  File "/usr/lib/ckan/bin/paster", line 9, in <module>
    load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
  File "/usr/lib/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/usr/lib/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
  File "/project/ckanext-qa/ckanext/qa/commands.py", line 73, in command
    for package in self._package_list():
  File "/project/ckanext-qa/ckanext/qa/commands.py", line 141, in _package_list
    raise CkanApiError(err)
ckanext.qa.commands.CkanApiError: Failed to get package list with resources from url 'http://internal-data.dpaw.wa.gov.au/api/action/current_package_list_with_resources': Forbidden
davidread commented 8 years ago

BTW https://github.com/ckan/ckanext-qa/pull/24 is about to be merged which may affect this.

KrzysztofMadejski commented 7 years ago

@florianm this should be resolved by now. could you check? Can you write a test for it?

florianm commented 7 years ago

@KrzysztofMadejski thanks, can try but will take a few days!