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] WMS layer example no longer working #1955

Closed
d01101010m opened this issue Sep 9, 2024 · 2 comments · Fixed by #1963
Closed

[BUG] WMS layer example no longer working #1955

d01101010m opened this issue Sep 9, 2024 · 2 comments · Fixed by #1963
Labels
bug This issue reports broken functionality or another error P: 1 (important) S: example Scoped to the example application

Comments

@d01101010m
Copy link

What is the bug?

It just shows a blank screen. It seems the baseUrl no longer works. In my app I'm getting the following error:

DioException [bad response]: This exception was thrown because the response has a status code of 403 and RequestOptions.validateStatus was configured to throw for this status code.
I/flutter ( 3249): The status code of 403 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
I/flutter ( 3249): Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
I/flutter ( 3249): In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.

How can we reproduce it?

https://demo.fleaflet.dev/wms_layer

Do you have a potential solution?

No response

Platforms

Android 15.0, PWA

Severity

Erroneous: Prevents normal functioning and causes errors in the console

@d01101010m d01101010m added bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing labels Sep 9, 2024
@JaffaKetchup JaffaKetchup added P: 1 (important) S: example Scoped to the example application and removed needs triage This new bug report needs reproducing and prioritizing labels Sep 9, 2024
@monsieurtanuki
Copy link
Contributor

I've just changed baseUrl: 'https://{s}.s2maps-tiles.eu/wms/?', into baseUrl: 'https://tiles.maps.eox.at/wms?', in wms_tile_layer.dart, et voilà:
Screenshot_1726141645

I haven't taken the time to read potential licence issues.
If needed, ready to PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports broken functionality or another error P: 1 (important) S: example Scoped to the example application
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants