So i had the error before and the solution was to add the server-resouce-pack folder, which i did, but even after adding the folder i still get the error. what's going on?
Edit: i also tried to uninstall and reinstall the game but for some reason it kept all my stuff (i.e. optifine, servers, and resource packs)
This was fixed 3 years ago.