Playlist path invalid authentication


Apologies if this question is asked previously but I like to play music files from automation/node red for files saved in the media directory using the path below. i am using HA supervised no ubuntu headless server.

service: media_player.play_media
  media_content_type: music
  entity_id: media_player.mediacontroller

i get following error.

Login attempt failed
Login attempt or request with invalid authentication from ( See the log for details.

can anyone advise how i can set automation to play files stored in /media or /share/mopidy directory?

i can confirm that if i store files in the www folder there is no issue so i might be missing some authentication values in the media content id i guess? thanks in advance.