-
Notifications
You must be signed in to change notification settings - Fork 402
Open
Labels
Description
Bug description
The CKAN dataset share url copied from the landing page of Binder will fail to open with 'invalid build token' error.
It looks like the trailing slash in the URL remains after commit 424f831. This might be the cause of the error.
However, removing the trailing slash leads to 'invalid build token' errors for other providers (e.g., Zenodo DOI) in my tests.
How to reproduce
- Go to mybinder.org
- Select the
CKAN datasetprovider - Input a URL for a CKAN dataset, e.g., https://demo.ckan.org/dataset/my-sample-dataset-001
- Copy the share URL generated in the field below
- Open the copied URL in the browser
Expected behaviour
The building process should start.
Actual behaviour
The 'invalid build token' error is shown:
Your personal set up
- OS: macOS 15.7.4
- Version(s): latest mybinder.org
Logs
I have used testing/local-binder-k8s-hub/binderhub_config.py to deploy and debug the error:
[E 260316 08:26:27 base:85] Failure to validate build token for ckan/https%3A%2F%2Fdemo.ckan.org%2Fdataset%2Fmy-sample-dataset-001: Audience doesn't match
[W 260316 08:26:27 web:1943] 403 GET /build/ckan/https%3A%2F%2Fdemo.ckan.org%2Fdataset%2Fmy-sample-dataset-001?build_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NzM2NDk4ODcsImF1ZCI6ImNrYW4vaHR0cHMlM0ElMkYlMkZkZW1vLmNrYW4ub3JnJTJGZGF0YXNldCUyRm15LXNhbXBsZS1kYXRhc2V0LTAwMS8iLCJvcmlnaW4iOiIxOTIuMTY4LjU2LjEzOjg1ODUifQ.ihqXXo-NQW6WoG1p4Etkbqlo0j3RrOvstxrkykQ17Ps (192.168.121.102): Invalid build tokenReactions are currently unavailable