Search results for

Request failed with http status code 503

190,690 results found

Post

Replies

Boosts

Views

Activity

WKWebview - Failed to load resource: The request timed out
Hello I have WkWebview app which load webpage here is my initialization code for wkwebview override func loadView() { let webConfiguration = WKWebViewConfiguration() let preferences = WKPreferences() preferences.javaScriptEnabled = true preferences.setValue(true, forKey: DeveloperExtrasEnabled) webConfiguration.preferences = preferences browser = WKWebView(frame: .zero, configuration: webConfiguration) browser.navigationDelegate = self browser.uiDelegate = self view = browser } and here is request let url = URL(string: urlString) request = URLRequest(url: url!,cachePolicy: .reloadIgnoringLocalAndRemoteCacheData,timeoutInterval: 360) browser.navigationDelegate = self browser.uiDelegate = self browser.load(request) This works fine but when I click on subpage which load's more that 60s(which is default request timeout interval). I get this error in web-inspector Failed to load resource: The request timed out So my question is. Can I change default ti
0
0
3.8k
Aug ’20
Reply to Xcode 12 iOS 14 error purchase
Have same problem AMSPurchaseProtocolHandler: [8E2D2E26] Updating buy params from any action default 12:59:29.078598+0300 appstored AMSPurchaseRequestEncoder: [8E2D2E26] Adding a fraud score to the request. fraudScore =<…> default 12:59:39.554413+0300 appstored AMSPurchaseProtocolHandler: [8E2D2E26] StatusCode: 502; ; Environment: (null) default 12:59:39.654372+0300 appstored AMSPurchaseTask: [8E2D2E26] Recording engagement event. success: 0 default 12:59:39.654608+0300 appstored AMSEngagement: [ABFD42FB] Enqueueing event for type: purchase, dest: [] (prev: 8E2D2E26) error 12:59:39.834878+0300 appstored AMSPurchaseTask: [8E2D2E26] Purchase completed with error: Error Domain=AMSErrorDomain Code=301 “Invalid Status Code” UserInfo={NSLocalizedFailureReason=The response has an invalid status code, AMSURL=hided url, AMSStatusCode=502, NSLocalizedDescription=Invalid Status Code} error 12:59:39.835083+0300 appstored AMSPurchaseTask: [8E2D2
Sep ’20
Swift - Http get request to class
Hi, I would like to create a class with 4 parameters : IoT IP address and 3 additional strings received from the http request. the constructor will receive an IP address and create a class member with the IP address and additional 3 strings received from the request. Appreciate anyone help. Thank you.
3
0
4.8k
Jun ’21
Loading http from https warning in WKWebView intermittently blocks requests
We have an app that is partly powered by a WKWebView. For various reasons irrelevant to this question, we're using a local webserver to serve content and act as a proxy to the WKWebView. The local web server is http (and not easily changed to https). The webview's baseURL is https. In iOS 8, we received console warnings about loading insecure content (as expected). In iOS 9, it appears the requests to the local webserver are sometimes blocked, and sometimes not, as indicated in the screenshot here: http://d.pr/i/11Tvy/36DWnMtt+Most are marked as [blocked], however the second one is not, even though nothing from the warning would indicate why that one would be allowed through and the others not.Is there any insight as to why some requests are blocked and not others, or under what conditions a request is blocked?To be clear: I'm very aware of why this warning is being printed, and why loading http from https could be a bad idea. I'
Topic: Safari & Web SubTopic: General Tags:
2
0
3.3k
Aug ’15
Seeing "Status read failed: Connection reset by peer" when using News API
Hi,I'm using the Apple News API to create articles for development / test purposesI see that the articles do get created in the Published Articles tab in the Publisher app but every api request returns with a500 errorStatus read failed: Connection reset by peerI have found that if the request does not include the binary info for images, this does not happen.I get an expected error like this{errors:[{code:INVALID_DOCUMENT....So, I can defintely connect via API and get content into the New Publisher App, and see expected error results back from the API when the request is made invalid.The client code is in Perl.Is there some special configuration setting that I'm missing?Appreciate any advice,TedHere is some info about the request and response with sensitve info removed{ request: { headers: Authorization: HHMAC; key=<KEY>; signature=<SIGNATURE>; date=2017-01-26T23:34:19ZnUser-Agent: NativeArticleSuperUA :)nContent-Type: multipart/form-da
0
0
1k
Jan ’17
Is it safe to retry -1005 error code on network request
Hi, I am getting -1005 and -1009 error codes intermittently on network requests for iOS10 on both iPhone and iPad. One suggested fix online is to simply perform a retry. 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 (particularly concerned about POST requests as they are changing state on server side)?
7
0
8.9k
Nov ’16
can send http request from network extension?
Hi,Is anybody know that whether I can send http request from network extension or not?the idea is that I want to check the inbound/outbound data before deciding allow or drop them, so I have 2 questions here:1. In the NEFilterDataProvider class description, it says The sandbox prevents the Filter Data Provider extension from moving network content outside of its address space by blocking all network access, IPC, and disk write operations. that means I cannot send the network content to the server or other process for checking?2. if I just want to send http request from network extension, is it possible?thanks in advance.
3
0
825
Jan ’20
DNS requests failing when NEPacketTunnelProvider is running.
Hi, TLDR: On iOS, when my PacketTunnel is running, can I exclude DNS requests from going into the tunnel? I have a test app, using Apple's AsyncDNSResolver, that makes a DNS call and it works when the tunnel is not running. If the tunnel is running it times out after 30 seconds and I get the error -65568. Here's how I'm setting up the tunnel func setup(tunnelRemoteAddress: String) { let settings = NEPacketTunnelNetworkSettings(tunnelRemoteAddress: tunnelRemoteAddress) settings.ipv4Settings = NEIPv4Settings(addresses: [tunnelRemoteAddress], subnetMasks: [255.255.255.255]) settings.ipv4Settings?.includedRoutes = [NEIPv4Route.default()] let proxySettings = NEProxySettings() proxySettings.httpEnabled = true proxySettings.httpServer = NEProxyServer(address: ProxyServerConfiguration.host, port: ProxyServerConfiguration.port) proxySettings.httpsEnabled = true proxySettings.httpsServer = NEProxyServer(address: LocalProxyServerConfiguration.host, port: LocalProxyServerConfiguration.port) proxySettings.exclude
4
0
523
Nov ’24
Reply to WeatherKit geographical availability
I am also thinking of a geographical problem of the resource call. Request from europe : 09/06/2022 11:15:23 Central European Summer Time, error=invalidJWTResponse(Optional( { URL: https://weather-data.apple.com/v2/token } { Status Code: 401, Headers {Connection = (close ); Despite the activation of everything described with flightplanner sample code readme. We have to wait but how long... Have a good day.
Topic: App & System Services SubTopic: General Tags:
Jun ’22
Reply to Troubleshooting Universal Links
So to followup, and apologies for the late response - I've removed all redirects, made sure they are static files with the correct content-types, and still no luck.the errors regarding denying the redirect are resolved, but this issue still remains:default 22:51:58.815436 -0500 swcd ### Download URL 'https://<redacted>/.well-known/apple-app-site-association' failed: -6756/0xFFFFE59C kTypeErr default 22:51:58.815971 -0500 swcd Started request for domain '<redacted>', URL 'https://<redacted>/apple-app-site-association' default 22:51:58.871038 -0500 swcd ### Download URL 'https://<redacted>/apple-app-site-association' failed: -6756/0xFFFFE59C kTypeErr default 22:51:58.871516 -0500 swcd Completing request for 'https://<redacted>/apple-app-site-association', status -6756/0xFFFFE59C kTypeErrI see this when the app installs, when I launch safari on the device to the <redacted> site
Topic: App & System Services SubTopic: General Tags:
Nov ’16
Unable to verify enterprise apps. Service ppq.apple.com return error 503
Today i found that my enterprise apps with valid distribution certificates and provisioning profiles not work at all. In General -> Profiles & Device Management its not verified. When i'm trying to verify apps i'm catching the warning with the following: Unable to Verify iPhone Distribution: My Distribution certificate Apps. A network connection is required to verify iPhone Distribution: My Distribution certificate apps on this iPad. Connect to the Internet and try again. But everything is OK with my internet connection. I found even here: https://support.apple.com/en-gb/HT204460 that there is a service ppq.apple.com, that verifies enterprise apps, but this service is unavailable on link: https://ppq.apple.com , return error 503. Whats happened and how can i fix this issue? And how periodically does the Apple device checks the verification status of the distribution certificates of my app? Am i alone face this issue?
11
0
30k
Jan ’18
macOS Daemon fails to work with Authenticating HTTP/HTTPS proxy in System Preferences
Hi,We are facing an issue where the launch daemons fails to work with the authenticating proxy configured in System Preferences.We tried both NSURLConnection and NSURLSession APIs and both fails with following error:Error with NSURLConnection:Error Domain=kCFErrorDomainCFNetwork Code=311 There was a problem establishing a secure tunnel through the web proxy server. UserInfo={NSErrorFailingURLStringKey=https://google.com/, NSErrorFailingURLKey=https://google.com/, _kCFStreamErrorCodeKey=-2097, _kCFStreamErrorDomainKey=4, NSLocalizedRecoverySuggestion=Please check your proxy settings.For help with this problem, contact your system administrator., NSLocalizedDescription=There was a problem establishing a secure tunnel through the web proxy server.}Error with NSURLSession: Error Domain=kCFErrorDomainCFNetwork Code=311 (null) UserInfo={_kCFStreamErrorCodeKey=-2097, _kCFStreamErrorDomainKey=4}Same binary works fine when run as command line tool with this proxy c
6
0
6.2k
Dec ’18