abhishekkrthakur / colabcode

Run VSCode (codeserver) on Google Colab or Kaggle Notebooks
MIT License
2.07k stars 276 forks source link

Getting Too many connections error on running #23

Closed aryamansriram closed 4 years ago

aryamansriram commented 4 years ago

Hi, I am encountering the following error when I try to run colabcode

` Too many connections! The tunnel session 'ts_1haqep9AXrK0M55zyQFF0HgWbVH' has violated the rate-limit policy of 20 connections per minute by initiating 36 connections in the last 60 seconds. Please decrease your inbound connection volume or upgrade to a paid plan for additional capacity.

The error encountered was: ERR_NGROK_702 ` Kindly suggest how to resolve it.

Skander-hadjromdhan commented 4 years ago

This error is due to NGROK and as this was made using the free version. You may have this issue if you reload Code-Server (The VSCode Web IDE). You can wait (a little) and refresh. This resolves the error. Here is a StackOverflow post about the same error: https://stackoverflow.com/questions/40939587/ngrok-err-ngrok-702-too-many-connections.

I found a solution to your problem. So, I loaded Code-Server locally and found out that the first load uses a lot of requests (34 and in the free version of ngrock you can only do 20 connections per minute). So you may wait for 1 minute or two after you open your VSCode and then use it as you want.

aryamansriram commented 4 years ago

Thanks for that, closing the issue as it worked for me

TanayKarve commented 4 years ago

Fixed in #29 Please merge