Search results for

Request failed with http status code 503

190,970 results found

Post

Replies

Boosts

Views

Activity

Reply to How to get the access control list from SecKey?
Yes Quinn, as! cast causes the crash EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0).It looks like only this typecasting from SecKey to SecKeychainItem has issue else following code (to typecast CFTypeRef to SecKeychainItem) works fine and give SecACL just fine: var status = SecItemCopyMatching(getquery as CFDictionary, &item) //let dict = item as! CFDictionary guard status == errSecSuccess else { DLog(message: Keychain lookup failed error : (SecCopyErrorMessageString(status, nil)! as String)) return nil } let key = item as! SecKeychainItem var secAccess : SecAccess? status = SecKeychainItemCopyAccess(key, &secAccess) guard status == errSecSuccess, secAccess != nil else { DLog(message: Could not get SecAccess : (SecCopyErrorMessageString(status, nil)! as String)) return nil }Also, would it be possible to update the ACL of this keychain item by the owner of the key i.e. daemon? When we call SecKeychainItemSetAccess
Topic: Privacy & Security SubTopic: General Tags:
Nov ’18
Reply to Face becomes white with ARKit and TrueDepth camera
Hello,I changed the view to be drawn from ARSCNView to MTKView (MetalKit).So I had to write much more code for pipeline, buffers, render encoder … 🙂Then the image became what I expected!Both fragment shaders are the same, just transform YCbCr to RGB.Before : https://twitter.com/yt/status/1087230742017454080After : https://twitter.com/yt/status/1089768732023390208Thanks.
Topic: Spatial Computing SubTopic: ARKit Tags:
Jan ’19
Reply to Is it safe to retry -1005 error code on network request
Does either of these error codes along with status code 0 guarantee the request never hit the server and therefore always safe to perform a retry …Error -1005 is NSURLErrorNetworkConnectionLost and it’s definitely not safe to retry non-idempotent requests in that case. This error indicates that the TCP connection carrying the HTTP request tore before we got the response. There’s two possibilities: The request did not make it to the server.The request made it to the server but the response didn’t make it back to the client.In the second case a blind retry will cause problems. To avoid this, you must implement app-specific logic to query the server to see if the first request made it.In contrast, error -1009 is NSURLErrorNotConnectedToInternet, which means the request probably didn’t make it off the device. However, given that you have to implement app-specific recovery logic to handle NSURLErrorNetworkConnectionL
Nov ’16
Status Code 40015 Error Occurred in Apple Music API "add_a_resource_to_a_library"
When using the Apple Music API add_a_resource_to_a_library with Musickit JS, the following status code 40015 error occurred. {errors:[{id:26-digit-ID,title:Insufficient Privileges,detail:User's subscription tier does not have access to privilege: ListeningHistory,status:400,code:40015,messageForDisplay:Insufficient Privileges}]} This error is not listed in the Response Codes in the API documentation for this endpoint. (1) Are there any details about the cause of this error or other details described anywhere in the API documentation? (2) Are there any other errors that may occur besides this error that are not listed in the documentation for this endpoint?
0
0
709
Jul ’22
VTDecompressionSessionCreate fails with code -12911 on M1 iPad
In the context of an app that uses a VTDecompressionSession to decode incoming ts streams, the creation of the decompression session always fails for some h264 streams with code -12911 when running on a M1 iPad (iPad Pro, 12.9-inch, 5th generation, iOS 15.5). When the same app is executed on my M1 Mac mini -as My Mac (Designed for iPad)- with the same stream, VTDecompressionSessionCreatesucceeds and the stream can be decoded. Any idea of what could cause this error on the iPad? The code: decompressionSessionCreationStatus = VTDecompressionSessionCreate(allocator: kCFAllocatorDefault, formatDescription: videoFormatDescription!, decoderSpecification: nil, imageBufferAttributes: nil, outputCallback: nil, decompressionSessionOut: &videoDecompressionSession) if videoDecompressionSession != nil { ... } else { NSLog(videoDecompressionSession could not be created (status: %d): video format: %@, decompressionSessionCreationStatus, (videoFormatDescription != nil) ? (CFCopyDescrip
2
0
1.4k
Jun ’22
Xcodebuild failed with code 65 on Appium Inspector
Appium Server site error: Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message: . Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. Appium Inspector site error: POST /md/hub/session 500 Xcode: 14.0.1(14A400) IPhone11: 16.0.3 Appium Inspector: App Version 2022.9.1 Electron: 13.6.9 Node.js: 14.16.0
0
0
2k
Dec ’22
Disable Managed Lost Mode fails with Error code "12069"
MDM is able to enable lost mode in applicable devices , however while disabling lost mode we are getting an error code 12069 . We are unable to revive the device from lost mode remotely and only option left is to erase the device loosing all data. Apple has mentioned this error code but not documented in detail A device responds with error code 12067 if it isn’t in Lost Mode, or error code 12069 if the request to disable Lost Mode failed. While in Lost Mode, a device responds to invalid commands with error code 12078. - disable_lost_mode - https://developer.apple.com/documentation/devicemanagement/disable_lost_mode Since reviving from lost mode is equally important to enabling lost mode, it would be better if apple documents When does Disable Lost mode fails with error code 12069 ? Does it occur to only specific OS version or device models? Is it possible to find if disable lost mode will fail beforehand , so th
0
0
1.5k
Nov ’20
In-App Purchase fails and every time I get “Cannot connect to iTunes Store” with transaction status returns failed
We have been using IAP auto-renewable subscriptions. We have properly followed integration guideline and able to successfully test IAP subscriptions through Sandbox testers for some devices and get failure for some devices. It’s kind of 50/50 scenario for IAP success/failure. Its not like Sandbox test users fail for IAP, in production build also IAP fails for many times. We have debugged the code and found out that when SKPaymentQueue.default().add(payment) is called, transaction.transactionState is returned as SKPaymentTransactionStatePurchasing and in some time it turns to SKPaymentTransactionStateFailed. We are getting error -> “Cannot connect to iTunes Store”. Below are some log statements. 2020-10-19 18:06:40.663777+0530 Strong Consumer[37652:7035479] [Purchases] - DEBUG:tremovedTransaction: monthly_5.99 AB64AECB-94AD-45CA-B836-65D0D6EC6D0C ((null) Error Domain=SKErrorDomain Code=0 Cannot connect to iTunes Store UserInfo={NSLocalizedDescription=Cannot connect to iTu
0
0
674
Oct ’20
Reply to presenting appropriate certificate according to client's SNI using NWListener
We're developing HTTP server which server multiple hostnames, thus we need to presenting certificates according to requested names. It all should be handled on same listening port(443). What are options to analyze client's TLS requested ServerName Identifier(SNI) and present certificate accordingly ? I just spun up a local test program on macOS and was able to do this using the following technique: Create a local certificate authority that issues leaf certificates for each hostname being served by your server. Install the root and the leaf identities into the Keychain. Note, I am using a testing strategy that sets the identity name in the Keychain as the servername. For example, https://sully.local:4433 and https://biff.local:4433. Then set sec_protocol_options_set_challenge_block to hand the sec_protocol_metadata_t data to sec_protocol_metadata_get_server_name and use this to extract the identity and use it on the connection. func getSecIdentity(name: String) ->
Mar ’22
CompileAssetCatalog failed with a nonzero exit code
Hi,im just new to XCode, the course im following the first 2 demo apps i build worked perfect. at some point they said to update all my software, so i updated to Xcode 11 and new OS Catalina. Every time i compile my project i get this error. CompileAssetCatalog failed with a nonzero exit code. i have been looking for over 4 hours to fix it so far no luck.
0
0
1.4k
Oct ’19
Reply to Playgrounds with custom Root Certification?
I'm running the Playground on the Mac. It's an UIKit playground. The same thing happens if I run the the request as part of a SwiftUI Live Preview in Xcode for an iOS app. If I run the same code in a macOS/AppKit Playground, it apparently picks cert from the Keychain and executes successfully. I'm not doing anything fancy with the URL request for this example. let url = URL(string: https://twitter.com/slashkevin/status/1285945904835559426)! let task = URLSession.shared.dataTask(with: url) { data, response, error in if let error = error { print(error) } if let response = response { print(response) } } task.resume()
Jul ’20