-
Notifications
You must be signed in to change notification settings - Fork 50
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
Error when executing jobs: Cannot decode JWT token: Not enough segments #158
Comments
I encountered this and fixed it by adding First, there should be some check on start that a proper token was provided Second, my my case (running with the current CKAN master) xloader didn't error out, it downloaded the login page HTML and xloadered it. |
@pdekraker-epa I too ran into this error. However, setting ckanext.xloader.api_token gives me a python EOL error, I guess because of a long api_token text that can't be read at once ? Did you get this error ?? and the solution?? |
This isn't the only extension that will need such a token; archiver, qa, harvest, validation, etc, will all need something similar. Should there be a more generic key name, something like |
I am currently facing similar issues did you ever get this resolved? |
We're running this without problems, but instead of putting the token directly in the file, we're injecting it with ckanext-ssm-config, so you might be seeing a file parsing problem? Are there any special characters in your token? |
CKAN version:
master
How to reproduce:
ckan xloader submit <dataset-name>
Errors
CKAN will fail with:
xloader will fail with (even when it says Not Found, in the backend is a Not Authorized):
More Info:
This error is related to the fact that
ckanext-xloader
tries to use thesite_user
API Key to download the resource when it has been removed from CKAN core.The text was updated successfully, but these errors were encountered: