To fix Hulu error code P-DEV320, you have to follow these steps:
Restart the Hulu app or your device. Sometimes a simple reboot resolves the issue
Clear app cache/data or reinstall Hulu.
Switch network connections: try wired Ethernet instead of Wi-Fi. As one user on Reddit put it
If still issues, then check for Hulu outages or contact support.