Indico setup wizard error

Hello,

I’m getting the below error on a fresh new dev installation of indico on the following setup command - indico setup wizard --dev

I’m running python 3.9.9 in the virtual environment. I also get 129 vulnerability warnings on the npm ci command before running the indico setup wizard. npm audit fix does not fix the npm vulnerabilities warnings or the setup wizard error.

Error -

Indico needs to know the URL through which it is accessible. We strongly
recommend using an https:// URL and a subdomain, e.g.
https://indico.yourdomain.com                                                                           
Indico URL: http://127.0.0.1:8000                                                                       
Traceback (most recent call last):
  File "/home//dev/indico3.2/env/bin/indico", line 33, in <module>
    sys.exit(load_entry_point('indico', 'console_scripts', 'indico')())
  File "/home//dev/indico3.2/env/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home//dev/indico3.2/env/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home//dev/indico3.2/env/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home//dev/indico3.2/src/indico/cli/util.py", line 108, in invoke
    return self._impl.invoke(ctx)
  File "/home//dev/indico3.2/env/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home//dev/indico3.2/env/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home//dev/indico3.2/env/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home//dev/indico3.2/src/indico/cli/setup.py", line 313, in wizard
    SetupWizard().run(dev=dev)
  File "/home//dev/indico3.2/src/indico/cli/setup.py", line 347, in run
    self._prompt_indico_url(dev=dev)
  File "/home//dev/indico3.2/src/indico/cli/setup.py", line 442, in _prompt_indico_url
    url = _prompt('Indico URL', validate=_check_url, allow_invalid=True,
  File "/home//dev/indico3.2/src/indico/cli/setup.py", line 127, in _prompt
    if validate is None or validate(rv):
  File "/home//dev/indico3.2/src/indico/cli/setup.py", line 428, in _check_url
    elif data.fragment or data.query or data.auth:
AttributeError: 'SplitResult' object has no attribute 'auth'

I appreciate any help in fixing this issue. Thanks!

Ignore them. They are generally stuff like ReDoS in dev tools which are completely irrelevant since you could only slow down your own build and things like that.

Thanks for spotting this. I’ll fix it in master later or tomorrow.

I just pushed a fix to master. Please let me know if it works.

Thanks, the error is gone now