Hello everyone,
Currently I’m building an application where I would like to make a request to an 3rd party oAuth Service (Not Google/Facebook), and I’m using Expo AppAuth to connect to their server. But when I did that, it always returns Error: ExpoAppAuth.Get Auth: Network error without further information. I tested it with my postman and it totally works fine. My internet connection has no issues at all too, and it happens in both Android & iOS. I will provide my codes to give better information
Hello, thank you for your response. I overwrite the file in
node_modules/expo-app-auth/android/src/main/java/expo/modules/appauth/AppAuthModule.java and saved it. But nothing seems to be changed
Unfortunately, just replacing the AppAuthModule.java file will not do anything. I just pointed to the diff so you could see that the code was trying to parse the registrationEndoint value as a URI. Also, I’m just guessing at what might be the problem/workaround based on what @chitova263 said and the diff. I have not yet had a need for AppAuth.
Based on the documentation and the registrationEndpoint workaround, I think your code is correct. So I hope @chitova263 or someone else has some more suggestions for you.
Why it won’t do anything? I thought it’s possible to modify it locally, but when you reinstall the package, the changes will be gone. Correct me if I’m wrong
I tried to add the registration Endpoint Workaround by specifying a dummy values. Turns out there is an another error. I’m really tired of this
That is generally true of JavaScript code in node_modules, but not Java code. That particular file is not used as-is. It has to be compiled into the Expo client app that is installed on the phone. So as far as I understand it there are two ways you could get the fix. 1.) Wait for a new version of the Expo app; 2.) Compile a version of the Expo app yourself and distribute that to your users.
About the current error, it looks to me like something is parsing your registrationEndpoint, but it doesn’t like it for some reason. Are you still using https://example.com or something else?