Search results for

“Request failed with http status code 503”

200,989 results found

Post

Replies

Boosts

Views

Activity

Is there any status code indicate that transactionId is from sandbox?
In the old verifyReceipt endpoint doc, there is an important desc As a best practice, always call the production URL https://buy.itunes.apple.com/verifyReceipt first and proceed to verify with the sandbox URL if you receive a 21007 status code. Following this approach ensures that you don’t have to switch between URLs while your app is in testing, in review by App Review, or live in the App Store. So I can know the transactionId is for sandbox if return back 21007. And I am about to access to new App Store Server API, so the same, I wonder how can I recognize the transactionId is from sandbox by status code? The most likely desc is this: If you don’t have environment information, follow these steps: Call the endpoint using the production URL. If the call succeeds, the original transaction identifier belongs to the production environment. If you receive an [errorCode 4040005] with errorMessage as OriginalTransactionIdNotFoundError, (or HTTP response code
1
0
2.5k
Aug ’23
NWConnection never send failed status
Hello everyone,I'm currently creating a Swift Framework to add TCP capabilities to a C++ application.And I have issues I don't meet when I test my Swift code out of a framework.To be brief: I never receive failed state updates, the stateUpdateHandler is never called with a failed State or with a cancelled State. This happens whatever the way the connection is cut, either when I kill the client application or when I call cancel() client side. I receive waiting and ready states properly and my connections work fine, which puzzles me.To describe precisely my configuration, both my client and my server are using a Swift framework using network.framework. They are both C++ applications, running on the same machine (development environment). Communication between the C++ and Swift part of the application is fine.I manage properly to create connections and send data over them. If I cancel the connection either client or server side, the other side never gets notified. Same behavior occurs
10
0
6.2k
Feb ’19
Statuscode 503 (Service Unavailable) when decrypting CoreML model
Yesterday evening, upon a fresh install, my app was not able to decrypt the CoreML model and kept returning status code 503. I understood this as: Apple's service to download the decryption key is not available at the moment. This problem persisted for at least 8 hours. Three questions: Does that occur more often? It means that during such times, new customers of my app will not be able to use the app. Anyone has some sample code on how to identify this situation / extract the status code from the error object? (Instead of error 'You need an internet connection' I would like to issue error 'Apple server currently not available - try again later') Anyone knows how to force/simulate this situation so that I can analyse the error object and see how I can identify the situation? Below my code to retrieve the model: NSURL *modelUrl = [[NSBundle mainBundle] URLForResource:modelName withExtension:@mlmodelc]; [MLModel loadContentsOfURL:modelUrl configurat
2
0
1.3k
Oct ’22
Reply to Xcode 26.4 refuses to pair with my Series 4 iWatch
I made more progress but the operation is still failing: I unpaired my watch then re-paired it I tried many times to get the watch to show the Developer Mode option - it would just not show it. Finally I restarted the phone, restarted the watch, insured both on the same WiFi network as the Mac, plugged the phone back into the Mac with Xcode running, and voila - I was finally able to enable it. Now, the watch showed up in the Xcode Devices window, but I got the same error as I originally was getting. Now I'm suspecting Bonjour, so I restarted my Mac, and rebooted my TP-Link Archer 8 router (has latest firmware). Now, Xcode can connect to my watch!!! It connects and tries to read the symbols, but fails with an alert in a window. Clicking on the window, I was able to copy the error: Failed with HTTP status 400: bad request Domain: DataGatheringNSURLSessionDelegate Code: 1 User Info: { DVTErrorCreationDateKey = 2026-04-07 13:10:58 +0000; } Failed
Apr ’26
CKError - Service Unavailable
I'm repeatedly getting this error on one - but not all - CKQuery operation:CKError(_nsError: <CKError 0x608000846ff0: Service Unavailable (6/2022); Request failed with http status code 503>)There's no further useful info in the UserInfo dictionary, including no value for the CKErrorRetryAfterKey.My code initially queries CloudKit for basically two fields: name and hash. Hash is a hash value for a CKAsset file (on the same record) that I don't want to download unless the hash code indicates that the file has changed.For all the records whose hash codes indicate that I should download the CKAsset, I prepare the same query in the same code, but add the json field and rerun, to download only the json files that I need. I use this predicate, containing an array of the desired CKReferences NSPredicate.init(format: recordID in %@, fullRecordsToDownload)The first query always works, the second always fails with the 503
4
0
2.8k
Jul ’17
CORS OPTIONS request failed against api.appstoreconnect.apple.com
We are trying to talk to the AppStoreConnect API via api.appstoreconnect.apple.com through a Chrome browser. Unfortunately, the CORS preflight request is blocked and as a result you implicitly get the error message has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. An example of a CURL OPTIONS request, where you can see that the response is a 401 HTTP status code, that should not be in this case. curl -I 'https://api.appstoreconnect.apple.com/v1/apps/1206433997/appStoreVersions' -X 'OPTIONS' -H 'accept: */*' -H 'access-control-request-method: GET' -H 'origin: https://www.mysports.com' HTTP/2 401 server: daiquiri/3.0.0 date: Thu, 12 Aug 2021 17:13:56 GMT content-type: application/json content-length: 350 strict-transport-security: max-age=31536000; includeSubDomains x-apple-jingle-correlation-key: 7Y5RPIUSI4MNTO4KNTMVW46G2I x-daiquiri-instance: daiquiri:38493
0
0
1.4k
Aug ’21
Error -1002 || Http-Request
Hallo,I am trying to send a Http-Request to an ESP8266. The connection isn't secure (Cleartext/Http), but that isn't a problem for my Application.let urlComp = NSURLComponents(string: urlString)! var urlRequest = URLRequest(url: urlComp.url!) urlRequest.httpMethod = GET let config = URLSessionConfiguration.default let session = URLSession(configuration: config) let task = session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in }) task.resume()This is my code for doing this. But I get an error. I found out that I have to allow non-https connections, so I addet following lines to myInfo.plist:<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>Please tell me how I can solve this ERROR 1002 or if ther is a other way for this http-request and what the code for it is.Greetings from GermanySteffen Rohwer (absolutely Noob)
1
0
3.6k
Mar ’18
App record request failed
Hi how to resolve below issue, I can't update my application to app store connector AppsService: ResponseErrors (1): Error status: 403, code: FORBIDDEN.OFAC_UNCLEARED, title: 'This Apple ID has not been cleared by sanctions.', detail: 'This Apple ID has not been cleared by sanctions, so it cannot access this page.', id: CBISLAII7FNFDDT2A55TPQVC7I
1
0
2.2k
Mar ’24
Reply to NSUrlcredential object's user, password fields are null despite of 'Proceed' result of Trust evaluation (SecTrustEvaluate)
You have misunderstood the semantics of the NSURLAuthenticationMethodServerTrust authentication challenge. This has nothing to do with OAuth and everything to do with TLS server trust evaluation. TLS authentication challenges (this one and NSURLAuthenticationMethodClientCertificate) never have password information. Finally in DidCompleteWithError we get a response with http status code 401.This 401 error is coming from your server, indicating that your request was able to make it to the server and the response made it back to your client (thus TLS is working just fine). I’m not sure why the server is failing your request, but I have put general guidance on that topic in my Debugging HTTP Server-Side Errors article.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Feb ’19
Apple Pay c#. Response status code does not indicate success: 417 (Expectation Failed)
On step onvalidatemerchant I call service that make response to apple and should returns apple session, when I make request to Apple apple enpoint returns 417 code.I'm trying to get merchant session from Apple Pay Sandbox but my code always returns an error 417 (Expectation Failed). I tried different ways with WebRequestHandler, httpclient, different headers but result is the same.Example of my service logic:static void Main(string[] args) { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; ServicePointManager.Expect100Continue = false; using (var httpClient = GetSecureHttpClient()) { var jsonData = {merchantIdentifier : merchant.com.domain.www, domainName : www.domain.com, displayName : MySite }; using (var content = new StringContent(jsonData, Encoding.UTF8, application/json)) { try { httpClient.DefaultRequestHeaders.ExpectContinue = false; using (var response = httpClient.PostAsync(https://apple-pay-gateway-cert.apple.com/paymentservices/startSession, co
0
0
1.8k
Nov ’17
Reply to altool failed upload with Error: Unable to authenticate. (-19209)
We're also seeing this, but only on apps with ODR bundles enabled. The upload completes happily after a couple of minutes, but then the authorisation fails. If the problem were with the API keys, I would expect it to fail before it attempts the upload. `==================== = File: = eTag: cf0451648383f82d2d0abfcf0c40f3db ==================== Exiting uploadUsingVBTxWithUploadOperations: jsonRequest as dictionary = { data = { attributes = { items = ( { correlationKey = ; kpiValue = 1.508335e+07; kpiValueType = Counter; level = INFO; message = bytesSent:2345032300 bytesLost:0 partsSent:35 retryCount:0 failureCount:0 elapseU2026; name = VoiceBoxClient - Upload throughput (bytes/sec); timestamp = 2022-03-08T14:29:14.154Z; } ); sourceApplication = altool; }; type = metricsAndLogging; }; } ==================== = URL: https://contentdelivery.itunes.apple.com/MZContentDeliveryService/iris/v1/metricsAndLogging = status code: 401 **status code 401, auth iss
Mar ’22
Is there any status code indicate that transactionId is from sandbox?
In the old verifyReceipt endpoint doc, there is an important desc As a best practice, always call the production URL https://buy.itunes.apple.com/verifyReceipt first and proceed to verify with the sandbox URL if you receive a 21007 status code. Following this approach ensures that you don’t have to switch between URLs while your app is in testing, in review by App Review, or live in the App Store. So I can know the transactionId is for sandbox if return back 21007. And I am about to access to new App Store Server API, so the same, I wonder how can I recognize the transactionId is from sandbox by status code? The most likely desc is this: If you don’t have environment information, follow these steps: Call the endpoint using the production URL. If the call succeeds, the original transaction identifier belongs to the production environment. If you receive an [errorCode 4040005] with errorMessage as OriginalTransactionIdNotFoundError, (or HTTP response code
Replies
1
Boosts
0
Views
2.5k
Activity
Aug ’23
Endpoint Security Entitlement request status.
I have requested an Endpoint Security entitlement through this form:https://developer.apple.com/contact/request/system-extension/How can I see that my request is done?How can I check that I am able to use this entitlement?Is it should be listed in my App ID Configuration Capabilities?
Replies
8
Boosts
0
Views
4.4k
Activity
May ’20
NWConnection never send failed status
Hello everyone,I'm currently creating a Swift Framework to add TCP capabilities to a C++ application.And I have issues I don't meet when I test my Swift code out of a framework.To be brief: I never receive failed state updates, the stateUpdateHandler is never called with a failed State or with a cancelled State. This happens whatever the way the connection is cut, either when I kill the client application or when I call cancel() client side. I receive waiting and ready states properly and my connections work fine, which puzzles me.To describe precisely my configuration, both my client and my server are using a Swift framework using network.framework. They are both C++ applications, running on the same machine (development environment). Communication between the C++ and Swift part of the application is fine.I manage properly to create connections and send data over them. If I cancel the connection either client or server side, the other side never gets notified. Same behavior occurs
Replies
10
Boosts
0
Views
6.2k
Activity
Feb ’19
Statuscode 503 (Service Unavailable) when decrypting CoreML model
Yesterday evening, upon a fresh install, my app was not able to decrypt the CoreML model and kept returning status code 503. I understood this as: Apple's service to download the decryption key is not available at the moment. This problem persisted for at least 8 hours. Three questions: Does that occur more often? It means that during such times, new customers of my app will not be able to use the app. Anyone has some sample code on how to identify this situation / extract the status code from the error object? (Instead of error 'You need an internet connection' I would like to issue error 'Apple server currently not available - try again later') Anyone knows how to force/simulate this situation so that I can analyse the error object and see how I can identify the situation? Below my code to retrieve the model: NSURL *modelUrl = [[NSBundle mainBundle] URLForResource:modelName withExtension:@mlmodelc]; [MLModel loadContentsOfURL:modelUrl configurat
Replies
2
Boosts
0
Views
1.3k
Activity
Oct ’22
Reply to Xcode 26.4 refuses to pair with my Series 4 iWatch
I made more progress but the operation is still failing: I unpaired my watch then re-paired it I tried many times to get the watch to show the Developer Mode option - it would just not show it. Finally I restarted the phone, restarted the watch, insured both on the same WiFi network as the Mac, plugged the phone back into the Mac with Xcode running, and voila - I was finally able to enable it. Now, the watch showed up in the Xcode Devices window, but I got the same error as I originally was getting. Now I'm suspecting Bonjour, so I restarted my Mac, and rebooted my TP-Link Archer 8 router (has latest firmware). Now, Xcode can connect to my watch!!! It connects and tries to read the symbols, but fails with an alert in a window. Clicking on the window, I was able to copy the error: Failed with HTTP status 400: bad request Domain: DataGatheringNSURLSessionDelegate Code: 1 User Info: { DVTErrorCreationDateKey = 2026-04-07 13:10:58 +0000; } Failed
Replies
Boosts
Views
Activity
Apr ’26
CKError - Service Unavailable
I'm repeatedly getting this error on one - but not all - CKQuery operation:CKError(_nsError: <CKError 0x608000846ff0: Service Unavailable (6/2022); Request failed with http status code 503>)There's no further useful info in the UserInfo dictionary, including no value for the CKErrorRetryAfterKey.My code initially queries CloudKit for basically two fields: name and hash. Hash is a hash value for a CKAsset file (on the same record) that I don't want to download unless the hash code indicates that the file has changed.For all the records whose hash codes indicate that I should download the CKAsset, I prepare the same query in the same code, but add the json field and rerun, to download only the json files that I need. I use this predicate, containing an array of the desired CKReferences NSPredicate.init(format: recordID in %@, fullRecordsToDownload)The first query always works, the second always fails with the 503
Replies
4
Boosts
0
Views
2.8k
Activity
Jul ’17
CORS OPTIONS request failed against api.appstoreconnect.apple.com
We are trying to talk to the AppStoreConnect API via api.appstoreconnect.apple.com through a Chrome browser. Unfortunately, the CORS preflight request is blocked and as a result you implicitly get the error message has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. An example of a CURL OPTIONS request, where you can see that the response is a 401 HTTP status code, that should not be in this case. curl -I 'https://api.appstoreconnect.apple.com/v1/apps/1206433997/appStoreVersions' -X 'OPTIONS' -H 'accept: */*' -H 'access-control-request-method: GET' -H 'origin: https://www.mysports.com' HTTP/2 401 server: daiquiri/3.0.0 date: Thu, 12 Aug 2021 17:13:56 GMT content-type: application/json content-length: 350 strict-transport-security: max-age=31536000; includeSubDomains x-apple-jingle-correlation-key: 7Y5RPIUSI4MNTO4KNTMVW46G2I x-daiquiri-instance: daiquiri:38493
Replies
0
Boosts
0
Views
1.4k
Activity
Aug ’21
Error -1002 || Http-Request
Hallo,I am trying to send a Http-Request to an ESP8266. The connection isn't secure (Cleartext/Http), but that isn't a problem for my Application.let urlComp = NSURLComponents(string: urlString)! var urlRequest = URLRequest(url: urlComp.url!) urlRequest.httpMethod = GET let config = URLSessionConfiguration.default let session = URLSession(configuration: config) let task = session.dataTask(with: urlRequest, completionHandler: { (data, response, error) in }) task.resume()This is my code for doing this. But I get an error. I found out that I have to allow non-https connections, so I addet following lines to myInfo.plist:<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>Please tell me how I can solve this ERROR 1002 or if ther is a other way for this http-request and what the code for it is.Greetings from GermanySteffen Rohwer (absolutely Noob)
Replies
1
Boosts
0
Views
3.6k
Activity
Mar ’18
Request for Update on App Review Status
My app was submitted on February 14, 2026, and the Apple ID is 6758344632. It has now been over a month, but the app is still in Waiting for Review status. Could you please let me know when the review is expected to be processed?
Replies
0
Boosts
0
Views
37
Activity
Mar ’26
App record request failed
Hi how to resolve below issue, I can't update my application to app store connector AppsService: ResponseErrors (1): Error status: 403, code: FORBIDDEN.OFAC_UNCLEARED, title: 'This Apple ID has not been cleared by sanctions.', detail: 'This Apple ID has not been cleared by sanctions, so it cannot access this page.', id: CBISLAII7FNFDDT2A55TPQVC7I
Replies
1
Boosts
0
Views
2.2k
Activity
Mar ’24
Reply to NSUrlcredential object's user, password fields are null despite of 'Proceed' result of Trust evaluation (SecTrustEvaluate)
You have misunderstood the semantics of the NSURLAuthenticationMethodServerTrust authentication challenge. This has nothing to do with OAuth and everything to do with TLS server trust evaluation. TLS authentication challenges (this one and NSURLAuthenticationMethodClientCertificate) never have password information. Finally in DidCompleteWithError we get a response with http status code 401.This 401 error is coming from your server, indicating that your request was able to make it to the server and the response made it back to your client (thus TLS is working just fine). I’m not sure why the server is failing your request, but I have put general guidance on that topic in my Debugging HTTP Server-Side Errors article.Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Replies
Boosts
Views
Activity
Feb ’19
Anyone else getting 503 response when verifying a in-app receipt?
verify iap receipt timeout or get 503 response.
Replies
0
Boosts
0
Views
253
Activity
Jun ’20
Apple Pay c#. Response status code does not indicate success: 417 (Expectation Failed)
On step onvalidatemerchant I call service that make response to apple and should returns apple session, when I make request to Apple apple enpoint returns 417 code.I'm trying to get merchant session from Apple Pay Sandbox but my code always returns an error 417 (Expectation Failed). I tried different ways with WebRequestHandler, httpclient, different headers but result is the same.Example of my service logic:static void Main(string[] args) { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; ServicePointManager.Expect100Continue = false; using (var httpClient = GetSecureHttpClient()) { var jsonData = {merchantIdentifier : merchant.com.domain.www, domainName : www.domain.com, displayName : MySite }; using (var content = new StringContent(jsonData, Encoding.UTF8, application/json)) { try { httpClient.DefaultRequestHeaders.ExpectContinue = false; using (var response = httpClient.PostAsync(https://apple-pay-gateway-cert.apple.com/paymentservices/startSession, co
Replies
0
Boosts
0
Views
1.8k
Activity
Nov ’17
Accept language in a http request
Has anything changed with the new Xcode 13 SDK with regards to accept-language header in a HTTP request. In the previous version, accept language was given both language and region code, but with the recent update, only the language code is being sent. This is happening with Japanese language.
Replies
0
Boosts
0
Views
1.1k
Activity
Dec ’21
Reply to altool failed upload with Error: Unable to authenticate. (-19209)
We're also seeing this, but only on apps with ODR bundles enabled. The upload completes happily after a couple of minutes, but then the authorisation fails. If the problem were with the API keys, I would expect it to fail before it attempts the upload. `==================== = File: = eTag: cf0451648383f82d2d0abfcf0c40f3db ==================== Exiting uploadUsingVBTxWithUploadOperations: jsonRequest as dictionary = { data = { attributes = { items = ( { correlationKey = ; kpiValue = 1.508335e+07; kpiValueType = Counter; level = INFO; message = bytesSent:2345032300 bytesLost:0 partsSent:35 retryCount:0 failureCount:0 elapseU2026; name = VoiceBoxClient - Upload throughput (bytes/sec); timestamp = 2022-03-08T14:29:14.154Z; } ); sourceApplication = altool; }; type = metricsAndLogging; }; } ==================== = URL: https://contentdelivery.itunes.apple.com/MZContentDeliveryService/iris/v1/metricsAndLogging = status code: 401 **status code 401, auth iss
Replies
Boosts
Views
Activity
Mar ’22