Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • Enterprise Edition
    • Poller

    Description

      When polling devices for geo-data with Google API, it times out in the poller.

      When I run the curl-command with my API-key that the debug outputs, it works:

       

      curl -i --connect-timeout 15 -X GET -H 'Connection: close' -H 'User-Agent: Observium/22.8.12250' 'https://maps.googleapis.com/maps/api/geocode/json?address=Kvinnerstaskolan+Orebro+Sweden&key=***&sensor=false&language=en&limit=1'

      Attachments

        Activity

          [OBS-4233] Geolocation Google API

          This is somehow related with your network environment. Probably proxies or something.

          I just tested (also with your location string), all works fast:

          ./test_geo.php  -a google 'Kvinnerstaskolan Orebro Sweden'
          +--------------------------------+
          | Location                       |
          +--------------------------------+
          | Kvinnerstaskolan Orebro Sweden |
          +--------------------------------+
           
          +----------+------------+------------+---------+------------+---------+--------+-------+
          | Geo: API | Lat        | Lon        | Country | State      | County  | City   | Error |
          +----------+------------+------------+---------+------------+---------+--------+-------+
          | google   | 59.3565713 | 15.2429698 | Sweden  | Örebro län | Unknown | Örebro |       |
          +----------+------------+------------+---------+------------+---------+--------+-------+
          

          landy Mike Stupalov added a comment - This is somehow related with your network environment. Probably proxies or something. I just tested (also with your location string), all works fast: ./test_geo.php -a google 'Kvinnerstaskolan Orebro Sweden' +--------------------------------+ | Location | +--------------------------------+ | Kvinnerstaskolan Orebro Sweden | +--------------------------------+   +----------+------------+------------+---------+------------+---------+--------+-------+ | Geo: API | Lat | Lon | Country | State | County | City | Error | +----------+------------+------------+---------+------------+---------+--------+-------+ | google | 59.3565713 | 15.2429698 | Sweden | Örebro län | Unknown | Örebro | | +----------+------------+------------+---------+------------+---------+--------+-------+

          People

            landy Mike Stupalov
            bamsegrill Tommy Jonsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: