voxel51 / fiftyone

Refine high-quality datasets and visual AI models
https://fiftyone.ai
Apache License 2.0
8.92k stars 567 forks source link

[BUG] Got 403 error when running FiftyOne on Google Colaboratory #3644

Open ninjabaobab opened 1 year ago

ninjabaobab commented 1 year ago

System information

Commands to reproduce

I ran https://colab.research.google.com/github/voxel51/fiftyone-examples/blob/master/examples/quickstart.ipynb, essentially

import fiftyone as fo
import fiftyone.zoo as foz

dataset = foz.load_zoo_dataset("quickstart")
session = fo.launch_app(dataset)

Describe the problem

I expected to see FiftyOne UI in the output cell of the above command but got a 403 error instead.

Code to reproduce issue

https://colab.research.google.com/drive/1uxpHtQtaStdknwEYmquhb8MEMb3klKWf?usp=sharing

Other info/logs

The code worked as expected yesterday and started to see 403 today. I suspected a v0.22.1 regression and tested v0.22.0. The issue still remained.

What areas of FiftyOne does this bug affect?

Willingness to contribute

The FiftyOne Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the FiftyOne codebase?

benjaminpkane commented 1 year ago

Hi @ninjabaobab. It looks like there has been a regression in Chrome. Tensorboard is also facing this issue (https://github.com/googlecolab/colabtools/issues/3990). I can recommend Firefox in the meantime.

Or, if you access the session.url property, you can use that to open the App in a separate tab. Also note, ?polling=true should be added to the URL, e.g.

https://LONG_ID-5151-colab.googleusercontent.com/?polling=true
ninjabaobab commented 1 year ago

Thank you very much for quick response. session.url + '?polling=true' works for me.