-
Notifications
You must be signed in to change notification settings - Fork 85
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
Apple Authentication error #2698
Comments
I'm seeing this issue as well |
Also experiencing this. Coming back to expo after 5 years and experiencing this with a new app 😂 |
Also having this issue with my project as well. It just started happening lately. I have never had a problem with it in the past |
Is anyone looking into this issue? It has been three days and multiple people are having the same issue. It doesn't seem like anyone from expo is even looking into this issue. |
Hey, I can't reproduce it on my end so far. These errors are often not easily reproducible between Apple accounts, and it makes it hard to debug. Can you run the command with |
@szdziedzic I just ran the command. It is returning a 500, is it okay if I paste the response in this issue? Not sure if there is any sensitive data in the error |
It's best to strip any cookies/session IDs, and so on just in case. You can just post stuff relevant to an error message/error code, without any data that is specific to you like an actual phone number. |
If it's 500 it seems to be an internal server error on Apple's end 🤔 Based on the error code itself it doesn't seem that it's something wrong with the payload that is sent from EAS CLI to Apple servers because then it would be some different error code related to validation error 🤔. Can you log in to developer.apple.com normally through the website using SMS 2FA? |
h [Error]: Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later |
@szdziedzic The entire team can authentication directly to the apple portal with SMS without an issue! I added the Error logs above and cleaned out any sensitive information |
@szdziedzic have you gotten a chance to look into this issue more? All of our agreements are to up date for Apple. It is concerning that other people are experiencing this issue as well. |
It's really hard for me to move forward without the reproducible example. I tested auth with multiple Apple accounts I have access to and it always works. Additionally, the error code signals some bug on the Apple end, because it's 500. Is there any chance you can show me the payload (without sensitive information) sent to Apple servers from your browser when applying the SMS code? We could diff the payload then and see what's different. |
Can you try to change the |
"~/.app-store/auth/apple-developer-portal-domain.json" is this file in unmanaged expo projects? I am unfamiliar with this file and its location. For the mean time our team has switched from sms verification to device verification and everything is working as expected, but there is a issue |
This is a file in the |
I found it. I can test this in 30 minutes, and I'll let you know if this changes anything |
@szdziedzic for the record, I don't see any It also seems that only some folks are experiencing this issue? If there was downtime on Apple's part, it seems that issue should be affecting everyone. |
Are you using Mac/Linux? 🤔
We've seen stories in the past that auth was broken only for certain accounts on Apple and it was magically working a few days later because they fixed something on their end. It would be helpful if you could compare the payload sent to https://idmsa.apple.com/appleauth/auth/verify/phone when authenticating using the browser vs the payload sent by EAS CLI. |
@szdziedzic Yes, using MacOS |
I tested eas apple authentication with https://developer-mdn.apple.com, but I am still seeing the same error |
Any solution?? |
Sadly no. According to the Expo team this is probably an issue on Apple's side of things. With the amount of traction this issue has been getting, I'm doubtful this is an apple issue, since sms authentication works on the portal without an issue. |
+1 on the issue and subscribing - will try to post helpful debug info when possible |
Disappointing! Seems less likely than not Apple is returning random 500 codes, but nothing is impossible. Back to good old Xcode 🤓
…On Wed, Nov 20, 2024 at 16:14 Kyle Alwyn ***@***.***> wrote:
+1 on the issue and subscribing - will try to post helpful debug info when
possible
—
Reply to this email directly, view it on GitHub
<#2698 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB53IROZHMBGNYSYW6QCNIL2BUQXXAVCNFSM6AAAAABR3NTNUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBZHAYDGMBUGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
hitting this as well. Changing the url in that file did not work. |
I asked a couple of people to try to repro this internally, but no luck, unfortunately 😞 I also manually analyzed the I really want to help solve it, but it's tough for me to even understand what's going on if I can't reproduce it on my end. You can also try to set |
If I could see what's different between these 2 requests or be able to repro it, it would be really helpful. |
Having the same issue still @JayOfemi |
Having the same issue as well. Was able to resolve this by logging into the apple account associated with the Apple developer account. Not ideal, but a quick workaround. Would be great to have a permanent fix! |
For the record I have done this multiple times and it has not fixed my issue. |
For those of us without Macs, there are no solutions. One of the key features of the Expo platform that we admire is the fact that we aren't beholden to having an Apple product. On the Apple website where this issue occurs, I found that pressing "resend" does send a 2FA SMS code. The error message in the eas-cli also seems to suggest same feature:
Could add a retry option (maybe ENV var or something) to attempt sending the code again. |
same issue here |
Just to make sure I understand it correctly - you started to use the |
From our observations, it seems to only occur for American phone numbers for now. Let me know if this observation isn't correct. |
When it comes to the affected account we have access to internally (mentioned here), we were able to see that there are some headers different in the requests done via the website and ones done through CLI. We are trying to find the right combination of headers to fix the issue, but the bad thing is that we can only try different requests 4 times before getting locked out. It makes it pretty hard to fix. |
We've just published |
Still not working for me eas -v Authentication with Apple Developer Portal failed!
|
Unfortunately I'm still receiving the same error on 14.0.3
|
This may be redundant, but make sure in your https://account.apple.com, there is a phone number in your "email & phone numbers". I have been getting this error, and when I tried to log in using a different account that has my phone attached, it worked. Now I'm stuck trying to find a phone number that isn't linked to an account already. Apple sends this error:
if there is no phone number there, even if you have a "trusted phone number" set up. It has to be a phone number linked to your account. Hope this helps, cause this is where I found my problem. |
I was able to reproduce the issue before (American phone number, located in America) and can confirm that |
Okay this is good actually, I did get it to work when using node 20.. |
eas-cli/14.0.3 linux-x64 node-v20.18.1
Still not working for me: |
It's working now for me on node v22.12.0 and eas-cli/14.0.3 |
Would not work on eas-cli/14.0.3 for me. Downgraded to 14.0.0 and it works |
Amazing! 🎉 🚀 Updating to Thank you so much - we can build! Full version - |
14.0.3 solved problem with
|
@alimek can you try to do |
Tried, asking for device/sms verification (tried both - device and sms) and still getting same issue. Same error was for
|
Same issue, going to try messing with the version. |
√ Logged in, verify your Apple account to continue Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later. Apple service errors:
× Logging in...
Still getting this bug but do not have access to a apple product to login to developer account. I have updated to newest eas-cli version and still no luck 👎. |
Yeah, really deeply need this fixed, can't add new provision profile changes and cannot push to App Stores, this is blocking our release date. Please fix this quickly |
I was able to get it working by taking one of my test apple devices, factory resetting it and logging in under the same apple credentials I use for eas. When I did an EAS build it asked me if i wanted to use 2fa from my device and it worked. For the record, I don't condone this fix because it required an apple device. |
can you clear the |
if you are encountering any issues related to those discussed in this thread, please do the following, in order:
if you are still having problems after doing this, please create a new issue with more information. thank you! |
Build/Submit details page URL
No response
Summary
When trying to create a new build with eas cli, apple authentication fails when requesting SMS 6 digit pin instead of device. We made sure eas cli is updated. This issue just started showing up yesterday.
Managed or bare?
managed
Environment
expo-env-info 1.2.1 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 18.18.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: AI-221.6008.13.2211.9477386
npmPackages:
expo: ~51.0.35 => 51.0.39
react: 18.2.0 => 18.2.0
react-native: 0.74.5 => 0.74.5
react-native-web: ~0.19.6 => 0.19.13
Expo Workflow: managed
✔ Check package.json for common issues
✔ Check Expo config for common issues
✔ Check native tooling versions
✔ Check if the project meets version requirements for submission to app stores
✔ Check for common project setup issues
✖ Check dependencies for packages that should not be installed directly
✔ Check for app config fields that may not be synced in a non-CNG project
✔ Check for issues with Metro config
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check that native modules do not use incompatible support packages
✔ Check for legacy global CLI installed locally
✔ Check that native modules use compatible support package versions for installed Expo SDK
Detailed check results:
The package "@types/react-native" should not be installed directly in your project, as types are included with the "react-native" package.
One or more checks failed, indicating possible issues with the project.
Error output
√ How do you want to validate your account? ... device / sms
Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later'. Retrying after 3 seconds (remaining: 3)
× Logging in...
Authentication with Apple Developer Portal failed!
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
Error: build command failed.
Reproducible demo or steps to reproduce from a blank project
Run eas cli for an apple build, and request sms for authentication
The text was updated successfully, but these errors were encountered: