"Invalid UTF-8" for user flatpak repo

every time I tried to update anything I keep getting this error (I am new please help me)

error: While opening repository /sysroot/home/acer/.local/share/flatpak/repo: Invalid UTF-8

eos-diagnostic-181107_150902_UTC 0530.txt (1.0 MB)

What do you see if you run this command in the terminal:

hexdump -C ~/.local/share/flatpak/repo/config

After running that command and sharing the output here, you could try running this command. Update: this is because the error message was related to this repository being corrupt. Do not run these commands in general.

mv ~/.local/share/flatpak ~/.local/share/flatpak.old

then logging out and in again. Some of your apps might disappear but updates should start working again.

these are the outputs respectively with the commands

Did updates start working again after you logged out and in again?

Thank you a lot! it worked.