I am currently connected to the internet, as evidenced by me writing this post and uploading a screenshot of you to Grumpy Website.
However, Apple Photos thinks I'm not connected. Maybe it cannot connect to iCloud? Someone should tell them that iCloud is not the Internet.
Hint to programmers: make sure that your user-facing errors contain the actual error and ways to fix it.