Thanks for posting in the Roku Community!
If you are getting an error code or message, refer to this link for common Roku error codes and their recommended actions: How to connect your Roku® streaming device to the internet using Wi-Fi® or Ethernet | Official Roku ...
Furthermore, if the affected device is a Roku Express or Roku Premiere, please note that both devices are only compatible with wireless b/g/n networks on the 2.4 GHz spectrum. Ensure that your router is broadcasting a 2.4GHz Wi-Fi network for the device to connect to. You can check your device model by navigating to Settings > System > About.
You can also try configuring your router and use wireless channels 1, 6, or 11 which are the preferred channels in North America. Each time you change the wireless channel, you will likely need to apply/save changes before you are prompted to restart the router.
Please keep us posted and we'll continue assisting you from there.