fiftyone
fiftyone copied to clipboard
[BUG] SyntaxError: Unexpected token 'U', "Unsupporte"... is not valid JSON
Instructions
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)
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
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)
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.
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.
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
I am trying to reproduce yet. Still investigating.
For any upgrade/downgrade issues when using the App, I always recommend clearing the browser cache.
Surprisingly, the home page loaded after some idle time. It's working now for me :).
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)
Thanks I'll try clearing cache if it happens again. (I've tried with ctrl + shift + R, it didn't work)
For me clearing the cache didnt help. Tested Firefox and Chrome.
@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
Not sure exactly what you need. I'll just guess.
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"
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
It seems like Im having a similar problem
console:
change to version 0.15.1 works for me
old issue. please reopen a new one if this is a problem in the lates FO version