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

Unknown model file type, if uri has query: .../sportcar.glb?hash=... #2067

Open
mfazekas opened this issue Nov 29, 2023 · 0 comments
Open

Unknown model file type, if uri has query: .../sportcar.glb?hash=... #2067

mfazekas opened this issue Nov 29, 2023 · 0 comments
Labels
bug 🪲 Something is broken!

Comments

@mfazekas
Copy link
Contributor

Environment

  • Xcode version: 14.3.1
  • iOS version: 16.4
  • Devices affected: all - tested on Simulator iPhone 14
  • Maps SDK Version: 11.0.0-rc.2

Observed behavior and steps to reproduce

I'm getting an error about identifying model file type when the uri has a query:

2023-11-29 11:55:11.716137+0100 RNMapboxGLExample[40604:15486260] [Mapbox] [Error, maps-core]: {}[General]: Unknown model file type: http://localhost:8081/assets/src/assets/sportcar.glb?platform=ios&hash=1357e77512d0025b300817f35c032422

To reproduce apply this change to ModelLayerExample in the Mapbox-maps-ios example app:

- static let duck = "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/Duck/glTF-Embedded/Duck.gltf"
+ static let duck = "https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/Duck/glTF-Embedded/Duck.gltf?foo"

I'm getting

2023-11-29 12:02:26.767027+0100 Examples[41114:15498280] [Mapbox] [Error, maps-core]: {}[General]: Unknown model file type: https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/Duck/glTF-Embedded/Duck.gltf?foo

Expected behavior

File extension testing should ignore the query part of the uri

Notes / preliminary analysis

Additional links and references

@mfazekas mfazekas added the bug 🪲 Something is broken! label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something is broken!
Projects
None yet
Development

No branches or pull requests

1 participant