Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code = -1004 desc = Error Domain=NSURLErrorDomain Code=-1004 #204

Open
free1990 opened this issue Apr 23, 2020 · 5 comments
Open

code = -1004 desc = Error Domain=NSURLErrorDomain Code=-1004 #204

free1990 opened this issue Apr 23, 2020 · 5 comments

Comments

@free1990
Copy link

free1990 commented Apr 23, 2020

I found a problem on product evn, here is error log , anyone can help?

code = -1004 desc = Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={NSErrorFailingURLKey=http://localhost:49786/index.html?...., _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <A2E88C08-0CF7-462D-8EB9-D6F960983E65>.<16>, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server., _WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x2822d7560>, networkTaskDescription=LocalDataTask <A2E88C08-0CF7-462D-8EB9-D6F960983E65>.<16>, _kCFStreamErrorDomainKey=1, NSErrorFailingURLStringKey=http://localhost:49786/index.html?...., NSUnderlyingError=0x282c26010 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}}

@fahadhaq
Copy link

Hey we are having the same issue, We solved it by starting the server when we need to use it and killing the server after we finish with it. We used to have it running for the length of the time we were using the app and seems the server didn't like that. Prob not the best solution but hope it will help.

@ehsanmehrabi
Copy link

T

@Tonyvalony
Copy link

I found a problem on product evn, here is error log , anyone can help?

code = -1004 desc = Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={NSErrorFailingURLKey=http://localhost:49786/index.html?...., _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <A2E88C08-0CF7-462D-8EB9-D6F960983E65>.<16>, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server., _WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x2822d7560>, networkTaskDescription=LocalDataTask <A2E88C08-0CF7-462D-8EB9-D6F960983E65>.<16>, _kCFStreamErrorDomainKey=1, NSErrorFailingURLStringKey=http://localhost:49786/index.html?...., NSUnderlyingError=0x282c26010 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}}

@Tonyvalony
Copy link

I found a problem on product evn, here is error log , anyone can help?

code = -1004 desc = Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={NSErrorFailingURLKey=http://localhost:49786/index.html?...., _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <A2E88C08-0CF7-462D-8EB9-D6F960983E65>.<16>, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server., _WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x2822d7560>, networkTaskDescription=LocalDataTask <A2E88C08-0CF7-462D-8EB9-D6F960983E65>.<16>, _kCFStreamErrorDomainKey=1, NSErrorFailingURLStringKey=http://localhost:49786/index.html?...., NSUnderlyingError=0x282c26010 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}}

@fahadhaq
Copy link

fahadhaq commented Aug 4, 2020

@Tonyvalony how long is the server running before you get the error? What we found is that if the server running for a long period of time the server stops responding. Had to change code to only run the server when we need to show the web page. Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants