Search results for

“Request failed with http status code 503”

200,995 results found

Post

Replies

Boosts

Views

Activity

Sign In by Apple on Firebase - 503 Service Temporarily Unavailable
Hello everyone, I'm encountering a persistent 503 Server Temporarily Not Available error when trying to implement Sign in with Apple for my web application. I've already performed a full review of my configuration and I'm confident it's set up correctly, which makes this server-side error particularly confusing. Problem Description: Our web application uses Firebase Authentication to handle the Sign in with Apple flow. When a user clicks the sign-in button, they are correctly redirected to the appleid.apple.com authorization page. However, instead of seeing the login prompt, the page immediately displays a 503 Server Temporarily Not Available error. This is the redirect URL being generated (with the state parameter truncated for security): https://appleid.apple.com/auth/authorize?response_type=code&client_id=XXXXXX&redirect_uri=https%3A%2F%2FXXXXXX.firebaseapp.com%2F__%2Fauth%2Fhandler&state=AMbdmDk...&scope=email%20name&response_mode=form_post
1
0
793
Sep ’25
Http Request with Querystring Parameter
I am trying to call an API, but I need to pass the parameter via querystring. But somehow it's not working. Where is the mistake ? func getProductById(productId: String, completion: @escaping (Product) -> ()) { guard let url = URL(string: https://mysite.com/product/ + productId) else { return } var request = URLRequest(url: url) request.httpMethod = GET request.setValue(application/json; charset=UTF-8, forHTTPHeaderField: Content-Type) URLSession.shared.dataTask(with: request) { (data, request, error) in guard let data = data else { return } do { let product = try! JSONDecoder().decode(Product.self, from: data) DispatchQueue.main.async { completion(product) } } catch { //print(error) } } .resume() }
1
0
1.8k
Jun ’21
Is there a list of exit status codes for xcodebuild?
I have building and testing nicely automated for our main product on iOS with Xcodebuild and shell scripts, and I'm now working on bringing up an add-on for our product. But xcodebuild stops partway through testing that, with:IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /var/folders/...The diagnostic log isn't telling me much, but I am recovering exit status code 65 from xcodebuild. I can't find a list of what those codes mean, although I can find a lot of people asking about them on the Internet without getting answers. Is there a published list anywhere?Thanks in advance,John
2
0
12k
Aug ’19
Reply to Issue with HTTPS Proxy Configuration in WebKit WebView
[quote='795433022, chagtraife, /thread/759417?answerId=795433022#795433022, /profile/chagtraife'] you mean that … if you issue an http: request, it’ll always go direct [/quote] Yes. That’s the behaviour I see on currently released systems. Note In the following I’m using URLSession, but my experience is that this issue is rooted in Network framework and thus affects all APIs layered on top of that, including URLSession and WKWebView. Consider this code to set up a URLSession: let config = URLSessionConfiguration.default config.requestCachePolicy = .reloadIgnoringLocalCacheData var proxy = ProxyConfiguration(httpCONNECTProxy: .hostPort(host: lefty.local, port: 12345)) proxy.allowFailover = false config.proxyConfigurations = [proxy] session = URLSession(configuration: config, delegate: nil, delegateQueue: .main) And this code to run a request: let url = URL(string: http://example.com)! print(will start task, url: (url)) let request = URLRequest(url:
Jul ’24
Make HTTP GET request?
I'm trying to implement sending of SMS in my app. I want to try this via a 3rd party. So I need to make a HTTP GET request for sending the SMS: https://sveve.no/SMS/SendMessage?user=*&passwd=*&to=***&msg=Meldingstekst&f=json I tried this: let url = URL(string: https://sveve.no/SMS/SendMessage?user=myUser&passwd=myPassword&to=12345678&msg=This is the message text&f=json)! let task = URLSession.shared.dataTask(with: url) {(data, response, error) in guard let data = data else { return } print(String(data: data, encoding: .utf8)!) } task.resume() Fatal error: Unexpectedly found nil while unwrapping an Optional value The error is on the URL. What can be the issue?
1
0
715
Apr ’21
Running an HTTP Request over WWAN
For important background information, read Extra-ordinary Networking before reading this. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com Running an HTTP Request over WWAN URLSessionConfiguration has a property, allowsCellularAccess, that controls whether requests in that session are allowed to run over WWAN. However, there’s no opposite of that, a way to force requests to run over WWAN. Some apps need to do this. IMPORTANT There are good and bad reasons to force a request to run over WWAN. I’ll explain a good reason below, but a bad reason is that you think that using WWAN is better aligned with your user’s networking preferences. Don’t go down that path. Rather, use the constraints mechanism described in Network Interface Techniques to align with the user’s preferences. So what’s an example of a good reason for this? I once worked with a developer who’d cut a deal with a cellular carrier to offe
0
0
984
Jul ’23
iOS HTTP Request Over Mobile Data
In one of my application I need to make HTTP request on 2G/3g/4g only. If device is connected to Wifi and mobile data both, I need to check and make HTTP request over mobile data. I don't want to turn ON/OFF Wifi.Is it possible to do so ?Any sample code or tutorial link will be highly appreciated.
1
0
996
Jul ’15
Ajax cross origin requests always failing in wkwebview
Ajax cross origin requests are failing from WKWebview with the error Preflight response is not successful. XMLHttpRequest cannot load (the url) due to access control checks.Error in console: Preflight response is not successful. XMLHttpRequest cannot load (the url) due to access control checks.Here is the request log caught by charles:URL https://www.xxxxxx.comStatus FailedFailure SSLHandshake: Remote host closed connection during handshakeResponse Code -Protocol HTTP/1.1SSL TLSv1.2 (TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) [h2]Method CONNECTKept Alive NoContent-Type -Client Address /xx.xx.xx.xxRemote Address https://www.xxxxxx.com/xxx.xxx.xxx.xxxConnectionConnection #1765093527TimingRequest Start Time 6/12/18 11:43:25Request End Time -Response Start Time -Response End Time 6/12/18 11:43:25Duration 127 msDNS 1 msConnect 28 msSSL Handshake 37 msRequest -Response -Latency -Speed 1.64 KB/sRequest Speed -Response Speed -SizeRequest 213 bytesHeader 213 b
0
0
1.4k
Jun ’18
HTTP requests timing out...
I am new to swift, so any advice would be appreciated. So the I have seen URL and URLSession return a timeout response, the android varient of my app does not show this issue. class HasInternet: ObservableObject { let monitor = NWPathMonitor() let queue = DispatchQueue(label: Monitor) private var status: NWPath.Status = .requiresConnection @Published var isConnected = false init(){ monitor.pathUpdateHandler = { [weak self] path in if let url = URL(string: https://google.com) { var request = URLRequest(url: url) request.httpMethod = HEAD request.timeoutInterval = 30 let sessionConfig = URLSessionConfiguration.default sessionConfig.timeoutIntervalForRequest = 30.0 sessionConfig.timeoutIntervalForResource = 60.0 URLSession(configuration: sessionConfig) .dataTask(with: request) { (_, response, error) -> Void in guard error == nil else { return } guard (response as? HTTPURLResponse)? .statusCode == 200 else { return } DispatchQueue.main.async { self?.isConnected = true } } .r
0
0
609
Jul ’24
Apple API request to submit a subscription for review failed
I am trying to submit my subscription review using the https://api.appstoreconnect.apple.com/v1/subscriptionSubmissions API from Apple. The data I submitted is:{subscriptionSubmissionCreateRequest: {data:{type:subscriptionSubmissions,relationships:{subscription:{data:{type:subscriptions,id:6737030290}}}}}} My subscription information is complete and correct. However, the Apple interface prompts an error and returns the following information:{err:unexpected status code 409: { errors : [ { id : 4267a135-2d27-4764-bcb3-85bd0247e60a, status : 409, code : STATE_ERROR.INVALID_REQUEST_ENTITY_STATE_INVALID, title : Thissubscriptionisnotinavalidstate., detail : Thissubscriptioncannotbereviewed,pleasecheckassociatederrors., meta : { associatedErrors : { /v1/subscriptions/6737030290 : [ { id : e1db8b8f-a73a-4146-bc58-dd12c171379b, status : 409, code : STATE_ERROR.SUBSCRIPTION_ALREADY_SUBMITTED, title : YoucannotsubmityourSubscriptionforreviewwhenitisnotsubmi
1
0
432
Oct ’24
WKWebview proxying HTTP Request
Hello, We have application which should pass traffic through https private proxy server if it needed, but I am find info that is impossible with WKWebView, only if i want send traffic we should use VPN. Is there a way to send traffic trough proxy use WKWebView. From this link I am sure that is impossible: https://stackoverflow.com/questions/41068675/http-proxy-support-with-wkwebview/41268348#41268348 https://stackoverflow.com/questions/55482380/swift-4-5-setting-adding-proxy-to-wkwebview?noredirect=1&lq=1 https://developer.apple.com/forums/thread/110312#337642 https://github.com/react-native-community/react-native-webview/issues/115 https://stackoverflow.com/questions/24208229/wkwebview-and-nsurlprotocol-not-working But in this link I saw a chance create this feature: https://stackoverflow.com/questions/40133512/intercept-request-with-wkwebview I am try many ways, but I can't pass traffic through proxy. Only what i can it is
3
0
3.3k
Sep ’20
Sign In by Apple on Firebase - 503 Service Temporarily Unavailable
Hello everyone, I'm encountering a persistent 503 Server Temporarily Not Available error when trying to implement Sign in with Apple for my web application. I've already performed a full review of my configuration and I'm confident it's set up correctly, which makes this server-side error particularly confusing. Problem Description: Our web application uses Firebase Authentication to handle the Sign in with Apple flow. When a user clicks the sign-in button, they are correctly redirected to the appleid.apple.com authorization page. However, instead of seeing the login prompt, the page immediately displays a 503 Server Temporarily Not Available error. This is the redirect URL being generated (with the state parameter truncated for security): https://appleid.apple.com/auth/authorize?response_type=code&client_id=XXXXXX&redirect_uri=https%3A%2F%2FXXXXXX.firebaseapp.com%2F__%2Fauth%2Fhandler&state=AMbdmDk...&scope=email%20name&response_mode=form_post
Replies
1
Boosts
0
Views
793
Activity
Sep ’25
How to check one iap code status?
If I have many product Id, I want to check one product Id status is APPROVED OR THE OTHER STATUS What should I do? Thanks ^ _ ^
Replies
0
Boosts
0
Views
340
Activity
Jun ’22
Reply to Supporting IPv6-only Networks - Queries
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.Anyone can give an exact statement?Thanks.
Replies
Boosts
Views
Activity
May ’16
Reply to IAP Cannot connect to iTunes Store
Right now, I was able to get the product list again but IAP purchases are still failing!Strangely, everything is green/OK on Apple services status pages:https://developer.apple.com/system-status/https://www.apple.com/support/systemstatus/
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Dec ’17
Http Request with Querystring Parameter
I am trying to call an API, but I need to pass the parameter via querystring. But somehow it's not working. Where is the mistake ? func getProductById(productId: String, completion: @escaping (Product) -> ()) { guard let url = URL(string: https://mysite.com/product/ + productId) else { return } var request = URLRequest(url: url) request.httpMethod = GET request.setValue(application/json; charset=UTF-8, forHTTPHeaderField: Content-Type) URLSession.shared.dataTask(with: request) { (data, request, error) in guard let data = data else { return } do { let product = try! JSONDecoder().decode(Product.self, from: data) DispatchQueue.main.async { completion(product) } } catch { //print(error) } } .resume() }
Replies
1
Boosts
0
Views
1.8k
Activity
Jun ’21
Is there a list of exit status codes for xcodebuild?
I have building and testing nicely automated for our main product on iOS with Xcodebuild and shell scripts, and I'm now working on bringing up an add-on for our product. But xcodebuild stops partway through testing that, with:IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /var/folders/...The diagnostic log isn't telling me much, but I am recovering exit status code 65 from xcodebuild. I can't find a list of what those codes mean, although I can find a lot of people asking about them on the Internet without getting answers. Is there a published list anywhere?Thanks in advance,John
Replies
2
Boosts
0
Views
12k
Activity
Aug ’19
Reply to Issue with HTTPS Proxy Configuration in WebKit WebView
[quote='795433022, chagtraife, /thread/759417?answerId=795433022#795433022, /profile/chagtraife'] you mean that … if you issue an http: request, it’ll always go direct [/quote] Yes. That’s the behaviour I see on currently released systems. Note In the following I’m using URLSession, but my experience is that this issue is rooted in Network framework and thus affects all APIs layered on top of that, including URLSession and WKWebView. Consider this code to set up a URLSession: let config = URLSessionConfiguration.default config.requestCachePolicy = .reloadIgnoringLocalCacheData var proxy = ProxyConfiguration(httpCONNECTProxy: .hostPort(host: lefty.local, port: 12345)) proxy.allowFailover = false config.proxyConfigurations = [proxy] session = URLSession(configuration: config, delegate: nil, delegateQueue: .main) And this code to run a request: let url = URL(string: http://example.com)! print(will start task, url: (url)) let request = URLRequest(url:
Replies
Boosts
Views
Activity
Jul ’24
503 erroe clear
please network best link wifi perfile very issue in wifi
Topic: Safari & Web SubTopic: General
Replies
0
Boosts
0
Views
76
Activity
May ’25
Make HTTP GET request?
I'm trying to implement sending of SMS in my app. I want to try this via a 3rd party. So I need to make a HTTP GET request for sending the SMS: https://sveve.no/SMS/SendMessage?user=*&passwd=*&to=***&msg=Meldingstekst&f=json I tried this: let url = URL(string: https://sveve.no/SMS/SendMessage?user=myUser&passwd=myPassword&to=12345678&msg=This is the message text&f=json)! let task = URLSession.shared.dataTask(with: url) {(data, response, error) in guard let data = data else { return } print(String(data: data, encoding: .utf8)!) } task.resume() Fatal error: Unexpectedly found nil while unwrapping an Optional value The error is on the URL. What can be the issue?
Replies
1
Boosts
0
Views
715
Activity
Apr ’21
Running an HTTP Request over WWAN
For important background information, read Extra-ordinary Networking before reading this. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com Running an HTTP Request over WWAN URLSessionConfiguration has a property, allowsCellularAccess, that controls whether requests in that session are allowed to run over WWAN. However, there’s no opposite of that, a way to force requests to run over WWAN. Some apps need to do this. IMPORTANT There are good and bad reasons to force a request to run over WWAN. I’ll explain a good reason below, but a bad reason is that you think that using WWAN is better aligned with your user’s networking preferences. Don’t go down that path. Rather, use the constraints mechanism described in Network Interface Techniques to align with the user’s preferences. So what’s an example of a good reason for this? I once worked with a developer who’d cut a deal with a cellular carrier to offe
Replies
0
Boosts
0
Views
984
Activity
Jul ’23
iOS HTTP Request Over Mobile Data
In one of my application I need to make HTTP request on 2G/3g/4g only. If device is connected to Wifi and mobile data both, I need to check and make HTTP request over mobile data. I don't want to turn ON/OFF Wifi.Is it possible to do so ?Any sample code or tutorial link will be highly appreciated.
Replies
1
Boosts
0
Views
996
Activity
Jul ’15
Ajax cross origin requests always failing in wkwebview
Ajax cross origin requests are failing from WKWebview with the error Preflight response is not successful. XMLHttpRequest cannot load (the url) due to access control checks.Error in console: Preflight response is not successful. XMLHttpRequest cannot load (the url) due to access control checks.Here is the request log caught by charles:URL https://www.xxxxxx.comStatus FailedFailure SSLHandshake: Remote host closed connection during handshakeResponse Code -Protocol HTTP/1.1SSL TLSv1.2 (TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) [h2]Method CONNECTKept Alive NoContent-Type -Client Address /xx.xx.xx.xxRemote Address https://www.xxxxxx.com/xxx.xxx.xxx.xxxConnectionConnection #1765093527TimingRequest Start Time 6/12/18 11:43:25Request End Time -Response Start Time -Response End Time 6/12/18 11:43:25Duration 127 msDNS 1 msConnect 28 msSSL Handshake 37 msRequest -Response -Latency -Speed 1.64 KB/sRequest Speed -Response Speed -SizeRequest 213 bytesHeader 213 b
Replies
0
Boosts
0
Views
1.4k
Activity
Jun ’18
HTTP requests timing out...
I am new to swift, so any advice would be appreciated. So the I have seen URL and URLSession return a timeout response, the android varient of my app does not show this issue. class HasInternet: ObservableObject { let monitor = NWPathMonitor() let queue = DispatchQueue(label: Monitor) private var status: NWPath.Status = .requiresConnection @Published var isConnected = false init(){ monitor.pathUpdateHandler = { [weak self] path in if let url = URL(string: https://google.com) { var request = URLRequest(url: url) request.httpMethod = HEAD request.timeoutInterval = 30 let sessionConfig = URLSessionConfiguration.default sessionConfig.timeoutIntervalForRequest = 30.0 sessionConfig.timeoutIntervalForResource = 60.0 URLSession(configuration: sessionConfig) .dataTask(with: request) { (_, response, error) -> Void in guard error == nil else { return } guard (response as? HTTPURLResponse)? .statusCode == 200 else { return } DispatchQueue.main.async { self?.isConnected = true } } .r
Replies
0
Boosts
0
Views
609
Activity
Jul ’24
Apple API request to submit a subscription for review failed
I am trying to submit my subscription review using the https://api.appstoreconnect.apple.com/v1/subscriptionSubmissions API from Apple. The data I submitted is:{subscriptionSubmissionCreateRequest: {data:{type:subscriptionSubmissions,relationships:{subscription:{data:{type:subscriptions,id:6737030290}}}}}} My subscription information is complete and correct. However, the Apple interface prompts an error and returns the following information:{err:unexpected status code 409: { errors : [ { id : 4267a135-2d27-4764-bcb3-85bd0247e60a, status : 409, code : STATE_ERROR.INVALID_REQUEST_ENTITY_STATE_INVALID, title : Thissubscriptionisnotinavalidstate., detail : Thissubscriptioncannotbereviewed,pleasecheckassociatederrors., meta : { associatedErrors : { /v1/subscriptions/6737030290 : [ { id : e1db8b8f-a73a-4146-bc58-dd12c171379b, status : 409, code : STATE_ERROR.SUBSCRIPTION_ALREADY_SUBMITTED, title : YoucannotsubmityourSubscriptionforreviewwhenitisnotsubmi
Replies
1
Boosts
0
Views
432
Activity
Oct ’24
WKWebview proxying HTTP Request
Hello, We have application which should pass traffic through https private proxy server if it needed, but I am find info that is impossible with WKWebView, only if i want send traffic we should use VPN. Is there a way to send traffic trough proxy use WKWebView. From this link I am sure that is impossible: https://stackoverflow.com/questions/41068675/http-proxy-support-with-wkwebview/41268348#41268348 https://stackoverflow.com/questions/55482380/swift-4-5-setting-adding-proxy-to-wkwebview?noredirect=1&lq=1 https://developer.apple.com/forums/thread/110312#337642 https://github.com/react-native-community/react-native-webview/issues/115 https://stackoverflow.com/questions/24208229/wkwebview-and-nsurlprotocol-not-working But in this link I saw a chance create this feature: https://stackoverflow.com/questions/40133512/intercept-request-with-wkwebview I am try many ways, but I can't pass traffic through proxy. Only what i can it is
Replies
3
Boosts
0
Views
3.3k
Activity
Sep ’20