InfuseAI / colab-xterm

Open a terminal in colab, including the free tier.
Apache License 2.0
359 stars 32 forks source link

the xterm launches into a "Google 403. That's an error" window #8

Open prikarsartam opened 1 year ago

prikarsartam commented 1 year ago

the minimal commands to invoke xterm gives errors as follows

image

gblpedia commented 1 year ago

Hi @prikarsartam

The error is not able to be produced in our demo colab at this point of time.

Do you mind trying it again to see if the error remains? If so, pls provide some detail, such as what other installed pip packages are.

Thanks

gblpedia commented 1 year ago

HI @prikarsartam

Certain ad-blocks extension could lead this kinda of error. You may try it again after disabling extensions. Here is the finding by other users.

fenopa commented 1 year ago

I'm getting this error always, even with your demo colab. I tried with all extensions disabled including adblocker, still getting this error. I'm using Firefox.

fenopa commented 1 year ago

I'm getting this error always, even with your demo colab. I tried with all extensions disabled including adblocker, still getting this error. I'm using Firefox.

OK I found the issue, it doesn't work on Firefox's "Private Window" because Service Workers are disabled in Firefox Private Windows.

Also, third-party cookies should be enabled for it to work: https://research.google.com/colaboratory/faq.html#third-party-cookies

Dmitry1987 commented 1 year ago

In my case it was Bitdefender antivirus plugin in Chrome blocking cookies even after enabled in Chrome settings 😅 . Same in Brave, the shields and the BD shields were both blocking it until turned off. And then it worked

J4e6eR commented 11 months ago

@prikarsartam I have employed reasonable amount of time on this and encountered a way to make it work!! I hope this won't waste yours's time or anyone who encounters it from here on. The issue arises when we try to launch xterm with magic keyword. Instead we should try to load this with the help of a small python script. I guess this solves the issue.

# These 2 lines allow te start of ngrok asynchronously. If you want information regarding it do let me know

# from ngrok_ import async_tasks
# async_tasks()

# Installation of colabxterm by !pip install colab-xterm
from colabxterm import notebook

# This would start off a local server on VM which should be tunneled through ngrok to access it in your browser tab
notebook._xterm_magic('')

image

neeraj15022001 commented 11 months ago

Screenshot 2023-09-22 at 5 37 35 PM

receiving 403 when using colab-xterm

kirmola commented 8 months ago

I have tested and verified. Adblocker is indeed causing the issue, even there are only 2 tracking scripts. just disable adblocker and 403 would go away. I tested it and now is working. I am using brave browser btw.

kirmola commented 8 months ago

You may close the issue now