Skip to content
New issue

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

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

Already on GitHub? # to your account

Refused to set unsafe header "User-Agent" #21

Open
DeltaFox0018 opened this issue Nov 4, 2023 · 6 comments
Open

Refused to set unsafe header "User-Agent" #21

DeltaFox0018 opened this issue Nov 4, 2023 · 6 comments

Comments

@DeltaFox0018
Copy link

DeltaFox0018 commented Nov 4, 2023

When map is loading or i zoom in/out i have this error in the console

Refused to set unsafe header "User-Agent" linked_hash_map.dart:21

image

Best Regards

@DeltaFox0018
Copy link
Author

DeltaFox0018 commented Nov 4, 2023

Hi,

it seems that this problem has been fixed with flutter_map 6.0.1

When is the new version of the package compatible with the latest version of flutter_map coming out?

Regards

fleaflet/flutter_map#1654
fleaflet/flutter_map#1677

@lagivan
Copy link

lagivan commented Dec 19, 2023

I'm facing the same issue, quite annoying to see hundreds of errors in the browser console.

@rorystephenson I see there was some work done to support flutter_map 6 in https://github.com/rorystephenson/flutter_map_supercluster/tree/v5

Is it possible to release it in the nearest future? Do you need help with testing?

@rorystephenson
Copy link
Owner

rorystephenson commented Dec 24, 2023

Hey sorry for the slow response, agreed it's very annoying to be spammed with these messages.

I started work on a big overhaul when flutter_map v6 was still WIP. Unfortunately it took a while for v6 to actually drop and when it did there were a lot more breaking changes added. For that reason I have a pretty set of changes in limbo (the v5 branch) which, last time I checked, had some bugs to iron out. I'm not actively working on projects that use this package right now but I'm still committed to maintaining it. I will try to get to finishing the v5 changes asap.

@rorystephenson
Copy link
Owner

In the interest of moving forward I have just pushed 5.0.0-dev.1 which contains the latest changes I had locally.

If you find any issues let me know. I have a nagging feeling that there was something left to resolve but a quick test didn't uncover any problems.

@DeltaFox0018
Copy link
Author

Hi, I have installed version 5.0.0-dev.11 and at the moment I am not experiencing any problems

I had to make some code changes (MapOptions) but they depend on the fact that I updated flutter_map to version 6.0.0

If I encounter any problems I will let you know

@DeltaFox0018
Copy link
Author

At the moment I have not found any bugs on using the new released version 5.0.0-dev.1

With version 6 of flutter_map from the logs when debugging the app it is recommended to use "flutter_map_deletable_tile_provider"

To implement it among the parameters of the TileLayer should be added this

tileProvider: deleteableNetworkTileProvider()

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

No branches or pull requests

3 participants