Expected str for dictionary value @ data['media_content_type']. Got None

Hi, today I realized that the media player I have on Lovelace gives me the error “expected str for dictionary value @ data [‘media_content_type’]. Got None” when I go back in the folder navigation.
The media player entity is the one configured with chromecast integration and until yesterday it has always worked very well without giving problems.
In practice, in the image below there are the folders with music and movies, if I browse in those folders and in the subfolders there is no problem, but when I go back to the main folder (local media) then the error appears and it blocks me all Lovelace interface.
My setup is Raspberry PI4 with Raspbian OS with supervised HA on Docker.
The latest updates were: core 2021.10.1 and supervisor 2021.10.0
If I use the local media browser (web browser) then the error does not appear.
Anyone else have the same mistake as me?
Can it be solved??

whats the full error in the home assistant logs

Ecco:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:134
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 15:58:14 (4 occurrences)
Last logged: 16:57:48

[2831630144] Error handling message: expected str for dictionary value @ data['media_content_type']. Got None
[2783748688] Error handling message: expected str for dictionary value @ data['media_content_type']. Got None
[2832820904] Error handling message: expected str for dictionary value @ data['media_content_type']. Got None
[2838967272] Error handling message: expected str for dictionary value @ data['media_content_type']. Got None

CTRL+F5 on your browser

Ok, with CTRL + F5 I reload the browser screen but it does not solve the problem of that error.
If I try to browse those folders when I go back to the “root” local media that error will appear again.