Closed berghaus closed 1 year ago
Thanks for submitting your first pull request! You are awesome! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
You can just set the default to
""
in
Unfortunately, that won't address the issue. The error is raised because an unset configuration value is retrieved, not the BinderHub parameter that the configuration value is meant to set:
I proved this to myself like so:
# Sample configurable:
from traitlets.config.configurable import Configurable
from traitlets.config import get_config
from traitlets import Int, Unicode
from urllib.parse import urlparse
class MyClass(Configurable):
name = Unicode(config=True)
number = Int(config=True)
# Create a configuration
c = get_config()
c.MyClass.number = 10
try:
urlparse(c.MyClass.name)
except AttributeError:
print("using config item produced error")
# construct class instance:
m = MyClass()
try:
urlparse(m.name)
except AttributeError:
print("using instane property produced error")
print("test done")
which produces:
using config item produced error
test done
Congrats on your first merged pull request in this project! :tada: Thank you for contributing, we are very proud of you! :heart:
This PR follows the discussion in discourse post 18215.
Problem: the configuration of BinderHub fails if hub_url is not set.
Solution: set a default value for the
hub_url
in the helm chart. Check thathub_url
is set before use.I tested the helm chart (as per the documentation), but am unsure how to test the change to
binderhub_config.py
properly.