Giter Club home page Giter Club logo

Comments (4)

brendan-ward avatar brendan-ward commented on June 27, 2024

I think you need to try it at http://localhost:8080/services/trail/map instead when using curl on the instance.

When you say Public IP address, do you mean the public IP address assigned by AWS? Do you have that port (8080) open to the internet in your security group settings?

Is this limited to just the preview or are you also getting a 404 error at /services as well?

from mbtileserver.

JDBourkeUbihere avatar JDBourkeUbihere commented on June 27, 2024

Thanks for the "localhost" tip and the timely response! I still am getting the error but was able to get just /services to work (included below). I do mean the AWS-assigned public IP address, and I do have that port open in the security group settings.

[ec2-user@ip-172-31-27-60 files]$ curl http://localhost:8080/services
[{"imageType":"pbf","url":"http://localhost:8080/services/tilesets/bolivia","name":"bolivia.mbtiles"},{"imageType":"pbf","url":"http://localhost:8080/services/tilesets/trails","name":"trails-with-a-name"}]

from mbtileserver.

brendan-ward avatar brendan-ward commented on June 27, 2024

Looks like it is seeing an extra tilesets directory in your path, so perhaps the preview is at http://localhost:8080/services/tilesets/trails/map?

Do you have a /home/ec2-user/files/tilesets folder? If so, that is where the extra part of the URLs is coming from; you might want to do docker run --rm -p 8080:8000 -v /home/ec2-user/files/tilesets:/tilesets consbio/mbtileserver instead.

from mbtileserver.

JDBourkeUbihere avatar JDBourkeUbihere commented on June 27, 2024

That did it. Thank you!

from mbtileserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.