ckan / ckan/ckanext-xloader

CKAN bad response. Status code: 404 Not Found.

Open
#55 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
58
Forks
67
Avg merge
23h 3m
Merged PRs (30d)
8

Description

I just installer ckanext-exloader, in replacement to datapusher. When I tried to push resources to datastore, i got the following error message: CKAN bad response. Status code: 404 Not Found. At: http://localhost:8080/api/3/action/resource_show. status=404.

I would add that my ckan.site_url is set to http://localhost:8080 and I also have a ckan.root_path set to /ckan/.

I was expecting the datapusher to try its thing at http://localhost:8080/ckan/api/3/action/ but it seems as if it is not taking this into consideration.

What can I do?

**Edit**
Seems as if updating **[...]/ckanext-xloader/ckanext/xloader/action.py** L72/L73 to
`site_url = config['ckan.site_url'] + config['ckan.root_path']` instead of just `site_url = config['ckan.site_url']` does the trick.

Could it be possible to integrate the rooth_path in upcoming realeases in a cleaner way?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in ckanext-xloader/ckanext/xloader/action.py at lines 72-73 and inspect how ckan.site_url and ckan.root_path are used when calling the resource_show endpoint. Reproduce the request with the stated configuration and verify that the completed URL includes /ckan/ and reaches /api/3/action/resource_show without a 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.