This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

[closed] error 401 Authorization Required

1

I have been working with kenguest api https://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 https://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".

asked 30 Apr '14, 15:42

Eksilente's gravatar image

Eksilente
11112
accept rate: 0%

closed 30 Apr '14, 17:28

Richard's gravatar image

Richard ♦
30.9k44279412

The question has been closed for the following reason “User fixed own problem” by Richard 30 Apr ‘14, 17:28


One Answer:

0

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.

answered 30 Apr '14, 16:19

Eksilente's gravatar image

Eksilente
11112
accept rate: 0%

Source code available on GitHub .