linuxmint / cinnamon-spices-applets

Applets for the Cinnamon desktop
http://cinnamon-spices.linuxmint.com
588 stars 501 forks source link

weather@mockturtl: Service Error 403 on all data sources #6087

Closed LightningStalker closed 1 week ago

LightningStalker commented 2 months ago

Applet version/Build date

3.6.2

Cinnamon version

5.8.4

Distribution

21.2

Graphics hardware and driver used

NVIDIA GeForce GTX 1060

Applet name and maintainer

weather@mockturtl @Gr3q

What happened?

Service Error in panel, log says Gjs-Message: 08:39:14.200: JS LOG: [LookingGlass/info] [weather@mockturtl#16:Info]: Error calling URL: 403, Forbidden, <html> Gjs-Message: 08:39:14.200: JS LOG: [LookingGlass/error] [weather@mockturtl#16:Error]: Error: API response is not JSON. The response: null

Expected weather forecast data

Other information

Log is too long to post here

rcalixte commented 2 months ago

@LightningStalker Which service are you trying to use? (There are several in the options.) How do you have it configured?

LightningStalker commented 2 months ago

I tried each one. Default configuration

LightningStalker commented 2 months ago

Uninstall, reinstall and working now. Unsure what the problem was. Thanks.

LightningStalker commented 2 months ago

Ok problem is manual location, can't get anything to work except GPS coordinates

Gr3q commented 2 months ago

Can you access https://nominatim.openstreetmap.org/ui/search.html? if you search there, does it work?

LightningStalker commented 2 months ago

Yes it does

Gr3q commented 1 month ago

A bit of a late reply, but If you enable debug logs you get the exact url that's being called (includes nominatim).

If you copy that in the browser or you use curl from the terminal, does it still work?

I'm just trying to narrow it down what could it be the problem. I'm sure nothing is replacing the user-agent string system-wide and you don't call nominatim.org on your own more than once a second.

LightningStalker commented 1 month ago

It's still happening but working in browser. Interval is default 15.

Gr3q commented 3 weeks ago

In Applet Settings->Help->User Agent string override try to put anything in and refresh, see if it works.

LightningStalker commented 3 weeks ago

I change it to Mozilla/5.0 and working.

Gr3q commented 2 weeks ago

In the next version I make the user-agent somewhat unique for each user so hopefully the applet doesn't get a blanket ban.