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

Inconsistency in APIv1 /polylines endpoint #3098

Open
einrobin opened this issue Jan 7, 2025 · 1 comment
Open

Inconsistency in APIv1 /polylines endpoint #3098

einrobin opened this issue Jan 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@einrobin
Copy link

einrobin commented Jan 7, 2025

Describe the bug

There seems to be an inconsistency when retrieving more than 3 checkins in one request on the polyline endpoint:

In this case "features" is an array
traewelling.de/api/v1/polyline/2709772,2709943,2704568
image

In this case "features" is an object
traewelling.de/api/v1/polyline/2709772,2709943,2704568,2677553
image

From https://geojsonlint.com/
image

Steps to reproduce

Run two commands, notice the difference in the type of the features entry:

curl https://traewelling.de/api/v1/polyline/2709772,2709943,2704568
curl https://traewelling.de/api/v1/polyline/2709772,2709943,2704568,2677553

The issue doesn't appear to happen when requesting the endpoint while being logged in in the Browser. For this just try to open the following URL in your browser while logged in and while not logged in: https://traewelling.de/api/v1/polyline/2709772,2709943,2704568,2677553

Browser console logs

No response

Browser

Edge, Chrome, NodeJS, cURL

@einrobin einrobin added the bug Something isn't working label Jan 7, 2025
@einrobin
Copy link
Author

einrobin commented Jan 7, 2025

Might also be related to #1907?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant