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

Trying to run iD locally and running into problems with OAUTH

0

I'm trying to run a local version of iD and am having problems. I'm on windows.

Here's what I've done so far:

git clone git@github.com:openstreetmap/iD
cd iD
python -m SimpleHTTPServer

I can then visit 127.0.0.1:8000 in browser & the map loads, everything seems to work.

The browser is logged in to openstreetmap.org, so I think that it picks up that I'm logged into osm automatically. But when I try to save changes, an OAUTH permission window pops up. I accept everything there, and it redirects me to http://127.0.0.1:8000/land.html?oauth_token=[removed] which is a page whose content is just:

!ÿþdist/land.html

Here's what view source on it looks like - maybe a broken unicode page which mentions symlink?:

!<symlink>ÿþd

It looks like iD may need more config to run locally? Is it just missing the hostname of the page OAUTH wants to redirect me to?

Also, "ÿþ" is the UTF-16 BOM.

asked 27 May '15, 13:42

RationalTangle's gravatar image

RationalTangle
26114
accept rate: 0%

edited 27 May '15, 14:30


One Answer:

1

It was a symlink problem due to windows. I just had to move <root>dist/land.html to <root>/land.html (replacing the symlink originally at land.html)

There is symlink for css/img - you have to copy dist/img to replace css/img also.

answered 27 May '15, 14:33

RationalTangle's gravatar image

RationalTangle
26114
accept rate: 0%

Source code available on GitHub .