question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MyBinder incorrectly parse links from URL mybinder.org/v2/git/

See original GitHub issue

Hello! I have several repositories running on my own GitLab server on Azure. All MyBinder links recently stopped working. For example the link (to reproduce, try random repo from GitLab.com or your own git: https://mybinder.org/v2/git/https%3A%2F%2Fgitlab.com%2FG5Fr3%2Fanalog-clock/master It immediately starts with error:

Error resolving ref for git:https:/gitlab.com/G5Fr3/analog-clock/master: 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. image

When I add an extra %2F, it works perfectly and launches Binder. https://mybinder.org/v2/git/https%3A%2F%2F%2Fgitlab.com%2FG5Fr3%2Fanalog-clock/master

All my links used to work in past, but today all of them throw the same error.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
bitnikcommented, Mar 26, 2020

@betatim thanks a lot for all the debug information, it made things much easier to find out the problem. I think it is solved now, https://gesis.mybinder.org/build/git/https%3A%2F%2Fgitlab.com%2FG5Fr3%2Fanalog-clock/master works for me.

The problem was that in our nginx configuration proxy_pass is specified with URI:

    location /build/ {
        proxy_pass http://gesisbinder/binder/build/;

and proxy_pass normalizes (decodes) the URI (see documentation) and this was the issue, because launch urls have encoded parts for git or gitlab repo providers.

Using $request_uri in proxy_pass solved the issue

    location /build/ {
        proxy_pass http://gesisbinder/binder$request_uri;
1reaction
jjurcommented, Mar 28, 2020

I have checked the links and all seems to work again. Thank you fast response and fixing the bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
For example the link (to reproduce, try random repo from GitLab.com ... MyBinder incorrectly parse links from URL mybinder.org/v2/git/ #191.
Read more >
Crosstalk and "Fano lineshapes" in microwave resonator ...
Go to https://mybinder.org, feed your git repository URL to binder. Share a link to it. Here's how I did it for example: binder...
Read more >
Page 191 – Trying to find useful things to do with emerging ...
One of the neat things about Binderhub / MyBinder is that can pass a git-pull? argument through as part of a MyBinder launch...
Read more >
Do you know which mybinder.org link to use to share a binder?
I want to share my binder with someone, which link should I send them by email/twitter/etc? It turns out there are many different...
Read more >
View source for Download - ProB Documentation
You can view and copy the source of this page. == Latest Release == Below are links for downloading the latest stable release...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found