Skip to content
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

Launching Binder from jupyterbook via gitlab repo causes error, URL not read correctly #2025

Open
merrygin opened this issue May 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@merrygin
Copy link

Describe the bug

context
I am trying to start binder from a jupyterbook, having provided the url in the config.yml, but binder doesn’t recognize the repo this way - it displays the colon (and only the colon) encoded so I suspect there might be some issue with that? Curiously, if I manually start a binder from repo directly via mybinder.org everything works just fine.

The repo url is: https://gitlab.gwdg.de/jmschmitz/abm-compendium-jupyterbook

Maybe the problem lies with the gitlab instance the repo is hosted on. When I pass a github repo in the config.yml, the binder integration also works fine. So only the gitlab url is read/passed on incorrectly.

See error log below.

expectation
Start binder from jupyterbook with url given in config.yml, binder reads the url exactly as given in config, finds repo, launches binder

bug
Start binder from jupyterbook with exact url given in config.yml, binder reads the url but with "%3A" instead of ":", fails to find repo, throws error

Error log from mybinder.org reads as follows:

Error resolving ref for git:https%3A//gitlab.gwdg.de/jmschmitz/abm-compendium-jupyterbook/main: Unable to run git ls-remote to get the resolved_ref: ssh: Could not resolve hostname https: Name or service not known fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

problem
This is a problem for people using gitlab (if that is the source of the problem) wanting to host built jupyterbooks on their website which users can directly interact with, without needing to download/build the book themselves.
This is how it looks like for the users of our website: https://modelsen.mpiwg-berlin.mpg.de/jupyterbooks/book/abmintro/
Bildschirmfoto 2023-05-30 um 13 17 31

Reproduce the bug

  1. Use this repo and build the jupyterbook
  2. Go to chapter "Mesatutorial", subchapter "Introduction to mesa"
  3. Click rocket symbol/"binder" to launch binder instance of the repo
  4. See error

List your environment

OS: MacOS

Version(s): 11.6.1
@merrygin merrygin added the bug Something isn't working label May 31, 2023
@welcome
Copy link

welcome bot commented May 31, 2023

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant