Closed DirkDiggler31 closed 3 years ago
what about plain old fetch
requests?
Yes it doesn't work neither, it may be because of my extranet's company, but i don't understand why it's working in version 7.2.0 without any issues.
I'm sorry, but you're the only one reporting this :(
Maybe you can create a reproducible setup with our /example
app we could test with?
Thanks
I too am getting this issue, only in Android tho. iOS works fine. As with the original poster, it happens on the initial login...with a valid user name and password, we get the [Error: Network Error]
error. Without the library, it works ok. I'm going to try and recreated it with /example
to test with.
I have same problem, any solution?
I found a temp fix that worked for me...see here: https://github.com/facebook/react-native/issues/29196
Basically add this to build.gradle
:
api(platform("com.squareup.okhttp3:okhttp-bom:4.7.2"))
api("com.squareup.okhttp3:okhttp")
api("com.squareup.okhttp3:logging-interceptor")
can you please also fill this out:
Platform: [e.g. Android, iOS]
Platform OS: [e.g. Android 9, iOS 10]
Device: [e.g. iPhone6]
Emulator/ Simulator: [yes/ no]
Dev OS: [e.g. OSX 11.0.1, Win10]
react-native-mapbox-gl Version [e.g. 7.0.9]
Mapbox GL version [e.g. 6.3.0]
React Native Version [e.g. 0.59]
it was missing in the initial description
thanks
I'm marking this as upstream, I tried with the current master
on the example application and was unable to reproduce this issue.
test code:
const getJokes = async () => {
const jokes = await fetch('https://official-joke-api.appspot.com/jokes/ten');
return await jokes.json();
}
const jokes = await getJokes();
console.log('>>>>>>', jokes);
which returned correct results
I also tried with the endpoint mentioned in issue https://github.com/facebook/react-native/issues/29196 by @jarrodyellets
also works
without a proper repo and fully filled out specs of the issue template, there is nothing more we can do from our side
closing this - we can reopen if new info emerges
@ferdicus Consider that this is the same issue that I encountered with the okhttp
versions being out of sync.
@ferdicus Consider that this is the same issue that I encountered with the
okhttp
versions being out of sync.
you heard the man - please try with master
all :)
Hello, i have an app which is working fine. But if i install the @react-native-mapbox-gl/maps with a version >7.2.0, my axios request is blocked and return "network error" this request is called in the login, before any other request. I really don't get it,if i delete the dependency everything works fine. Here's my code for my request :
Thank you for your answer, have a nice day.
Version