FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=20179&edit=1

  ID: 20179
  Updated by: daniel.oconnor@gmail.com
  Reported By: stevehunter@outlook.com
  Summary: API host ws.geonames.org is no longer valid
  Status: Open
  Type: Bug
  Package: Services_GeoNames
  Package Version: 1.0.1
  PHP Version: Irrelevant
  Roadmap Versions:
  New Comment:

Can you open a pull request please?


Previous Comments:
------------------------------------------------------------------------

[2014-01-17 14:34:26] stevehunter

Description:
------------
This package uses the host ws.geonames.org whereas it should be using
the newer api.geonames.org. As of 17th Jan 2014, ws.geonames.org seems
to have been removed from DNS, causing the following exception to be
raised:

   Services_GeoNames_HTTPException: Unable to connect to
tcp://ws.geonames.org:80. Error: php_network_getaddresses: getaddrinfo
failed: Name or service not known

The fix is to change:

   public $url = 'http://ws.geonames.org';

to this:

   public $url = 'http://api.geonames.org';

in Services/GeoNames.php

------------------------------------------------------------------------

Search Discussions

  • Stevehunter at Feb 5, 2014 at 12:05 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=20179&edit=1

      ID: 20179
      Comment by: stevehunter@outlook.com
      Reported By: stevehunter@outlook.com
      Summary: API host ws.geonames.org is no longer valid
      Status: Open
      Type: Bug
      Package: Services_GeoNames
      Package Version: 1.0.1
      PHP Version: Irrelevant
      Roadmap Versions:
      New Comment:

    No problem, pull request opened now


    Previous Comments:
    ------------------------------------------------------------------------

    [2014-02-05 03:14:16] doconnor

    Can you open a pull request please?

    ------------------------------------------------------------------------

    [2014-01-17 14:34:26] stevehunter

    Description:
    ------------
    This package uses the host ws.geonames.org whereas it should be using
    the newer api.geonames.org. As of 17th Jan 2014, ws.geonames.org seems
    to have been removed from DNS, causing the following exception to be
    raised:

       Services_GeoNames_HTTPException: Unable to connect to
    tcp://ws.geonames.org:80. Error: php_network_getaddresses: getaddrinfo
    failed: Name or service not known

    The fix is to change:

       public $url = 'http://ws.geonames.org';

    to this:

       public $url = 'http://api.geonames.org';

    in Services/GeoNames.php

    ------------------------------------------------------------------------
  • Stevehunter at Feb 5, 2014 at 12:11 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=20179&edit=1

      ID: 20179
      Comment by: stevehunter@outlook.com
      Reported By: stevehunter@outlook.com
      Summary: API host ws.geonames.org is no longer valid
      Status: Open
      Type: Bug
      Package: Services_GeoNames
      Package Version: 1.0.1
      PHP Version: Irrelevant
      Roadmap Versions:
      New Comment:

    Just to note that although here
    https://groups.google.com/forum/#!topic/geonames/UmPdTGMHjrU the service
    maintainers state that ws.geonames.org has been disabled, it now appears
    to be resolving again.


    Previous Comments:
    ------------------------------------------------------------------------

    [2014-02-05 13:16:17] stevehunter

    No problem, pull request opened now

    ------------------------------------------------------------------------

    [2014-02-05 03:14:16] doconnor

    Can you open a pull request please?

    ------------------------------------------------------------------------

    [2014-01-17 14:34:26] stevehunter

    Description:
    ------------
    This package uses the host ws.geonames.org whereas it should be using
    the newer api.geonames.org. As of 17th Jan 2014, ws.geonames.org seems
    to have been removed from DNS, causing the following exception to be
    raised:

       Services_GeoNames_HTTPException: Unable to connect to
    tcp://ws.geonames.org:80. Error: php_network_getaddresses: getaddrinfo
    failed: Name or service not known

    The fix is to change:

       public $url = 'http://ws.geonames.org';

    to this:

       public $url = 'http://api.geonames.org';

    in Services/GeoNames.php

    ------------------------------------------------------------------------
  • Daniel Oconnor at Feb 5, 2014 at 4:38 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=20179&edit=1

      ID: 20179
      Updated by: daniel.oconnor@gmail.com
      Reported By: stevehunter@outlook.com
      Summary: API host ws.geonames.org is no longer valid
    -Status: Open
    +Status: Closed
      Type: Bug
      Package: Services_GeoNames
      Package Version: 1.0.1
      PHP Version: Irrelevant
    -Assigned To:
    +Assigned To: stevehunter
      Roadmap Versions:
      New Comment:

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: stevehunter
    This bug has been fixed in SVN.

    If this was a documentation problem, the fix will appear on pear.php.net
    by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.




    Previous Comments:
    ------------------------------------------------------------------------

    [2014-02-05 13:22:03] stevehunter

    Just to note that although here
    https://groups.google.com/forum/#!topic/geonames/UmPdTGMHjrU the service
    maintainers state that ws.geonames.org has been disabled, it now appears
    to be resolving again.

    ------------------------------------------------------------------------

    [2014-02-05 13:16:17] stevehunter

    No problem, pull request opened now

    ------------------------------------------------------------------------

    [2014-02-05 03:14:16] doconnor

    Can you open a pull request please?

    ------------------------------------------------------------------------

    [2014-01-17 14:34:26] stevehunter

    Description:
    ------------
    This package uses the host ws.geonames.org whereas it should be using
    the newer api.geonames.org. As of 17th Jan 2014, ws.geonames.org seems
    to have been removed from DNS, causing the following exception to be
    raised:

       Services_GeoNames_HTTPException: Unable to connect to
    tcp://ws.geonames.org:80. Error: php_network_getaddresses: getaddrinfo
    failed: Name or service not known

    The fix is to change:

       public $url = 'http://ws.geonames.org';

    to this:

       public $url = 'http://api.geonames.org';

    in Services/GeoNames.php

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedFeb 5, '14 at 2:03a
activeFeb 5, '14 at 4:38p
posts4
users2
websitepear.php.net

2 users in discussion

Stevehunter: 2 posts Daniel Oconnor: 2 posts

People

Translate

site design / logo © 2022 Grokbase