Search results for

Request failed with http status code 503

190,729 results found

Post

Replies

Boosts

Views

Activity

"status": "401", "code": "NOT_AUTHORIZED", "title": "Authentication credentials are missing or invalid."
I do the work Generating Tokens for API Requests.Return this error:errors: [{status: 401,code: NOT_AUTHORIZED,title: Authentication credentials are missing or invalid.,detail: Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens}]//-----------------------------------------------------------------------------------My php Code is :$strUrl = https://api.appstoreconnect.apple.com/v1/salesReports;$dHeader = array(alg => ES256, kid => XXXX5XWNA4, typ => JWT);$strHeader = json_encode($dHeader);$strBase64Header = Base64UrlEncode($strHeader, JSON_UNESCAPED_UNICODE);$dPayLoad = array(iss => 4f830cec-8495-4a09-abae-52030dda7fbb, exp=>time()+1200, aud=>appstoreconnect-v1);$strPayLoad = json_encode($dPayLoad);$strBase64PayLoad = Base64UrlEncode($strPayLoad, JSON_UNESCAPED_UNICODE);$strContent = $strBase6
3
0
11k
Jul ’19
ATS blocking a valid https request
Let me start by saying this issue is probably something I'm doing incorrectly.... Xcode 11.4.1, Simulator is an iPhone 8 with iOS 13.4 The following error is thrown, even though I believe I've created a valid https request. Error: 2020-06-25 15:26:01.992051-0700 test[3593:161973] Cannot start load of Task <E2C01EF1-C4B8-40F7-AC1A-6791EC0BC5F1>.<1> since it does not conform to ATS policy 2020-06-25 15:26:01.998607-0700 test[3593:161974] Task <E2C01EF1-C4B8-40F7-AC1A-6791EC0BC5F1>.<1> finished with error [-1022] Error Domain=NSURLErrorDomain Code=-1022 The resource could not be loaded because the App Transport Security policy requires the use of a secure connection. UserInfo={NSUnderlyingError=0x600003b73120 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 (null)}, NSErrorFailingURLStringKey=http://xxxxx, NSErrorFailingURLKey=http://xxxxxx, NSLocalizedDescription=The resource could not be loaded because the App Transport Security poli
3
0
1.6k
Jun ’20
The best way to organize the sequence of http requests
Hello!I have several http requests. Each request returns json stucture and then I have to parse json and add information to my core data model. But I can't add some information to core data, because this information refers to the data returned from another request. How can I better organize to some requests were made only after the others are already returned data? What is the best way in this case?Best regards,Aleksey.
1
0
194
Dec ’15
unauthorized when access https://developer.apple.com/contact/request/unlisted-app/
Im try https://developer.apple.com/contact/request/unlisted-app/ to request unlisted app by account enroll Apple Developer Program, but get redirected to https://developer.apple.com/unauthorized/ The Apple ID you signed in with does not have permission to view this page. If you’re currently a member of the Apple Developer Program, you or your Account Holder may need to update your account by agreeing to the latest license agreement in order to access this page. To view your current membership status and benefits, visit your account. Im go to: https://developer.apple.com/account/?view=membership#/welcome for agree to the license and try again https://developer.apple.com/contact/request/unlisted-app/ but https://developer.apple.com/unauthorized/ continue display. Can anyone help me for resolve this problem? Many thanks!
1
0
1.4k
Jun ’22
Request assistance converting swift requestAuthorization for Speech request code snipped to python
Dear Developer Forum, I am an amateur python programmer and would like to use python in conjunction with the iOS Speech framework to do speech recognition. However, I’m getting stuck trying to figure out how to convert the following swift code snippet example from Apple documentation to request authorization from my device to python due to the example’s use of a terminal closure. I’d appreciate assistance from anyone in how I’d convert the code to python: “ // Make the authorization request SFSpeechRecognizer.requestAuthorization { authStatus in // The authorization status results in changes to the // app’s interface, so process the results on the app’s // main queue. OperationQueue.main.addOperation { switch authStatus { case .authorized: self.recordButton.isEnabled = true to speech recognition, for: .disabled) case .restricted: self.recordButton.isEnabled = false self.recordButton.setTitle(Speech recognition restricted on this device, for: .disabled) } } ” Thank
0
0
482
Mar ’21
Why can't I receive value from this https request?
Does anyone know what could be wrong with this? Each time I test in simulator the request I am just returned the value Please Enter a NameIt's like the https request is not occurring at all. Appreciate any help...!import UIKitclass AgeLookUpViewController: UIViewController { @IBOutlet weak var celebrityTextField: UITextField! @IBOutlet weak var resultLabel: UILabel! @IBAction func getAge(_ sender: Any) { if let url = URL(string: https://en.wikipedia.org/wiki/ + celebrityTextField.text!.replacingOccurrences(of: , with: _)) { let request = NSMutableURLRequest(url: url) let task = URLSession.shared.dataTask(with: request as URLRequest) { data, response, error in var message = if error != nil { print(error!) } else { if let unwrappedData = data { let dataString = NSString(data: unwrappedData, encoding: String.Encoding.utf8.rawValue) var stringSeparator = <span class=noprint ForceAgeToShow>(age&#160; if let contentArray = dataString?.components(sepa
2
0
822
Jan ’19
NSMutableURLRequest return empty data with status code 200 on iOS 9 only
I have the following code that NSMutableURLRequest empty data for URL request only on iOS9. -(void)getDataFromURLServiceCall:(NSString*)customerId { self.receivedData = [[NSMutableData alloc] init]; NSDictionary* parameters = @{@customerId: customerId, @ticket: appDelegate.vcsession.ticket}; NSString *parameterString = [self buildParameterStringFromDictionary:parameters]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@https://%@.MyURL/GetDataCall,self.configuration]]]; [request setHTTPMethod:@POST]; [request setValue:@application/x-www-form-urlencoded forHTTPHeaderField:@Content-Type]; [request setHTTPBody:[NSData dataWithBytes:[parameterString UTF8String] length:strlen([parameterString UTF8String])]]; [self sendRequest:request]; } -(void)connection:(NSURLConnection*)connection didReceiveResponse:(NSURLResponse *)response { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)re
1
0
660
Oct ’15
Reply to Error Fetching App Record on Validate
Now it is back to back generate an issues Error Fetching App Record and App record request failed with error: Unexpected status code I've tried restarting Xcode, restarting computer, removing / re-adding my credentials/ and update certificate but its now work... i have more then 4th archive generate but its not uploaded.... Please update its apple server error ya development issues Thanks Mukesh
Jul ’22
Xcode 14.3 - Failed to render and update auto layout status
Since updating to Xcode 14.3 every view controller in every storyboard is not updating its IBDesignable's with an error saying it can't find the right .app with the right architecture. This all worked fine in Xcode 14.2 I'm running on an M1 mac mini Error below: /Users/****/Documents/Projects/****/****/Modules/Onboarding/Base.lproj/Onboarding.storyboard Failed to render and update auto layout status for ****ViewController (3EC-3V-hGn): dlopen(****.app, 0x0001): tried: '/****' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot****.app' (no such file), '****.app' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) I've tried following a stackoverflow post that suggested changing Build Active Architecture Only to No for debug builds. When I rebuilt I got a prompt from Xcode saying the build failed, and it asked me to turn on R
7
0
3.8k
Apr ’23
Reply to MTLInitializeInterpose
Is anyone else still having this issue?I've rebooted my Macbook Pro and iPhone 6 Plus a bunch of times over the last couple of weeks but still get the following failing assertion if GPU Frame Capture is set to either Metal or Automatically Enabled:2015-08-04 20:38:15.606 MetalTest[503:239923] Metal GPU Frame Capture Enabled2015-08-04 20:38:15.607 MetalTest[503:239923] failed assertion _interposeHandle != NULL at /BuildRoot/Library/Caches/com.apple.xbs/Sources/Metal/Metal-54.18/Framework/MTLDevice.mm:112 MTLInitializeInterposeI'm currently using OSX BETA 4 and iOS 9 BETA 4. This has been happening since BETA 2 I believe! This happens when using the GameTemplate without any changes in Swift and Metal!Any comments welcome,Cheers,Hegski
Topic: Graphics & Games SubTopic: General Tags:
Aug ’15
Reply to Apple Pay Integration on web
Start by setting up your environment by following the instructions in the Apple Pay Programming Guide https://developer.apple.com/documentation/apple_pay_on_the_web/configuring_your_environment. You'll need to create a merchant ID and a payment processing certificate in the Apple Developer portal. Follow the instructions in the guide (https://developer.apple.com/help/account/configure-app-capabilities/configure-apple-pay-on-the-web ) to create these. Once you've set up your environment, you can begin implementing the Payment Request API in your website's JavaScript code. You can find detailed instructions on how to do this in the Apple Pay Programming Guide (https://developer.apple.com/documentation/apple_pay_on_the_web/payment_request_api/setting_up_the_payment_request_api_to_accept_apple_pay ). After the payment request is initiated by the user, the Payment Request API will return a payment token. The payment token should be sent to your server-
Jan ’23
iOS9 : Responding with a 404/503 error to a playlist on NSURLProtocol aborts playback
We use an NSURLProtocol subclass to handle the requests made by the iOS media player for HLS playlists (m3u8 files). The actual m3u8 files lie on a remote server, so are fetched by our custom protocol handler and then fed back to the player. However handling HTTP error codes such as 404 has always been tricky, since the player typically won't take well anything other than 200 OK for a response. For instance upon getting a 404 error, the player would be expected to skip the missing playlist and just continue playing with the other variants, which is exactly what it does when NOT using a custom protocol but simply plain HTTP. However when the player receives the same error responses via NSURLProtocol, typically playback will fail soon after, in one way or another.We already had this issue 2 years ago and posted on this thread :https://devforums.apple.com/thread/183160From iOS 6.0 to iOS 8.x we managed to find some workarounds to get this to work as expected.
3
0
1.8k
Aug ’15