Hi, I am trying to write an app for macOS which will allow or drop a potential upload request, e.g. PUT or PATCH http request. For example, I would like to block uploading of a file to Google drive. I was looking into the 'SimpleFireWall' app sample provided within (https://developer.apple.com/videos/play/wwdc2019/714) but AFAIU this cannot be done due to limitations of NEFilterDataProvider and its flow (NEFilterFlow) objects, i.e. one limitation is that this would only be supported on Safari (WebKit based browsers) and secondly there is no option to peek and analyze which http request is represented by the flow in case of a TLS connection (HTTPS) as data is obviously encrypted. What would be the recommended way of achieving this? Thanks, Doron.
Search results for
Request failed with http status code 503
190,902 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello, I'm working on non-consumable IAP's and when I try to validate a receipt, I always get this status code 21002, which means my receipt-data property was malformed or missing. But I've been doing exactly how I saw on apple's documentation. What am I missing? guard let receiptFileURL = Bundle.main.appStoreReceiptURL, FileManager.default.fileExists(atPath: receiptFileURL.path) else { return } let receiptData = try? Data(contentsOf: receiptFileURL, options: .alwaysMapped) guard receiptData != nil else { UserDefaults.standard.set(false, forKey: isSubscribed) return } var recieptString = receiptData?.base64EncodedString() ?? let jsonDict : [String : Any] = [receipt-data : recieptString, password : Constants.ConstantValues.autoRenewableReceitPassword.rawValue, exclude-old-transactions : false] let httpBody = try? JSONSerialization.data(withJSONObject: jsonDict, options: []) let storeURL = URL(string: Constants.ConstantValues.verifyReceiptSandboxURL.rawValue)! var storeRequest = URLRequest(ur
[quote='815616022, collinsMuthomi, /thread/769353?answerId=815616022#815616022, /profile/collinsMuthomi'] status 0 is from back end. [/quote] OK. I’ll come back to that in a sec, but first I want to clarify one point. In your first post you wrote: [quote='769353021, collinsMuthomi, /thread/769353, /profile/collinsMuthomi'] I am getting a failed request with status 0 [/quote] and you also wrote: [quote='769353021, collinsMuthomi, /thread/769353, /profile/collinsMuthomi'] This is backend's response {message:Success,status:1,… [/quote] This seems to be contradictory, that is, the status in the second quote is 1, not 0. But as to how you debug this in general, if you send something to your back end and it responds with a ‘failed’ status, it’s hard to debug that on the client. You need to talk to your back-end folks to see if there’s a way for them to provide you with more info as to why the thing you sent is incorrect. Share and Enjoy — Quinn
Topic:
Privacy & Security
SubTopic:
General
Tags:
There was a transient issue with WeatherKit that's since been resolved: https://developer.apple.com/system-status/ It's unlikely that changing from App ID to Service ID helped to avoid the issue . More likely, it was just that a couple of hours elapsed before you tried again. If you see a 401 error, that means you failed to authorize, but not necessarily that your token is invalid. When you see such errors, I recommend that you: Check the system status at https://developer.apple.com/system-status/. File a report via Feedback Assistant: https://developer.apple.com/bug-reporting/ Start a new thread here in the developer forums (or post in an existing thread, if some has very recently started a new one.)
Topic:
App & System Services
SubTopic:
General
Tags:
I have a simmilar problem.When I connect my iPhone, Xcode has a status line saying it is installing the symbols for the Watch.The text then disappears and my iPhone becomes inaligible for debuging WatchKit extentions due to lack of symbols(iPhone 5s with iOS 9 - Beta 2 , Xcode 7 - Beta 2, Watch OS 2.0 - 13S5255d)I decided to run Xcode from command line for possible error traces. It seems that my Xcode is unable to download and mount a file called 'Watch1_1_13S5255d.dmg'. First URL returns 404 and the second URL which is done with my (Admin) team accounts fails with 403.Perhaps you should too open terminal, run/Applications/Xcode-beta.app/Contents/MacOS/Xcodethen connect your device and see the tracesBelow is a trace from my Xcode:2015-06-24 14:03:47.849 Xcode[28881:241044] Unable to mount DeveloperDiskImage on Doron's Apple Watch 2015-06-24 14:03:51.189 Xcode[28881:241027] Unable to mount DeveloperDiskImage on Doron's Apple Watch 2015-06-24 14:03:54.494 Xcode[28881:241047] DVTDownloadable: D
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Anyone can give an exact statement?This guideline will be enforced by App Review, who are the only folks qualified to comment on edge cases like this.I am also searching for a detailed guideline since I have to use hard coded ipv4 address for http request by NSURLSession. Which can be synthesized to a IPV6 address with IOS 9.2 but fails with lower versions.Indeed.Why are you hard-coding IP addresses?Are you using HTTP or HTTPS?Share and Enjoy — Quinn “The Eskimo!” Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic:
App & System Services
SubTopic:
Networking
Tags:
FB9895426 (Apple Device MDM enrolment fails if client certificate is requested during SSL Handshake) Device enrolment fails in an MDM Server configured with client certificate authentication. Upon investigating the issue, we noticed that the device drops the SSL handshake if a client certificate is requested during the handshake. Wireshark Screenshot: From the console logs, we noticed the below error: cannot accept the authentication method NSURLAuthenticationMethodClientCertificate The TLS protocol states that If no suitable certificate is available, the client SHOULD send a certificate message containing no certificates.. Thus, we expect the MDM client to respond with a no certificate response during the SSL handshake. Someone has already raised the same question but there's no reply yet: https://developer.apple.com/forums/thread/680328 https://developer.apple.com/forums/thread/676579 Any help would be appreciated. Thanks in advance.
https://developer.apple.com/system-status/However, when I look at the status of the system I linked to, I can see that the green light is on, so Apple has not figured out the problem yet, or is it that we're coding something wrong?Maybe this may be a coding error for all of us.😕
Topic:
App & System Services
SubTopic:
StoreKit
Tags:
When I test my MessagesExtension ,this error come upfisrt i add code in MessagesViewController like: override func viewDidLoad() { super.viewDidLoad() let stickerView = MSStickerBrowserView(frame: self.view.frame, stickerSize: MSStickerSize.large) stickerView.dataSource = self self.view.addSubview(stickerView) }then add MSStickerBrowserViewDataSource delegate methods: func numberOfStickers(in stickerBrowserView: MSStickerBrowserView) -> Int { return 1 } func stickerBrowserView(_ stickerBrowserView: MSStickerBrowserView, stickerAt index: Int) -> MSSticker { if let imageURL = URL(string: Bundle.main().pathForResource(3, ofType: png)!) { do { let sticker = try MSSticker(contentsOfFileURL: imageURL, localizedDescription: image) as MSSticker let _ = sticker.imageFileURL return sticker } catch _ { print(error) } } return try! MSSticker(contentsOfFileURL: URL(string: http://p0.meituan.net/320.0.a/deal/__41839401__1277258.jpg)!, localizedDescription: baidu) }when i debug step-to-step , all my
I am an administrator and want to add people to the internal test group of testflight, but I keep getting an error. errors : [ { id : ef93f5b2-3d39-4a87-bbc8-942032664462, status : 409, code : STATE_ERROR, title : The request cannot be fulfilled because of the state of another resource., detail : Tester(s) cannot be assigned } ] url = https://api.appstoreconnect.apple.com/v1/betaTesters headers = { Authorization: fBearer {access_token}, Content-Type: application/json } data = { data: { type: betaTesters, relationships: { betaGroups: { data: [ { id: ****, type: betaGroups } ] } }, attributes: { email: email, firstName: firstName, lastName: lastName } } } response = requests.post(url, headers=headers, json=data) if response.status_code == 201: print(succes:, response.content) else: print(fail:, response.text)
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
We are using apple pay on the Web. But we are getting this error as below while creating the session from our API - {error: Failed to create Apple Pay session: 400 Bad Request: [{ statusMessage: Payment Services Exception merchantId=2BA8AF828D93E74EC76655D09C9132B7445BA789D674E970873CCCD85E5A8A5E not registered for domain=https://applepay-dev.ippay.com, statusCode: 400 }]} ==================================================== Please use the following Curl request to generate the error. curl --location 'https://applepay-dev.ippay.com/api/v2/payment/alternatepay/session/create' --header 'Content-Type: application/json' --header 'Accept: /' --header 'Sec-Fetch-Site: same-origin' --header 'Accept-Language: en-US,en;q=0.9' --header 'Accept-Encoding: gzip, deflate, br' --header 'Sec-Fetch-Mode: cors' --header 'Host: applepay-dev.ippay.com' --header 'Origin: https://applepay-dev.ippay.com' --header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Apple
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
I have the same issue: Apple Watch via iPhone Kvasnetckyi: Failed with HTTP status 403: forbidden IOS 16.1 (Iphone 13), Watch OS 9.1 (Series 5), Xcode 14.0.1. Can anyone help?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Our app invoke the method AudioOutputUnitStart in the foreground, and frequently return the error AVAudioSessionErrorCodeCannotStartRecording, also when appear the problem, the background no app running, the problem more often occured on the device iPad 8 wifi + iOS 14.6, what is the reason and how to debug it. Thanks! OSStatus status = AudioOutputUnitStart(recordUnit); if (status!=noErr) { status = 561145187 }
We would like to make a distinction as to which request was served via HTTP/2 or HTTP/1.1I looked HTTPURLResponse api and other api's in CFNetwork to see if we can determine this. I have however not been succesfull in finding if the specific API is served as http/1.1 or http/2Is there a API call I'm missing that would give this information?Thank you,Sohil
Hi Eskimo, Thanks for your response. I have made a small Playground example to illustrate the problem I have. In the code below when I run it I never reach the Made it print line. It always fails somewhere inside the loop. It always fails on the remove never on the store. Atleast in the 20-30 times I ran it. This is ofcourse not something I do in production code but this way I get to see the behaviour more clear. import Foundation if #available(iOS 14, *) { print(iOS 14 available) } let url = URL(string: https://apple.com)! var request = URLRequest(url: url) request.httpBody = test.data(using: .utf8)! let httpResponse = HTTPURLResponse(url: url, statusCode: 200, httpVersion: nil, headerFields: nil)! let cachedURLResponse = Foundation.CachedURLResponse(response: httpResponse, data: request.httpBody!) let cache = URLCache.shared cache.removeAllCachedResponses() assert(cache.cachedResponse(for: request) == nil, Remove all should start clean) for i in
Topic:
App & System Services
SubTopic:
Networking
Tags: