-
Notifications
You must be signed in to change notification settings - Fork 67
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
Unhandled Exception: Cannot retrieve tile: HTTP 204 #40
Comments
A 204 error typically means that there was no content in the response from the http server. Clicking on the url shown, it doesn't seem to return any content, so first place I would look is why isn't the server returning any protobuf / .pbf content. |
Only some places have data,do I need to modify VectorTileLayerOptions‘s theme |
modifying the theme likely won't help I think what we need is something like this: https://github.com/greensopinion/flutter-vector-map-tiles/blob/main/lib/src/cache/vector_tile_loading_cache.dart#L67 Feel free to submit a PR |
fixed in commit 022580f |
I can not load this
https://dev-tile.terraqt.com/tile/xyz/{z}/{x}/{y}.pbf?path=cfa08636-3d72-439c-a3be-de686f1ef9e1/cor101/202010/CN-511403/vectortiles
center LatLng(30.253362,103.879004)
maybe it load succeed,but not shown
E/flutter (11409): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Cannot retrieve tile: HTTP 204: https://dev-tile.terraqt.com/tile/xyz/13/6639/3156.pbf
E/flutter (11409): #0 NetworkVectorTileProvider.provide (package:vector_map_tiles/src/vector_tile_provider.dart:56:7)
E/flutter (11409):
E/flutter (11409): #1 MemoryCacheVectorTileProvider.provide (package:vector_map_tiles/src/vector_tile_provider.dart:95:15)
E/flutter (11409):
E/flutter (11409): #2 VectorTileLoadingCache._loadBytes (package:vector_map_tiles/src/cache/vector_tile_loading_cache.dart:85:15)
E/flutter (11409):
E/flutter (11409): #3 VectorTileLoadingCache._loadTile (package:vector_map_tiles/src/cache/vector_tile_loading_cache.dart:65:15)
E/flutter (11409):
E/flutter (11409): #4 VectorTileLoadingCache.retrieve (package:vector_map_tiles/src/cache/vector_tile_loading_cache.dart:38:12)
E/flutter (11409):
E/flutter (11409): #5 CachesTileProvider.provide (package:vector_map_tiles/src/stream/caches_tile_provider.dart:30:35)
E/flutter (11409):
E/flutter (11409): #6 VectorTileModel.startLoading. (package:vector_map_tiles/src/grid/tile_model.dart)
E/flutter (11409):
E/flutter (11409):
The text was updated successfully, but these errors were encountered: