Closed m29h closed 1 year ago
calling unsubscribe in RecordService leads to an AttributeError in https://github.com/vaphes/pocketbase/blob/82a5b3905a568937d123b7ef307194aa135eee57/pocketbase/services/record_service.py#L88
unsubscribe
Because the RealtimeService does not implement a method subscribe_by_prefix. This seems to be a typo as it should instead call unsubscribe_by_prefix.
subscribe_by_prefix
unsubscribe_by_prefix
However fixing this locally gives me a followup error in https://github.com/vaphes/pocketbase/blob/82a5b3905a568937d123b7ef307194aa135eee57/pocketbase/services/realtime_service.py#L80 because the pop(sub) changes the dictionary within the loop which leads to a RuntimeError: dictionary changed size during iteration
pop(sub)
RuntimeError: dictionary changed size during iteration
calling
unsubscribe
in RecordService leads to an AttributeError in https://github.com/vaphes/pocketbase/blob/82a5b3905a568937d123b7ef307194aa135eee57/pocketbase/services/record_service.py#L88Because the RealtimeService does not implement a method
subscribe_by_prefix
. This seems to be a typo as it should instead callunsubscribe_by_prefix
.However fixing this locally gives me a followup error in https://github.com/vaphes/pocketbase/blob/82a5b3905a568937d123b7ef307194aa135eee57/pocketbase/services/realtime_service.py#L80 because the
pop(sub)
changes the dictionary within the loop which leads to aRuntimeError: dictionary changed size during iteration