Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Location #638

Closed
backslash-f opened this issue Oct 6, 2021 · 33 comments
Closed

Unknown Location #638

backslash-f opened this issue Oct 6, 2021 · 33 comments

Comments

@backslash-f
Copy link

$ curl -s 'wttr.in/Berlin?format=3&m'
Unknown location; please try ~52.52045,13.40732
@herrwusel
Copy link

wttr.in in general seems to have problems currently.

@chubin
Copy link
Owner

chubin commented Oct 6, 2021

Should be fixed; please test

@Jonta
Copy link

Jonta commented Oct 6, 2021

Was broken before

Works again here

@pvonmoradi
Copy link

Should be fixed; please test

curl "v2.wttr.in/berlin"
Unknown location; please try ~52.52045,13.40732
Follow @igor_chubin for wttr.in updates

@chubin
Copy link
Owner

chubin commented Oct 6, 2021

Now this is for real. Will be not available for the next 4 hours. Stay tuned. I will update you, as soon as it is back online

@jacobsebek
Copy link

What about the error message not leaking my location? I am not a fan of that.

@chubin
Copy link
Owner

chubin commented Oct 6, 2021

How is it leaking? It is only you who sees the error message; but I agree, that the message could be more accurate/relevant

@jacobsebek
Copy link

Well, if someone runs curl and this error occurs, it shows your coordinates. I'd say it's undesired and a significant privacy risk. (What if someone is streaming it, blindly sending the output somewhere, idk). Doesn't seem particularly relevant either. (I pipe the output of the query straight to my status bar, you can say this is a stupid thing to do on my part, but still..)

@mr-pmillz
Copy link

yeah same. i love having weather in my tmux status bar, however due to frequent outages, my tmux status bar is frequently messed up. Awesome project though by the way, just curious why so many outages?

@chubin
Copy link
Owner

chubin commented Oct 6, 2021

For many reasons, but mainly because of it’s absolutely free nature (free as in freedom and free as in beer) combined with high popularity (~20M queries daily).

Regarding error message: agreed, I will fix it

@chubin
Copy link
Owner

chubin commented Oct 6, 2021

A little bit more details: from time to time we reach the top data source capacity daily limit (as today), and so we can’t do nothing about, but just wait. We could increase the capacity permanently, but it would cost much more than it costs now; many users proposed many times to fund the service via patreon etc; maybe that is the way to go, but I am not sure how many are willing to do it for real. Just out of curiosity, my question to them who read the thread: would you support the service with $1/month if it would reduce number of outages by 80%? (serious question)

@MAGICCC
Copy link
Contributor

MAGICCC commented Oct 6, 2021

I don't use wttr.in so much but a dollar wouldnt hurt if its help you. I do it with a different project here on GitHub for its Patreon page

@chubin
Copy link
Owner

chubin commented Oct 7, 2021

Thank you @MAGICCC
wttr.in is back

@chubin
Copy link
Owner

chubin commented Oct 10, 2021

the problem was fixed 4 days ago; regarding the location exposure in the error message, it will be fixed as part of #199, #280, #548

@chubin chubin closed this as completed Oct 10, 2021
@Jonta
Copy link

Jonta commented Oct 11, 2021

For posterity: Even though the coordinates shown on my system had even more significant digits than in those in the original post, the location wasn't super accurate according to a search on https://www.openstreetmap.org

@chubin
Copy link
Owner

chubin commented Oct 11, 2021

@Jonta The wttr.in data comes from openstreetmap, by the way

@Jonta
Copy link

Jonta commented Nov 3, 2021

As a logging thing for further debugging: It's happening again right now, and has happened at least once more between @chubin replying to me and now

Putting in coordinates works, so I've modified my setup to check whether the 1st word is "Unknown"

@chubin
Copy link
Owner

chubin commented Nov 3, 2021

@Jonta How can I reproduce it?

@Jonta
Copy link

Jonta commented Nov 4, 2021

@chubin Be in my location yesterday, and run curl -s wttr.in/?format=1

  • Error message suggests the correct coordinates
  • curling with those coordinates gave me the weather

So what's happening seems to be:

Me: "What's the weather where I am?"
Wttr: "Oh, I don't know where you are. Try asking me what the weather is at [your coordinates] instead"
M: "OK. What's the weather at [my coordinates]?"
W: "This weather, and this temperature"
M: "Thanks. But if you knew all that, why didn't you just tell me from the start?"

@chubin
Copy link
Owner

chubin commented Nov 7, 2021

Yes, this is definitely a bug, but I can't understand under circumstances it happens.
The same command works perfectly for me of course.

A couple of other questions:

  1. Does curl wttr.in works for you?
  2. Does curl v2.wttr.in works for you?
  3. Does curl wttr.in/<Location>?format=1 works for you?

I suppose that (3) works, but who knows

@Jonta
Copy link

Jonta commented Dec 9, 2021

~ curl wttr.in

Follow @igor_chubin for wttr.in updates
~ curl v2.wttr.in
Unknown location; please try ~[my coordinates]
Follow @igor_chubin for wttr.in updates
~ curl wttr.in/[My location]?format=1
Unknown location; please try [my coordinates]~

Note that in the last one, there's no newline at the end

@chubin
Copy link
Owner

chubin commented Dec 13, 2021

Thank you for reporting it! The outage was fixed 4 days ago. Since that the service works without interruptions

@Jonta
Copy link

Jonta commented Jan 28, 2022

Same as above, except for:

~ curl v2.wttr.in

Sorry, we are running out of queries to the weather service at the moment.
Here is the weather report for the default city (just to show you what it looks like).
We will get new queries as soon as possible.
You can follow https://twitter.com/igor_chubin for the updates.
======================================================================================

@Jonta
Copy link

Jonta commented Feb 4, 2022

Same on 1 & 2 as above now

But 3 gives weather info

Tried all 3 of them twice

@Jonta
Copy link

Jonta commented Feb 18, 2022

1 and 2 work now, but 3 gives "Unknown location; please try [my coordinates here]"

@Jonta
Copy link

Jonta commented Feb 24, 2022

1 works

2 and 3 do not

@Jonta
Copy link

Jonta commented Mar 5, 2022

Possibly related: 1 now gives me a 404, unknown location. And then

We were unable to find your location 
 so we have brought you to Oymyakon, 
 one of the coldest permanently inhabited locales on the planet.

2 tells me wttr.in is running out of queries, and does not give me the weather report for the default city, even though it tells me it does

3 tells me it's +17°C in my location, which it definitely is not

@chubin
Copy link
Owner

chubin commented Mar 5, 2022

@Jonta Please test it now

@Jonta
Copy link

Jonta commented Mar 6, 2022

@chubin Only saw this just now. All 3 seem to work well now

@Jonta
Copy link

Jonta commented Apr 24, 2022

1: Follow @igor_chubin for wttr.in updates (took >10 s to respond the first time)
2:

<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.10.3</center>
</body>
</html>

Next time I tried: Unknown location; please try [my coordinates]
3: curl: (52) Empty reply from server

@chubin
Copy link
Owner

chubin commented Jun 4, 2022

Was down for some time on Apr 24, but quickly recovered. Thank you all for reporting!

@Jonta
Copy link

Jonta commented Aug 3, 2022

Sorry, we are running out of queries to the weather service at the moment.

(Just for the record)

@chubin
Copy link
Owner

chubin commented Aug 3, 2022

Should work already, please recheck and thank you for reporting 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants