I have been working with kenguest api http://wiki.openstreetmap.org/wiki/User:Kenguest and it bothers me a lot. We are already using the search api in php. Now when trying to push some update this error came in thrown in D:\projects***\libraries\osm\Services\OpenStreetMap\Transport\HTTP.php on line 162 [30-Apr-2014 14:04:33 UTC] PHP Fatal error: Uncaught exception 'Services_OpenStreetMap_Exception' with message 'Unexpected HTTP status: 401 Authorization Required' in D:\projects***\libraries\osm\Services\OpenStreetMap\Transport\HTTP.php:162 Stack trace: 0 D:\projects***\libraries\openstreetapi.php(173): Services_OpenStreetMap_Transport_HTTP->getResponse('http://api.open...', 'PUT', '*', '*', '<?xml version="...', NULL, Array)the username and password are correct no doubt about it. Following the details from here http://wiki.openstreetmap.org/wiki/OsmChange tried using the username instead of the email and still does not work. I am able to login with this credentials and able to search also. I'm asking for advice. Please help.
This question is marked "community wiki".
|
The question has been closed for the following reason "User fixed own problem" by Richard 30 Apr '14, 17:28
I've got it figured it out. I've set my password with something like test12345^ with hypen and then when I change my password with no hypen then it is working now. I would like to suggest to not include special characters in the beginning in creating an account, that might affect the api. Or any other workaround. |