Open misterkerry opened 4 years ago
cc: @1ec5 @zugaldia
Thanks for the report @misterkerry - do you have any logs that may include parameter values that would help us reliably reproduce this issue?
/cc: @chezzdev
No problem @zugaldia . The link to the Crashlytics log above and will take a user to the logs in firebase. I would have to give access to the investigator.
I can also put a file in an access-only directory. lmk.
Line 410, 411, 413 shows 3 forced unwrapped objects that could be part of the problem
Force-unwrapping here essentially asserts that the URL is a well-formed URL. That most likely means something about the API hostname or query parameters is malformed.
Problem
When using this method resulting URL is normally delivered. But, on occasion the method crashes causing the App leveraging the SDK to crash.
Environment
These crashes are shown in Organizer:
Recommendation
Line 410, 411, 413 shows 3 forced unwrapped objects that could be part of the problem: These elements can be guarded or error messages send to the App
https://github.com/mapbox/mapbox-directions-swift/blob/160e95110fe52b5f8461fbabe8d9405d16930a43/Sources/MapboxDirections/Directions.swift#L410