colab-xterm icon indicating copy to clipboard operation
colab-xterm copied to clipboard

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

Open prikarsartam opened this issue 3 years ago • 9 comments

the minimal commands to invoke xterm gives errors as follows

image

prikarsartam avatar Oct 06 '22 08:10 prikarsartam

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 avatar Oct 07 '22 01:10 gblpedia

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.

gblpedia avatar Oct 07 '22 03:10 gblpedia

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 avatar Nov 30 '22 14:11 fenopa

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

fenopa avatar Dec 15 '22 21:12 fenopa

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

Dmitry1987 avatar Feb 19 '23 02:02 Dmitry1987

@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

J4e6eR avatar Sep 08 '23 09:09 J4e6eR

Screenshot 2023-09-22 at 5 37 35 PM

receiving 403 when using colab-xterm

neeraj15022001 avatar Sep 22 '23 12:09 neeraj15022001

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 avatar Dec 07 '23 12:12 kirmola

You may close the issue now

kirmola avatar Dec 07 '23 12:12 kirmola