In my case, this error was when trying to connect to new WiFi (new router) was incorrect.
Uninstall the Sonos app, reinstall and factory reset your Sonos and it will then connect - there is a bug in the Sonos app. The uninstall and reinstall will also trigger an update to the Sonos One SL and the device will then connect.