Skip to content

Fix when base_url is used in combination with a gateway client #1550

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

brianjball
Copy link

Fix for #1549 .

I am operating under the assumption that the preferred order of operations for the url paths should be:

  1. env var overrides by way of JUPYTER_GATEWAY_KERNELSPECS_ENDPOINT/JUPYTER_GATEWAY_KERNELS_ENDPOINT
  2. Use base_url to extend the paths when provided
  3. Use the default paths, e.g. /api/kernelspecs as a last resort

This was the only way I could figure out how to fix the issue. The challenge as I see it is the combination of the order of operations above and the widespread usage of gateway_client.GatewayClient throughout the project. If there is some other way that base_url can get contextualized into gateway_client (I am not an expert in the codebase), I think that would be preferable to the approach I ended up taking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant