Try mo maghanap ng open area then check mo signal(obviously), if malakas ang signal sayo pero error parin. Then try to reset your network settings then reboot your phone.
Go to Settings /Wifi & Mobile Network /More / Reset. In some cases it depends on your device, like me I'm currently using ASUS device. Mine is in Settings / Backup and Reset / Reset Network.