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
[Bug]: PlatformException(FL_INIT_FAILED, com.google.android.recaptcha.RecaptchaException: Internal Error, null, null) #60
Comments
Of course, this intranet can access Google services |
Excellent. This exception comes from Flutter, but is due to an underlying issue in the SDK. I believe this is related to a hostname difference in China. Fixing it will require an SDK update. Give us a few weeks and I think we can sort this out. It would be really great if you would be willing to privately beta test something in your own environment for me. Email me at my first name and lastname @google.com and I can send youa build. Internal bug reference: b/290170911 |
I do have a possible fix in a beta build if someone wants to try it. Also verify that you can reach the following two URLs: https://www.gstatic.cn/images/branding/product/1x/avatar_pages_square_blue_32dp.png |
https://www.gstatic.cn/images/branding/product/1x/avatar_pages_square_blue_32dp.png I am able to successfully access both addresses |
[INFO:CONSOLE(1)] "Uncaught ReferenceError: recaptcha is not defined", source: https://www.recaptcha.net/recaptcha/api3/mwv |
Update: we are working internally first to see if we can verify the problem and fix. Thanks for your patience. |
OK, I will check the latest situation every day. If there is a package that can be tested, please tell me where it is. Thank you 🙏 |
We have confirmed the fix by testing behind the firewall in China. We are now waiting for another internal fix to release. I would expect to see this in 18.3.0 |
We have not forgotten about this (I was on vacation). We are planing on a release this week or next. |
Thanks @mcorner. Very eager to see this go live as soon as it can. |
Hello again @mcorner. Could you please advise whether this fix is on-track to be released this week? |
We are in the middle of the release now, so very likely in the next few days. |
Android and iOS 18.3.0 have been released with a fix for this issue. |
Much appreciated @mcorner. |
This internal error happens also on Android in the 18.2.0 , is this mandatory to update it to 18.3.0 ? This is because I want to know if that internal error is also fixed for every platform using the latest version. We need to migrate different modules in the company to 1.9.0 in order to update this dependency and we need to know if its a good choice to migrate to this latest version @mcorner |
The forced Kotlin upgrade is an unfortunate side effect, we have looked into alternatives, but Google follows the Kotlin releases very, very quickly. But yes, you have to be on at least 18.3.0 to fix the issue in China. There are other sources of internal errors, but those are getting stamped out over time from the backend. |
Great @mcorner , we are on Argentina, but I think that upgrading our modules to kotlin 1.9 will be the best for future updates, because new updates of recaptcha will require kotlin 1.9.0 , that's right ? Thanks ! |
The original issue here is only in China. There are other benefits from upgrading (stability, detection, etc) and we strongly encourage users to upgrade whenever possible. The Kotlin compatibility (IIUC) is +1 and -1 minor version. SDK 18.3.0 was compiled with 1.9.0 so it should work with Kotlin 1.8, 1.9 or some future 1.10. Let me know what works for you. |
So, can we use kotlin 1.8.0 with gradle 8.0 and JDK 19 to upgrade to 18.3 , right ? Because instead of migrating to kotlin 1.9.0 , our team will have less effort upgrading to kotlin 1.8.0 to upgrade recaptcha to 18.3.0 Let me know about this so we can start working on it, thanks a lot @mcorner |
I don't believe we have tested all of the combinations of jdk and gradle versions, but I don't see why it wouldn't work. You can always try a small test app first to confirm. |
@mcorner Hi, it's still happening on 18.3.0 this is happens when execute not on getClient |
Can you post a text version of this stack trace? |
And open a new bug, I see you are not using this in China so this is not related to the original issue. |
Are you seeing the problem on Android or iOS?
None
Contact Details
yuwenhaomail@gmail.com
Describe the bug
This error may occur on individual networks and phones
Site Key
No response
Select the method used to integrate with reCAPTCHA Mobile.
SPM (iOS)
SDK Version
18.2.1
To Reproduce
RecaptchaEnterprise.initClient can throw exception when open app
Expected behavior
No response
Development IDE
No response
To Reproduce
Relevant log output
Relevant log output
This issue may occur when using the company intranet and cannot be replicated on other networks
Sorry, we can only provide this information. For whatever reason, I don't have any direction either
The text was updated successfully, but these errors were encountered: