Code Monkey home page Code Monkey logo

Comments (4)

snezhniylis avatar snezhniylis commented on May 26, 2024 1

It's been a month and I haven't been able to reproduce this issue, so I'm going to close it. If this happens again, I'll make sure to investigate the cause, and, potentially, reopen the issue.

from oss-weather.

farfromrefug avatar farfromrefug commented on May 26, 2024

@snezhniylis thanks for the detailed report. are you sure the redirection is not on your side(network)? i have checked and owm api is still on api.openweathermap.org
plus android should handle redirection on its own.
The weird thing to me is that you are not seeing it all the time? Are you seeing it on wifi? cellular network?

from oss-weather.

snezhniylis avatar snezhniylis commented on May 26, 2024

It seems like there are actually 2 issues that I mixed up.

  1. 301 redirection happens no matter where the request originated from (Russia, US, Netherlands, ... via a VPN) and always leads to https://openweathermap.org/api:

    $ curl -I api.openweathermap.org
    
    HTTP/1.1 301 Moved Permanently
    Server: openresty
    Date: Mon, 31 Oct 2022 10:39:22 GMT
    Content-Type: text/html
    Content-Length: 166
    Connection: keep-alive
    Location: http://openweathermap.org/api
    
    $ curl -I http://openweathermap.org/api
    
    HTTP/1.1 301 Moved Permanently
    Server: openresty/1.9.7.1
    Date: Mon, 31 Oct 2022 10:46:57 GMT
    Content-Type: text/html
    Content-Length: 190
    Connection: keep-alive
    Location: https://openweathermap.org/api

    So, I don't think it affects anything. As you mentioned, the OS handles this case.

  2. Sometimes API requests time out. I could not, for the life of me, find the pattern. Some days it works, some days it doesn't. But, so far, using a VPN reliably solved the issue for me.

    I suspect Roskomnadzor (Russian censorshop agency) messing up somewhere and adding a couple OWM IPs to their blocklist.

    I haven't been able to reproduce this issue for a couple of days. When/If it will pop up again, I'll try digging deeper.

from oss-weather.

farfromrefug avatar farfromrefug commented on May 26, 2024

@snezhniylis thanks for the detailed report. If i can help you in anyway let me know. I could add an option to increase the timeout if you want. But not sure if this would really help

from oss-weather.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.