"Unknown Location" errors do not follow requested `format` nor `lang`
See original GitHub issueThe format is handled in the lines below, but this is always sent as a string, I noticed it because I got a JSON parse error while looking for antarctica
, and itβs also not translated:
Query
β― curl -v "wttr.in/antarctica?format=j1&lang=es"
* Trying 5.9.243.187...
* TCP_NODELAY set
* Connected to wttr.in (5.9.243.187) port 80 (#0)
> GET /antarctica?format=j1&lang=es HTTP/1.1
> Host: wttr.in
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.10.3
< Date: Sun, 21 Mar 2021 10:58:19 GMT
< Content-Type: application/json
< Content-Length: 50
< Connection: keep-alive
< Access-Control-Allow-Origin: *
<
Unknown location; please try ~-82.1081821,34.37824* Connection #0 to host wttr.in left intact
(As a side note, could this be also changed so it doesnβt return 200 OK
?)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
"Unknown Location" errors do not follow requested `format` nor `lang`
The format is handled in the lines below, but this is always sent as a string, I noticed it because I got a...
Read more >Troubleshoot Dataflow errors - Google Cloud
When you run a Dataflow job created from a template, the job might fail with the following error: Error: CommitWork failed: status: APPLICATION_ERROR(3):...
Read more >How to Fix a 400 Bad Request Error (Causes and Fixes) - Kinsta
The 400 Bad Request error indicates that the server cannot or process the request due to a client error. Read about the common...
Read more >Resolve "AWS Access Key Id" errors when sending requests ...
I'm using the AWS CLI, an AWS SDK, or an application to access my Amazon S3 bucket, but I'm getting the error "The...
Read more >org.xml.sax.SAXParseException: Content is not allowed in ...
This is often caused by a white space before the XML declaration, but it could be any text, like a dash or any...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thatβs right.
Ah, makes sense ππΌ
Something like this?
Yes. And besides that, in this particular case the error message is wrong. The real error was that it could not find data for this location, and the location itself was resolved properly.
By the way, if you need just some location in Antarctica, you can use the Vostok Station for the query: