fiftyone icon indicating copy to clipboard operation
fiftyone copied to clipboard

[BUG] SyntaxError: Unexpected token 'U', "Unsupporte"... is not valid JSON

Open flystarhe opened this issue 2 years ago • 16 comments

Instructions

image

System information

  • Win11:
  • FiftyOne installed from pip:
  • FiftyOne v0.16.6, Voxel51, Inc.:
  • Python 3.9.12:

Commands to reproduce

session = fo.launch_app(dataset)

flystarhe avatar Sep 06 '22 14:09 flystarhe

I also get a Syntax Error without an error msg, both in Jupyter Notebook and in Firefox on

  • Ubuntu 20.04
  • pip
  • v0.16.6
  • python 3.9.5

KuenstlicheIntelligenz avatar Sep 07 '22 08:09 KuenstlicheIntelligenz

Are you upgrading from an older version of FiftyOne? Can you try uninstalling first and then reinstalling?

pip uninstall fiftyone fiftyone-brain fiftyone-db
pip install --upgrade fiftyone

Alternatively, can you try creating a fresh virtual environment?

I'm unable to reproduce this from a fresh virtual environment, eg:

conda create -n tmp python=3.9
conda activate tmp
pip install --upgrade fiftyone ipython
ipython
import fiftyone as fo
import fiftyone.zoo as foz

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

brimoor avatar Sep 07 '22 14:09 brimoor

Ive upgraded, yes. Reinstalling didnt help. (ive just executed your code)

Fresh environment worked. A little bit unsatisfying, because if i install my old env again, it could be the same? But at least for now this solves my problem.

KuenstlicheIntelligenz avatar Sep 07 '22 15:09 KuenstlicheIntelligenz

Unfortunately i dont know from which version i upgraded. I tried a few other minor versions e.g. 0.16.1 but they all had the same error.

0.15.1 is just stuck in "Pixelating" so is 0.14.4.

KuenstlicheIntelligenz avatar Sep 07 '22 15:09 KuenstlicheIntelligenz

hi there, also stuck at pixelating after starting up the app: fiftyone app launch. No logs in a terminal.

system info:

  • MacOS Monterrey (M1 chip)
  • fiftyone=0.16.6 (pip installed)
  • python=3.10.4

Rusteam avatar Sep 12 '22 15:09 Rusteam

I am trying to reproduce yet. Still investigating.

For any upgrade/downgrade issues when using the App, I always recommend clearing the browser cache.

benjaminpkane avatar Sep 12 '22 16:09 benjaminpkane

Surprisingly, the home page loaded after some idle time. It's working now for me :).

Rusteam avatar Sep 12 '22 17:09 Rusteam

If you encounter this again, I think the solution may just be to do a hard reload (Ctrl + Shift + R in Chrome, for example), or just to be extra safe, an "Empty Cache and Hard Reload" (in Chrome: open dev tools and then right-click the refresh icon)

download

brimoor avatar Sep 12 '22 19:09 brimoor

Thanks I'll try clearing cache if it happens again. (I've tried with ctrl + shift + R, it didn't work)

Rusteam avatar Sep 13 '22 07:09 Rusteam

For me clearing the cache didnt help. Tested Firefox and Chrome.

KuenstlicheIntelligenz avatar Sep 13 '22 20:09 KuenstlicheIntelligenz

@KuenstlicheIntelligenz It looks like this error is coming from a network request. If you can share the response data from the network tab in dev tools, I can probably find the issue.

benjaminpkane avatar Sep 13 '22 20:09 benjaminpkane

@benjaminpkane

Not sure exactly what you need. I'll just guess. network_fiftyone headers payload unsup_media

KuenstlicheIntelligenz avatar Sep 14 '22 09:09 KuenstlicheIntelligenz

Perfect, thanks. The server is returning a 415 from /graphql, which I haven't seen before. It is odd because the request has the Content-Type header defined

Can you share your versions of hypercorn, starlette and strawberry-graphql?

pip list | grep "hypercorn"
pip list | grep "starlette"
pip list | grep "strawberry-graphql"

benjaminpkane avatar Sep 14 '22 15:09 benjaminpkane

Hey, sorry for the late reply, was ill...

hypercorn                      0.14.2
sse-starlette                  0.10.3
starlette                      0.16.0
strawberry-graphql             0.96.0

KuenstlicheIntelligenz avatar Sep 19 '22 07:09 KuenstlicheIntelligenz

It seems like Im having a similar problem

console: image

phuvinhnguyen avatar Oct 18 '22 11:10 phuvinhnguyen

change to version 0.15.1 works for me

phuvinhnguyen avatar Oct 18 '22 11:10 phuvinhnguyen

old issue. please reopen a new one if this is a problem in the lates FO version

swheaton avatar Oct 07 '23 14:10 swheaton