exponea / exponea-react-native-sdk

MIT License
8 stars 13 forks source link

Android crashes with IllegalArgumentException #67

Closed tr3v3r closed 1 year ago

tr3v3r commented 2 years ago

We are facing crashes on production on Android. The issue appears on App start

Error and stack trace:

image

The error thrown by the request method from 'NetworkHandlerImpl.kt' in exponea android-sdk.

The issues connected with okhttp packages for Android. This is related PR with an explanation.

Additional info:

"react-native-exponea-sdk": "1.0.0" "react-native": "0.67.3"

I've followed the steps in the stack trace and realized that URL is broken in :

image

FlushManagerImpl.kt

adam1929 commented 2 years ago

Hi @tr3v3r thank you for your report. I'm just hoping to ask for value for that broken URL you mentioned, but do not send it if it 'critical info' for you. I would like to see what is bad in URL at all. Back to problem. There is no catching of any technical exception according to broken URL or so. SDK is naively thinking of correct setup of baseUrl and project token (only dynamic part of URL that may cause problem). So there is no comprehensive check of configuration possibilities. Please, am I in correct thinking of that problem? Is there some advise from you, what you would expect in this case? Thank you.

xcibik00 commented 1 year ago

Closed due inactivity

ViktorOsadchyi commented 1 year ago

@adam1929 We have static baseUrl. Our baseUrl is https://exponea-api.<"our domain"> Also I see that the crash appears not only on App start.

Sorry, I don't have any more information yet.