Search results for

“Request failed with http status code 503”

201,010 results found

Post

Replies

Boosts

Views

Activity

What happens if apple-app-site-association request failed?
When app installed from app store, iOS requests apple-app-site-association file for very first time, as I know.But if the server was down at that time, iOS will fail to obtain apple-app-site-association file.My question is, when iOS will retry to download that file under that situation.I confirmed that, 1) When App Installed or 2) When device rebootiOS requests apple-app-site-association file, but I expect that more circumstances exsists.Is there anyone who knows?
1
0
2.3k
Oct ’15
Reply to Swift - Http get request to class
This is what I am trying to do: struct shellyProperties : Codable { let device_id: String let name: String let app: String let model: String let stock_fw_model: String let host: String let version: String let fw_build: String let uptime: Int let failsafe_mode: Bool let auth_en: Bool } func GetShellyProp(ip : String)-> shellyProperties{ var shelly_dev = shellyProperties(device_id: , name: , app: , model: , stock_fw_model: , host: , version: , fw_build: , uptime: 0, failsafe_mode: false, auth_en: false) // Create URL let url = URL(string: http:// + ip + /rpc/Shelly.GetInfo) //let url = URL(string: http:// + 10.0.1.6 + /rpc/Shelly.GetInfo) guard let requestUrl = url else { fatalError() } // Create URL Request var request = URLRequest(url: requestUrl) // Specify HTTP Method to use request.httpMethod = GET // Send HTTP Request let task = URLSession.shared.dataTask(with: request) { (data, response, error) in // Check if Error took place if l
Jun ’21
Can I send a http request in iPhone Safari extension?
func itemLoadCompletedWithPreprocessingResults(_ javaScriptPreprocessingResults: [String: Any]) { let configuration = URLSessionConfiguration.background(withIdentifier: com.wdy.backgroundsession) configuration.sharedContainerIdentifier = group.com.joe.WebSiteTranslator let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil) var request = URLRequest(url: URL(string: http://fanyi.sogou.com/reventondc/api/sogouTranslate)!) request.setValue(application/x-www-form-urlencoded, forHTTPHeaderField: Content-Type) request.httpMethod = POST let postString = params.compactMap({ (key, value) -> String in return (key)=(value) }).joined(separator: &) request.httpBody = postString.data(using: .utf8) let _ = session.dataTask(with: request) self.doneWithResults([newURL: ]) }This is the error message I received2019-11-25 17:41:38.646931+0800 Extension[13136:457276] Task <A8690996-9E59-43DB-B8CB-24EEBD75BB5A>.<1> load failed with error Erro
0
0
487
Nov ’19
Receipt Validation Failing with Status 21002 in Sandbox – Valid Receipt from purchaseUpdatedListener.
Hi Apple Developer Support, We're currently implementing auto-renewable subscriptions in a React Native app using the react-native-iap library. The subscription purchases are working as expected in Sandbox. We receive the transaction and purchaseUpdatedListener gives us a valid-looking transactionReceipt However, when we attempt to validate this receipt with Apple's servers, the response consistently returns status code 21002, indicating that the receipt data is either malformed or missing. We’ve confirmed the receipt is well-formed, properly passed as received, and well above the minimum size expected. The shared secret is correctly configured and matches the subscription group. We're using the correct sandbox endpoint and ensuring no modification is done to the receipt before validation. Despite this, validation fails every time. We are looking for guidance or clarification on what might cause this status, especially when the receipt is coming directly from the system aft
1
0
178
Jun ’25
POST request failing only when app goes in to background.
I'm trying to troubleshoot what is going on with my app. The app works just fine when the user is logged in. It's able to post data to my REST API just fine. But when the app goes in to the background, the BGAppRefreshTask fires off just fine, but it's unable to post its data. There payload is super small a two keys and two short strings and thats it. I've tried searching on kCFStreamErrorCodeKey -2103 and ErrorDomainKey 4 but not much comes up. Here is my error with the URL string altered... Error Domain=NSURLErrorDomain Code=-1001 The request timed out. UserInfo={_kCFStreamErrorCodeKey=-2103, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3126EFA1-00D3-4423-A31B-D40AB900292D>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( LocalDataTask <3126EFA1-00D3-4423-A31B-D40AB900292D>.<1> ), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://my.example.com/myapi/v1/device, NSErrorFailingURLKey=https://my.examp
2
0
418
Oct ’24
Reply to Notary tool returns status: Invalid
[09:28:18.369Z] Info [API] Initial status: In Progress) [09:28:18.371Z] Info [API] Waiting 5 seconds before next poll... [09:28:23.374Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/submissions/75b7dc7b-364b-4929-a6f1-184bf3fd830d?, Parameters: [:] [09:28:23.377Z] Debug [AUTHENTICATION] Using cached token value for app-specific password request: MYTEAMID:MYAPPLEID [09:28:23.379Z] Debug [AUTHENTICATION] Authenticating request with App Specific Password credentials. AppleID: MYAPPLEID, Password: private, Team ID: MYTEAMID [09:28:23.381Z] Debug [TASKMANAGER] Starting Task Manager loop to wait for asynchronous HTTP calls. [09:28:23.867Z] Debug [API] Received response status code: 200, message: no error, URL: https://appstoreconnect.apple.com/notary/v2/submissions/75b7dc7b-364b-4929-a6f1-184bf3fd830d?, Correlation Key: LCSKFK6SWNEQAYSLKCBQM2TBVM [09:28:23.870Z] Debug [TASKMANAGER] Completed Task
Topic: Code Signing SubTopic: Notarization Tags:
May ’24
Validating receipt comes back with status code 21002
Problem I'm having when validating auto-renewable receiptStatus code: status code 21002Apple said: The data in the receipt-data property was malformed or missing.Trying to validate receipt server side to prevent hacks. In app purchases for auto-renewable subscription. I had converted this code from Swift 1 to Swift 3 so maybe the code is old and apple changed its ways so maybe someone can help me.Every time I run the validateReceipt() function in viewDidLoad and before I show my content. The validateReceipt() is supposed to update a isValidated bool to true when correct and false to when not validated, to continue to MainController.Using the sandbox url https://sandbox.itunes.apple.com/verifyReceiptHere is the validateReceipt() functionfunc validateReceipt() { let receiptUrl = Bundle.main.appStoreReceiptURL do { let receipt: Data = try Data(contentsOf:receiptUrl!) let receiptdata: NSString = receipt.base64EncodedString(options: NSData.Base64EncodingOptions
0
0
4.4k
Aug ’17
Reply to Entitlement issues with network extension
Lucky, people I am struggling over 1,5 year with code signing not working for not-paying dev accounts (and even Apple support cannot help maybe they are afraid to admt they no longer allow testing app od device for non-paid accounts). That being said on Monterey I always see during run Failed retrieving MusicKit tokens: Error Domain=ICErrorDomain Code=-7009 Failed to retrieve bundle identifier of the requesting application. The requesting application is likely missing the com.apple.application-identifier entitlement. UserInfo={NSDebugDescription=Failed to retrieve bundle identifier of the requesting application. The requesting application is likely missing the com.apple.application-identifier entitlement.}. Throwing .permissionDenied. 2022-08-10 19:37:12.939452+0200 ConMusic[3082:33162] [DataRequesting] Failed retrieving tokens for MusicDataRequest.Context(url: https://api.music.apple.com/v1/catalog/us/artists/1
Topic: App & System Services SubTopic: Drivers Tags:
Aug ’22
Reply to Swift Post request ,Django backend
what should I do? Provide more information about your problem. 😉 What is that “result” string: the body of the server response, something in the server log, something else? Assuming you get a valid HTTP response (though not shown in your code), what is the status code: 200? 4XX? What is the body of the response? You don’t set a Content-Type: application/json header. Does your server require that header in order to handle the request?
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’22
Reply to TestFlight I can't add internal testing group to my recent build
Same issue for me , i contacted apple support and sent them email with all information that they requested , i just checked the https://developer.apple.com/system-status/ it seams they are working on it
Replies
Boosts
Views
Activity
Dec ’22
Code signing "ResearchKit.framework" failed.
I am building an app that uses the ResearchKit framework from GitHub. I archived and it also runs on Simulator. When I export it, I get an error that says: Code signing ResearchKit.framework failed. How should I fix this?
Replies
1
Boosts
0
Views
860
Activity
Jun ’21
Reply to Cannot connect to iTunes Store
I got the same issue with youThe error message:Error Domain=SSErrorDomain Code=109 Cannot connect to iTunes Store UserInfo=0x174c73dc0 {NSLocalizedDescription=Cannot connect to iTunes Store, SSErrorHTTPStatusCodeKey=503}
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’15
Reply to Human pose detection failing on Vision Pro
While the sample lists iOS 17.0+ and iPadOS 17.0+, the request that fails lists visionOS 1.0+ as well (https://developer.apple.com/documentation/vision/vndetecthumanbodypose3drequest). I tried using that request in a separate app and it failed on vision pro as well.
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Mar ’25
What happens if apple-app-site-association request failed?
When app installed from app store, iOS requests apple-app-site-association file for very first time, as I know.But if the server was down at that time, iOS will fail to obtain apple-app-site-association file.My question is, when iOS will retry to download that file under that situation.I confirmed that, 1) When App Installed or 2) When device rebootiOS requests apple-app-site-association file, but I expect that more circumstances exsists.Is there anyone who knows?
Replies
1
Boosts
0
Views
2.3k
Activity
Oct ’15
Reply to Swift - Http get request to class
This is what I am trying to do: struct shellyProperties : Codable { let device_id: String let name: String let app: String let model: String let stock_fw_model: String let host: String let version: String let fw_build: String let uptime: Int let failsafe_mode: Bool let auth_en: Bool } func GetShellyProp(ip : String)-> shellyProperties{ var shelly_dev = shellyProperties(device_id: , name: , app: , model: , stock_fw_model: , host: , version: , fw_build: , uptime: 0, failsafe_mode: false, auth_en: false) // Create URL let url = URL(string: http:// + ip + /rpc/Shelly.GetInfo) //let url = URL(string: http:// + 10.0.1.6 + /rpc/Shelly.GetInfo) guard let requestUrl = url else { fatalError() } // Create URL Request var request = URLRequest(url: requestUrl) // Specify HTTP Method to use request.httpMethod = GET // Send HTTP Request let task = URLSession.shared.dataTask(with: request) { (data, response, error) in // Check if Error took place if l
Replies
Boosts
Views
Activity
Jun ’21
AppClip code signing fails
I've created App Clip for my Application, but code signing fails with below error. Provisioning profile **** doesn't match the entitlements file's value for the com.apple.developer.parent-application-identifiers entitlement.**
Replies
0
Boosts
0
Views
607
Activity
May ’21
Can I send a http request in iPhone Safari extension?
func itemLoadCompletedWithPreprocessingResults(_ javaScriptPreprocessingResults: [String: Any]) { let configuration = URLSessionConfiguration.background(withIdentifier: com.wdy.backgroundsession) configuration.sharedContainerIdentifier = group.com.joe.WebSiteTranslator let session = URLSession(configuration: configuration, delegate: self, delegateQueue: nil) var request = URLRequest(url: URL(string: http://fanyi.sogou.com/reventondc/api/sogouTranslate)!) request.setValue(application/x-www-form-urlencoded, forHTTPHeaderField: Content-Type) request.httpMethod = POST let postString = params.compactMap({ (key, value) -> String in return (key)=(value) }).joined(separator: &) request.httpBody = postString.data(using: .utf8) let _ = session.dataTask(with: request) self.doneWithResults([newURL: ]) }This is the error message I received2019-11-25 17:41:38.646931+0800 Extension[13136:457276] Task <A8690996-9E59-43DB-B8CB-24EEBD75BB5A>.<1> load failed with error Erro
Replies
0
Boosts
0
Views
487
Activity
Nov ’19
Reply to Cannot connect to iTunes Store
Same issue here Error Domain=SSErrorDomain Code=109 Cannot connect to iTunes Store UserInfo=0x175ca850 {SSErrorHTTPStatusCodeKey=503, NSLocalizedDescription=Cannot connect to iTunes Store}Please reply if its working 😟
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’15
Receipt Validation Failing with Status 21002 in Sandbox – Valid Receipt from purchaseUpdatedListener.
Hi Apple Developer Support, We're currently implementing auto-renewable subscriptions in a React Native app using the react-native-iap library. The subscription purchases are working as expected in Sandbox. We receive the transaction and purchaseUpdatedListener gives us a valid-looking transactionReceipt However, when we attempt to validate this receipt with Apple's servers, the response consistently returns status code 21002, indicating that the receipt data is either malformed or missing. We’ve confirmed the receipt is well-formed, properly passed as received, and well above the minimum size expected. The shared secret is correctly configured and matches the subscription group. We're using the correct sandbox endpoint and ensuring no modification is done to the receipt before validation. Despite this, validation fails every time. We are looking for guidance or clarification on what might cause this status, especially when the receipt is coming directly from the system aft
Replies
1
Boosts
0
Views
178
Activity
Jun ’25
POST request failing only when app goes in to background.
I'm trying to troubleshoot what is going on with my app. The app works just fine when the user is logged in. It's able to post data to my REST API just fine. But when the app goes in to the background, the BGAppRefreshTask fires off just fine, but it's unable to post its data. There payload is super small a two keys and two short strings and thats it. I've tried searching on kCFStreamErrorCodeKey -2103 and ErrorDomainKey 4 but not much comes up. Here is my error with the URL string altered... Error Domain=NSURLErrorDomain Code=-1001 The request timed out. UserInfo={_kCFStreamErrorCodeKey=-2103, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3126EFA1-00D3-4423-A31B-D40AB900292D>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( LocalDataTask <3126EFA1-00D3-4423-A31B-D40AB900292D>.<1> ), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://my.example.com/myapi/v1/device, NSErrorFailingURLKey=https://my.examp
Replies
2
Boosts
0
Views
418
Activity
Oct ’24
Reply to Notary tool returns status: Invalid
[09:28:18.369Z] Info [API] Initial status: In Progress) [09:28:18.371Z] Info [API] Waiting 5 seconds before next poll... [09:28:23.374Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/submissions/75b7dc7b-364b-4929-a6f1-184bf3fd830d?, Parameters: [:] [09:28:23.377Z] Debug [AUTHENTICATION] Using cached token value for app-specific password request: MYTEAMID:MYAPPLEID [09:28:23.379Z] Debug [AUTHENTICATION] Authenticating request with App Specific Password credentials. AppleID: MYAPPLEID, Password: private, Team ID: MYTEAMID [09:28:23.381Z] Debug [TASKMANAGER] Starting Task Manager loop to wait for asynchronous HTTP calls. [09:28:23.867Z] Debug [API] Received response status code: 200, message: no error, URL: https://appstoreconnect.apple.com/notary/v2/submissions/75b7dc7b-364b-4929-a6f1-184bf3fd830d?, Correlation Key: LCSKFK6SWNEQAYSLKCBQM2TBVM [09:28:23.870Z] Debug [TASKMANAGER] Completed Task
Topic: Code Signing SubTopic: Notarization Tags:
Replies
Boosts
Views
Activity
May ’24
Validating receipt comes back with status code 21002
Problem I'm having when validating auto-renewable receiptStatus code: status code 21002Apple said: The data in the receipt-data property was malformed or missing.Trying to validate receipt server side to prevent hacks. In app purchases for auto-renewable subscription. I had converted this code from Swift 1 to Swift 3 so maybe the code is old and apple changed its ways so maybe someone can help me.Every time I run the validateReceipt() function in viewDidLoad and before I show my content. The validateReceipt() is supposed to update a isValidated bool to true when correct and false to when not validated, to continue to MainController.Using the sandbox url https://sandbox.itunes.apple.com/verifyReceiptHere is the validateReceipt() functionfunc validateReceipt() { let receiptUrl = Bundle.main.appStoreReceiptURL do { let receipt: Data = try Data(contentsOf:receiptUrl!) let receiptdata: NSString = receipt.base64EncodedString(options: NSData.Base64EncodingOptions
Replies
0
Boosts
0
Views
4.4k
Activity
Aug ’17
Reply to Entitlement issues with network extension
Lucky, people I am struggling over 1,5 year with code signing not working for not-paying dev accounts (and even Apple support cannot help maybe they are afraid to admt they no longer allow testing app od device for non-paid accounts). That being said on Monterey I always see during run Failed retrieving MusicKit tokens: Error Domain=ICErrorDomain Code=-7009 Failed to retrieve bundle identifier of the requesting application. The requesting application is likely missing the com.apple.application-identifier entitlement. UserInfo={NSDebugDescription=Failed to retrieve bundle identifier of the requesting application. The requesting application is likely missing the com.apple.application-identifier entitlement.}. Throwing .permissionDenied. 2022-08-10 19:37:12.939452+0200 ConMusic[3082:33162] [DataRequesting] Failed retrieving tokens for MusicDataRequest.Context(url: https://api.music.apple.com/v1/catalog/us/artists/1
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Aug ’22
Reply to Swift Post request ,Django backend
what should I do? Provide more information about your problem. 😉 What is that “result” string: the body of the server response, something in the server log, something else? Assuming you get a valid HTTP response (though not shown in your code), what is the status code: 200? 4XX? What is the body of the response? You don’t set a Content-Type: application/json header. Does your server require that header in order to handle the request?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’22