Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Not Found #121

Open
stevage opened this issue Dec 3, 2013 · 5 comments
Open

Error: Not Found #121

stevage opened this issue Dec 3, 2013 · 5 comments

Comments

@stevage
Copy link
Contributor

stevage commented Dec 3, 2013

I'm not sure if I'm just issuing a bad request (I'm a bit uncertain on the correct URL structure for requesting tiles), but I'm getting this:

Error: Not Found
    at Object.notFound [as handle] (/mnt/dev/tilestream/node_modules/bones/server/middleware.js:99:14)
    at next (/mnt/dev/tilestream/node_modules/bones/node_modules/express/node_modules/connect/lib/http.js:204:15)
    at /mnt/dev/tilestream/node_modules/bones/node_modules/express/lib/http.js:225:9
    at next (/mnt/dev/tilestream/node_modules/bones/node_modules/express/node_modules/connect/lib/http.js:151:23)
    at next (/mnt/dev/tilestream/node_modules/bones/node_modules/express/node_modules/connect/lib/http.js:183:50)
    at next (/mnt/dev/tilestream/node_modules/bones/node_modules/express/node_modules/connect/lib/http.js:183:50)
    at Server.handle (/mnt/dev/tilestream/node_modules/bones/node_modules/express/node_modules/connect/lib/http.js:217:3)
    at Object.middleware [as handle] (/mnt/dev/tilestream/node_modules/bones/node_modules/express/lib/http.js:223:11)
    at next (/mnt/dev/tilestream/node_modules/bones/node_modules/express/node_modules/connect/lib/http.js:204:15)
    at /mnt/dev/tilestream/node_modules/bones/node_modules/express/lib/http.js:225:9

The request I'm making is: http://dev.cycletour.org:8880/v2/SteveCV2/8/229/158.png

(It might not stay running for very long.)

The UI part (port 8880 in my case) is running ok, but none of the tiles are visible.

@stevage
Copy link
Contributor Author

stevage commented Dec 3, 2013

The request succeeds from the localhost, but not externally. I'm starting the server like this:

nohup ./index.js start --uiPort=8880 --host dev.cycletour.org --host 127.0.0.1  --tiles=/spatial2/tiles &

@springmeyer
Copy link
Contributor

Try the --host arg as I mention at #101

@springmeyer
Copy link
Contributor

sorry, see now you are using host. Can you try adding tilePort ?

@stevage
Copy link
Contributor Author

stevage commented Dec 4, 2013

Ok, that "sort of" works. Running this:

nohup ./index.js start --accesslog=true --tilePort=8888 --uiPort=8880 --host dev.cycletour.org --host 127.0.0.1 --host '*' --tiles=/spatial2/tiles &

Now I can retrieve tiles on port 8888. But strangely, the UI is trying to request tiles on port 8880 (ie, the uiPort), so the UI is still broken.

@stevage
Copy link
Contributor Author

stevage commented Dec 4, 2013

Changing uiPort to 8888 here worked. (I had naively assumed they had to be different)

Although thumbnails aren't being shown. Possibly a separate issue, but the URLs for all the thumbnails seem to be of this form:

.../v2/[mbtiles export name]/8/231/99.png

That is, always 8/231/99, which isn't a valid tile in any of the exports (although they all have very similar, possibly identical bounds).

http://dev.cycletour.org:8888/#!/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants