inderdhir / DatWeatherDoe

Simple menu bar weather app for macOS
Apache License 2.0
525 stars 34 forks source link

Network error on 4.1.3 #137

Closed ednolan closed 7 months ago

ednolan commented 8 months ago

I updated to 4.1.3 and now I only ever see "Network Error," it shows up immediately on startup and does not go away after a refresh. Is there any way to debug this?

inderdhir commented 8 months ago

I just did a fresh install and it seems to be working on my end.

Can you try using Proxyman/Charles and check if the appId query parameter is present when the app makes a call to the API? You can try clicking "Refresh" or changing the app configuration to trigger a refresh so that it shows up.

Screenshot 2024-03-27 at 4 08 11 PM
ednolan commented 7 months ago

I installed Proxyman and DatWeatherDoe doesn't show up as making requests at all. I tried clicking refresh and changing the app configuration, neither of those had any effect.

ednolan commented 7 months ago

Same thing after updating to 4.2.0.

miss4chewN8 commented 7 months ago

@ednolan I was facing the same issue when I updated to this app via an Ethernet connection. I tried everything and the "Network Error" message just didn't stop persisting. I gave up on the app and installed "Sparrow Weather" from the App Store and noticed that it wasn't refreshing as well. In the FAQ of that app, it was mentioned that the app uses WiFi to analyse the location and hence it won't work on wired internet connections.

Then I tried connecting to WiFi and DatWeatherDoe 4.2.0 worked! Please give it a try again in case you were connected via Ethernet earlier.

inderdhir commented 7 months ago

Interesting, a workaround would be to not use 'location' source.

It seems like the error message may be incorrect, I'll check.

ednolan commented 7 months ago

Yes, I also was using Ethernet and I had WiFi turned off.

inderdhir commented 7 months ago

I added a change in 4.2.1 that should better surface errors on the UI. Thanks for the help @miss4chewN8

ednolan commented 7 months ago

After upgrading, the error message showed up as "Zipcode," and I realized that I was omitting my ISO 3166 country code from the ZIP code field. Now that I've fixed that, the application works. Thanks!