`Error in event stream: TypeError: Failed to fetch` when launching a binder

Hi all,

I’m trying to launch any repo in binder i have the following error:

Error in event stream: TypeError: Failed to fetch

I’ve done a bit of googling but couldn’t find a solution for this.

I’ve tried on another computer and it worked fine.

Things I’ve tried and didn’t work:

  • Check with various repos
  • change browser
  • clear cache
  • change internet network

Thanks for the help!

This is usually a temporary error, e.g. due to an overloaded server or networking problems. If you think it’s something in your repo, or if it doesn’t fix itself in a day, please share your repo and someone can check it.

1 Like

This issue has been occurring to me for a very long time (several weeks). I don’t believe this is something in this repo since I observed it in all the repositories I tested.

This is the link: Binder

That launched fine immediately on first try.

Have you tried different machines? On smartphone can be a good test in a pinch. Or a different browser.
Sometimes your browser can get in a cycle that isn’t connecting for some very obscure reason.

As I said in the post I tried a different device and it worked fine. I tried changing browser and it didn’t fix it.

Sorry. I had missed the one thing that did work in the original post.

Can you make another account on that same machine and try from there?
When you say, ‘change internet network’, was it just a different network in the same institution or completely different, such as home vs. work?

What do you mean exactly by another account?

I tried both: home vs work and different networks at work, nothing works. Colleagues (on the same network) have been able to run it on their computer so i suspect it’s really something going on with my machine just can’t find out what

Another user account on the machine, perhaps.

I’m not in the lab atm so can’t ask another user to log in for now. Putting this on hold for now

@fomightez I went back to my lab and we tried using an admin user account and we had the same issue unfortunately

I understand this is an issue with my machine but any pointers would be appreciated :slight_smile:

I don’t know what else to point out?
Your colleagues being able to run it on the same network really narrowed it down.
You tried a different browser, you said. No weird extensions that would effect both browsers?
You tried hardwired/ethernet if possible?

Just wanted to check if there were any other low hanging fruits to test out.

I’ll try ethernet.

And I guess my next step after this is wiping my pc and see if it fixes it :confused:

I made some progress and narrowed it down to… Windows Subsystem for Linux !

When running ipconfig I get:


Windows IP Configuration


Unknown adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Unknown adapter OpenVPN Data Channel Offload for NordVPN:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Unknown adapter Local Area Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Local Area Connection* 1:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Local Area Connection* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . : psfc.mit.edu
   IPv4 Address. . . . . . . . . . . : 172.25.34.120
   Subnet Mask . . . . . . . . . . . : 255.255.248.0
   Default Gateway . . . . . . . . . : 172.25.32.1

Ethernet adapter vEthernet (WSL (Hyper-V firewall)):

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::7130:9e5:9c3:bb9a%45
   IPv4 Address. . . . . . . . . . . : 172.30.176.1
   Subnet Mask . . . . . . . . . . . : 255.255.240.0
   Default Gateway . . . . . . . . . :

Which is maybe expected. I don’t know.

So I tried turning off WSL in Windows Features (uncheck this box):

Restarted the pc and then the binder launched correctly! :tada:

I tried turning it on again, and I had the initial issue again.

I don’t know if I messed up something in my WSL install by clearly has something to do with it.

My next step is to reinstall everything fresh and see if this works.

I don’t know if I would go that far if you are happy with the machine otherwise.

Can you maybe use Anaconda Cloud to do what you’d run from MyBinder?
Originally you said it was all repos not working? Is that still the case?