When you get this issue, the first thing you should do is make sure you're connected to the internet. If you're online, make sure the signal is strong. Trying to load a webpage to check how quickly it loads is one approach to test the signal. If the connection appears to be working properly, try connecting to a different Wi-Fi network to see if the problem is resolved.
WhatsApp should be updated.
Another option for resolving the WhatsApp error is to just update the program. Follow these simple steps to do it manually:
Step 1: Search for 'WhatsApp' on the Play Store.
Step 2: If any updates are available, tap 'Update' to download and install them.
I hope this answer resolve your query