Hello Khaled, the error message you are having indicates a version mismatch and you will need to upgrade the other Wazuh components to 4.8.1 to be able to access the dashboard. Please follow the
upgrade guide documentation to upgrade your Wazuh deployment and if necessary the Wazuh agents too.
Hope this answers your question.
Kind Regards
Rolly Mougoue