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

Problem downloading MapTile: /12/2299/1442 HTTP response: Forbidden #366

Closed
janoferenczi opened this issue Aug 11, 2016 · 13 comments
Closed

Comments

@janoferenczi
Copy link

Hi all.

I`ve got a the problem mentioned in the title.
It wont load all the tiles on the map.

osmdroid_error

@dan89eu
Copy link

dan89eu commented Aug 11, 2016

Hi guys,
We are having the same issue right now.

@catalin2402
Copy link

Hello, I'm having the same issue now

08-11 12:48:00.197 W/OsmDroid: Problem downloading MapTile: /10/586/371 HTTP response: Forbidden
08-11 12:48:00.207 W/OsmDroid: Problem downloading MapTile: /10/585/371 HTTP response: Forbidden
08-11 12:48:00.477 W/OsmDroid: Problem downloading MapTile: /10/584/370 HTTP response: Forbidden
08-11 12:48:00.647 W/OsmDroid: Problem downloading MapTile: /10/585/370 HTTP response: Forbidden

@emildancescu
Copy link

+1

@spyhunter99
Copy link
Collaborator

It's possible that the sample application's and default value for
osmdroid's aar user agent have been banned. I was noticing it too. Try
changing your user agent value

On Thu, Aug 11, 2016 at 5:57 AM, Emil Dancescu notifications@github.com
wrote:

+1


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#366 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB4kGXHaheVEC0Ax33CbEpBlxmPhkZsTks5qevH-gaJpZM4Jh6ih
.

@spyhunter99
Copy link
Collaborator

Yup, that's it.

Stick this your application before loading the map

OpenStreetMapTileProviderConstants.setUserAgentValue(BuildConfig.APPLICATION_ID);

@catalin2402
Copy link

That means that i should update 6 apps that are allready in production... Awesome...

@catalin2402
Copy link

catalin2402 commented Aug 11, 2016

Are you sure that there isn't other solution for this problem ?

@Boekatsjakka
Copy link

Spyhunter99 this fixed for me. Thanks for the answer!

spyhunter99 added a commit that referenced this issue Aug 11, 2016
#366 setup up example to set the user agent
@spyhunter99
Copy link
Collaborator

@catalin2402 sorry for the inconvenience. It's been in the api since 5.0 and in the wiki shortly afterwards. I'm not sure it was ever read only but it's a critical thing.

@MKergall
Copy link
Collaborator

Its' working again, without any change in my app.
Policy on Mapnik server has probably been changed again.

@Firefishy
Copy link

FYI: Since this commit openstreetmap/chef@bb8fbb8 we have re-enabled the block if a proper User-Agent is not set.

@SSaqibRuman
Copy link

Even I faced this issue after some googling I came across a solution, we need to set User agent value in configuration. Please refer to this link for furthermore clarification https://github.com/osmdroid/osmdroid/wiki/Important-notes-on-using-osmdroid-in-your-app

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

10 participants