Closed patudom closed 1 month ago
I just tried making the suggested stage 4 changes locally, and I'm still stuck in an infinite loop.
@johnarban figured out that brand new students are not being added to classes, which we're guessing is contributing to these issues. @Carifio24 or @nmearl, can one of you please investigate this?
Terminal errors we are getting are:
[2024-09-23 16:46:50][ INFO][ STAGE 4]:Loading class data
INFO:STAGE 4:Loading class data
ERROR: 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/Users/Pat/anaconda3/envs/common-solara/lib/python3.11/site-packages/solara/tasks.py", line 259, in runner
self._last_value = value = await self.function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Pat/Documents/GitHub/hubbleds/src/hubbleds/pages/04-explore-data/__init__.py", line 32, in load_class_data
class_measurements = LOCAL_API.get_class_measurements(GLOBAL_STATE, LOCAL_STATE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Pat/Documents/GitHub/hubbleds/src/hubbleds/remote.py", line 293, in get_class_measurements
f"{global_state.value.student.id}/{global_state.value.classroom.class_info['id']}"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
TypeError: 'NoneType' object is not subscriptable
ERROR:solara.task:'NoneType' object is not subscriptable
Okay, it sounds like this might be a server-side issue. I'll investigate whether that's the case.
Thank you, @Carifio24! https://github.com/cosmicds/cosmicds/pull/337 is fixing this issue for me, so I will close it.
I first noticed this on #608, but it turns out it was a general issue on main.
From @nmearl: "My immediate suggestion is to check load_class_data.finished instead of load_class_data.value on line 136. This stops the infinite refresh for me."
What I did and observed:
demo2024
tre_dat1
, no viewer appears.Originally posted by @patudom in https://github.com/cosmicds/hubbleds/issues/608#issuecomment-2359187105