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

Bug: Tile server is limiting the number of requests for icons #91

Open
pratikmdhr opened this issue Feb 4, 2022 · 7 comments
Open

Bug: Tile server is limiting the number of requests for icons #91

pratikmdhr opened this issue Feb 4, 2022 · 7 comments

Comments

@pratikmdhr
Copy link

Description
Tile server is limiting the number of requests from the map client for the tree icons. Right now only 1 request per minute is going through, if more than 1 request is made within 1 minute for a new set of icons, the map client doesnt receive the new icons but strangely the status code is still 200.

Also, the issue seems to be related to one particular zoom level, meaning, if icon is switched in less than 1 minute, the new icon wont show up in that zoom level, but if the map is zoomed in, the new icons appear

@kparikh9
Copy link

Hi @pratikmdhr @dadiorchen I haven't experienced requests being limited. API seems to serve different set of icons instantly, even if different coordinates are passed. As an extra precaution, I disabled cache for the local port the Docker container was bound to. Not sure what may be causing @pratikmdhr to experience the issues demoed last week.

Screenshare.-.2022-02-16.11_32_02.PM.mp4

.

@dadiorchen
Copy link
Collaborator

@kparikh9 can you try this:

  1. keep the url/png the same, /1/1/1.png
  2. change the query between: none, icon=[suit1, suite2, suit3]?

@kparikh9
Copy link

@dadiorchen changing between:

  • /1/1/1.png
  • /1/1/1.png?icon=suit1
  • /1/1/1.png?icon=suit2
  • /1/1/1.png?icon=suit3

outputs the same picture:
image

I don't think anything is wrong with the code - is there any type of console/logger in Digital Ocean that can show if served images are being cached or not?

@dadiorchen
Copy link
Collaborator

Sorry, I didn't express it clearly, I just use 'suit1' for an example, you should replace it with the correct value, I saw in your video, when you visited: /1/1/1.png?icon=o then you switched to /1/1/2.png?icon=ptk-s, it then changes to visiting another file, I need you keep the file the same, (/1/1/1.png) and change the parameter/query, (/1/1/1.png?icon=ptk-b)

@dadiorchen
Copy link
Collaborator

I will find a way to share you the login credential to check the log on digitalocean

@dadiorchen
Copy link
Collaborator

I can not find any potential cache interefrance.

@kparikh9
Copy link

Sorry, I didn't express it clearly, I just use 'suit1' for an example, you should replace it with the correct value, I saw in your video, when you visited: /1/1/1.png?icon=o then you switched to /1/1/2.png?icon=ptk-s, it then changes to visiting another file, I need you keep the file the same, (/1/1/1.png) and change the parameter/query, (/1/1/1.png?icon=ptk-b)

@dadiorchen No worries. I had already checked this before making the original video. The tiles are served correctly when changing the icon parameter. If there isn't any cache interference then I'm not sure what the issue is?

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

No branches or pull requests

3 participants