Gradio
Gradio copied to clipboard
Handle server errors
Basically gradio started with 'Your library is empty'. Then i reinstalled gradio and bumped to version 7.1. Same thing happened, eternal 'Library fetching station data' .
So.
I tried to check what is happening to the library cfg file, but i couldn't find it in $HOME. Which is not surprising considering it's a flatpak? I dunno.
Oh, also, i have this on the /etc/hosts file because my isp is truly a piece of shit: 37.120.178.42 radio-browser.info 37.120.178.42 www.radio-browser.info
Dunno if that changed.
Expected Behavior
Probably unattended (?) upgrades shouldn't break users lists, and/or the connection to the server should indicate after a few seconds it's gone and what's the 'current' server ip or something like that. Even if only on the options.
Current Behavior
Looks broken.
Steps to Reproduce
No idea
Detailed Description
No idea
Oh, i guess this is from the server being down.
http://downforeveryoneorjustme.com/www.radio-browser.info
Same dysfonction.
Console output :
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
(gradio:3): Json-CRITICAL **: json_node_get_array: assertion 'JSON_NODE_IS_VALID (node)' failed
(gradio:3): Json-CRITICAL **: json_array_get_length: assertion 'array != NULL' failed
(gradio:3): Json-CRITICAL **: json_parser_load_from_data: assertion 'data != NULL' failed
(gradio:3): Json-CRITICAL **: json_node_get_array: assertion 'JSON_NODE_IS_VALID (node)' failed
(gradio:3): Json-CRITICAL **: json_array_get_length: assertion 'array != NULL' failed ** Message: gradio-station-provider.vala:60: Search results found: 0
(gradio:3): Json-CRITICAL **: json_parser_load_from_data: assertion 'data != NULL' failed
(gradio:3): Json-CRITICAL **: json_node_get_array: assertion 'JSON_NODE_IS_VALID (node)' failed
(gradio:3): Json-CRITICAL **: json_array_get_length: assertion 'array != NULL' failed ** Message: gradio-station-provider.vala:60: Search results found: 0
(gradio:3): Json-CRITICAL **: json_parser_load_from_data: assertion 'data != NULL' failed
(gradio:3): Json-CRITICAL **: json_node_get_array: assertion 'JSON_NODE_IS_VALID (node)' failed
(gradio:3): Json-CRITICAL **: json_array_get_length: assertion 'array != NULL' failed ** Message: gradio-station-provider.vala:60: Search results found: 0
(gradio:3): Json-CRITICAL **: json_parser_load_from_data: assertion 'data != NULL' failed
(gradio:3): Json-CRITICAL **: json_node_get_array: assertion 'JSON_NODE_IS_VALID (node)' failed
(gradio:3): Json-CRITICAL **: json_array_get_length: assertion 'array != NULL' failed ** Message: gradio-station-provider.vala:60: Search results found: 0
(gradio:3): Json-CRITICAL **: json_parser_load_from_data: assertion 'data != NULL' failed
(gradio:3): Json-CRITICAL **: json_node_get_array: assertion 'JSON_NODE_IS_VALID (node)' failed
(gradio:3): Json-CRITICAL **: json_array_get_length: assertion 'array != NULL' failed ** Message: gradio-station-provider.vala:60: Search results found: 0
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
(gradio:3): Json-CRITICAL **: json_node_get_array: assertion 'JSON_NODE_IS_VALID (node)' failed
(gradio:3): Json-CRITICAL **: json_array_get_length: assertion 'array != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
(gradio:3): Json-CRITICAL **: json_node_get_array: assertion 'JSON_NODE_IS_VALID (node)' failed
(gradio:3): Json-CRITICAL **: json_array_get_length: assertion 'array != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
(gradio:3): Json-CRITICAL **: json_node_get_array: assertion 'JSON_NODE_IS_VALID (node)' failed
(gradio:3): Json-CRITICAL **: json_array_get_length: assertion 'array != NULL' failed ** Message: gradio-category-items.vala:97: Loaded all category items.
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
** (gradio:3): CRITICAL **: gradio_station_model_add_item: assertion 'item != NULL' failed
The server is up again, but the added stations didn't return (but the last used still started).
edit: nvm, they just took their sweet time reappearing.
Works fine now. Perhaps software enhancement to handle server error ? In any event, thank for developers for their work.
this error appears if at the time of starting gradio, it cannot connect to online database. it clears itself if you close gradio and reopen it later when you have connectivity to the online database.
but, it is alarming at first because it gives the user the perception that they lost all their favorites! the app should load from local cache no matter what has happened to the online database - what if the online database suddenly goes permanently offline? do I lose all my favorites carefully selected over the years?
this should be a high priority bug!