Failed to connect to eu-api.repository.com

What does this message mean? My problem or your?

/FCMRegistration(19701): Could not register device on Backendless server: BackendlessFault{ code: ‘Internal client exception’, message: ‘failed to connect to repository.com (port 443) from /100.100.151.77 (port 37744) after 100500ms: isConnected failed: ETIMEDOUT (Connection timed out)’, detail: 'java.net.SocketTimeoutException: failed to connect to repository.com (port 443) from /100.100.151.77 (port 37744) after 100500ms: isConnected failed: ETIMEDOUT (Connection timed out)

It means the service you are connecting to didn’t respond.

What should I do?

Contact that service provider and find out why are not accepting a connection

It seems it’s your problem because I tried two different provider and then a vpn connection.

Please help me understand how it is our problem when a remote service that we have nothing to do with doesn’t respond??

Because I get different IPs for the same error. and I can ping them all from here! new one is:

V/ActivityThread(24799): Handle window ActivityRecord{cd7f863 token=android.os.BinderProxy@80fd296 {com.foroodja.customer/com.foroodja.foroodja.MainActivity}} visibility: false
E/flutter (24799): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(Internal client exception, Failed to connect to eu-api.repository.com/ 76.223.26.96:443, java.net.ConnectException: Failed to connect to eu-api.repository.com/ 76.223.26.96:443

and now is:
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(Internal client exception, failed to connect to repository.com (port 443) from /192.168.1.104 (port 44250) after 100500ms, java.net.SocketTimeoutException: failed to connect to repository.com (port 443) from /192.168.1.104 (port 44250) after 100500m

Would you please help me understand the problem! I
s it a DNS error or is it because Backendless cant connect to its server?

I’m sorry, but your explanation doesn’t make any sense. The problem is that the other host does not accept connection so it has nothing to do with backendless.

You should contact their support to figure out the problem.

Ok, thanks.

Can you please tell me what this error is telling me? Because I called my provider and they tested my line and told me there is nothing wrong with it! And I checked with other providers on my 4G connection and the same error pops up.

Task .<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 “The request timed out.” UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x281db5620 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 “(null)” UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
“LocalDataTask .<1>”
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://eu-api.repository.com/F16241BA-7A18-F7D0-FF2F-3F9E30C90900/D54A70F8-4776-436F-896C-099DA91325BF/data/StoreDetails/find, NSErrorFailingURLKey=https://eu-api.repository.com/F16241BA-7A18-F7D0-FF2F-3F9E30C90900/D54A70F8-4776-436F-896C-099DA91325BF/data/StoreDetails/find, _kCFStreamErrorDomainKey=4}
Task <49B3BF6A-A2FE-494B-BE0C-475BC967B92C>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 “The request timed out.” UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x281df3de0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 “(null)” UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <49B3BF6A-A2FE-494B-BE0C-475BC967B92C>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
“LocalDataTask <49B3BF6A-A2FE-494B-BE0C-475BC967B92C>.<1>”
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://eu-api.repository.com/F16241BA-7A18-F7D0-FF2F-3F9E30C90900/D54A70F8-4776-436F-896C-099DA91325BF/data/ProductDetails/count, NSErrorFailingURLKey=https://eu-api.repository.com/F16241BA-7A18-F7D0-FF2F-3F9E30C90900/D54A70F8-4776-436F-896C-099DA91325BF/data/ProductDetails/count, _kCFStreamErrorDomainKey=4}
Task .<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 “The request timed out.” UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x281df5860 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 “(null)” UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
“LocalDataTask .<1>”
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://eu-api.repository.com/F16241BA-7A18-F7D0-FF2F-3F9E30C90900/D54A70F8-4776-436F-896C-099DA91325BF/data/ProductDetails/count, NSErrorFailingURLKey=https://eu-api.repository.com/F16241BA-7A18-F7D0-FF2F-3F9E30C90900/D54A70F8-4776-436F-896C-099DA91325BF/data/ProductDetails/count, _kCFStreamErrorDomainKey=4}
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: PlatformException(-1001, The request timed out., The request timed out., null)

What is this host name?

I don’t know really. It’s whole log coming from Backendless when fails to grab the data.

It is coming from your logic/code. You are connecting to that host (domain name). We need to know what it is.

This is from an Android device may be helpful. The previous one is from the iPad.

D/FCMRegistration(12166): Could not register device on Backendless server: BackendlessFault{ code: 'Internal client exception', message: 'failed to connect to eu-api.repository.com/13.248.148.254 (port 443) from /192.168.1.201 (port 42380) after 100500ms: isConnected failed: ETIMEDOUT (Connection timed out)', detail: 'java.net.SocketTimeoutException: failed to connect to eu-api.repository.com/13.248.148.254 (port 443) from /192.168.1.201 (port 42380) after 100500ms: isConnected failed: ETIMEDOUT (Connection timed out)
D/FCMRegistration(12166): 	at libcore.io.IoBridge.isConnected(IoBridge.java:271)
D/FCMRegistration(12166): 	at libcore.io.IoBridge.connectErrno(IoBridge.java:188)
D/FCMRegistration(12166): 	at libcore.io.IoBridge.connect(IoBridge.java:130)
D/FCMRegistration(12166): 	at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:129)
D/FCMRegistration(12166): 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:356)
D/FCMRegistration(12166): 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
D/FCMRegistration(12166): 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
D/FCMRegistration(12166): 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:357)
D/FCMRegistration(12166): 	at java.net.Socket.connect(Socket.java:616)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.Platform.connectSocket(Platform.java:145)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:141)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:461)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:258)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
D/FCMRegistration(12166): 	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(Unknown Source:0)
D/FCMRegistration(12166): 	at weborb.client.ioEngine.HttpIOEngine.send(HttpIOEngine.java:195)
D/FCMRegistration(12166): 	at weborb.client.ioEngine.HttpIOEngine.invoke(HttpIOEngine.java:140)
D/FCMRegistration(12166): 	at weborb.client.WeborbClient.invoke(WeborbClient.java:138)
D/FCMRegistration(12166): 	at com.backendless.Invoker.invokeSync(Invoker.java:95)
D/FCMRegistration(12166): 	at com.backendless.Invoker$1.run(Invoker.java:71)
D/FCMRegistration(12166): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
D/FCMRegistration(12166): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
D/FCMRegistration(12166): 	at java.lang.Thread.run(Thread.java:764)
D/FCMRegistration(12166): Caused by: android.system.ErrnoException: isConnected failed: ETIMEDOUT (Connection timed out)
D/FCMRegistration(12166): 	at libcore.io.IoBridge.isConnected(IoBridge.java:262)
D/FCMRegistration(12166): 	... 29 more
D/FCMRegistration(12166): ', extendedData: '{}' }
E/flutter (12166): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: FormatException: Invalid envelope
E/flutter (12166): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:609:7)
E/flutter (12166): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:18)
E/flutter (12166): <asynchronous suspension>
E/flutter (12166): #2      initBackend (package:foroodja/main.dart:58:5)
E/flutter (12166): <asynchronous suspension>
E/flutter (12166): 

I believe the error is throwing from here:

await Backendless.data.of('ProductDetails').find(query).then((value) {
      if (value == null) {
        return null;
      } else{
        result = value;
      }
    }).catchError((error) {
      throw error;
    });

The Log is like this in android:

E/flutter (12166): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(Internal client exception, failed to connect to eu-api.repository.com/13.248.148.254 (port 443) from /192.168.1.201 (port 42379) after 100500ms: isConnected failed: ETIMEDOUT (Connection timed out), java.net.SocketTimeoutException: failed to connect to eu-api.repository.com/13.248.148.254 (port 443) from /192.168.1.201 (port 42379) after 100500ms: isConnected failed: ETIMEDOUT (Connection timed out)
E/flutter (12166): 	at libcore.io.IoBridge.isConnected(IoBridge.java:271)
E/flutter (12166): 	at libcore.io.IoBridge.connectErrno(IoBridge.java:188)
E/flutter (12166): 	at libcore.io.IoBridge.connect(IoBridge.java:130)
E/flutter (12166): 	at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:129)
E/flutter (12166): 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:356)
E/flutter (12166): 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
E/flutter (12166): 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
E/flutter (12166): 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:357)
E/flutter (12166): 	at java.net.Socket.connect(Socket.java:616)
E/flutter (12166): 	at com.android.okhttp.internal.Platform.connectSocket(Platform.java:145)
E/flutter (12166): 	at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:141)
E/flutter (12166): 	at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
E/flutter (12166): 	at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
E/flutter (12166): 	at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
E/flutter (12166): 	at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
E/flutter (12166): 	at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
E/flutter (12166): 	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
E/flutter (12166): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:461)
E/flutter (12166): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
E/flutter (12166): 	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:258)
E/flutter (12166): 	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
E/flutter (12166): 	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(Unknown Source:0)
E/flutter (12166): 	at weborb.client.ioEngine.HttpIOEngine.send(HttpIOEngine.java:195)
E/flutter (12166): 	at weborb.client.ioEngine.HttpIOEngine.invoke(HttpIOEngine.java:140)
E/flutter (12166): 	at weborb.client.WeborbClient.invoke(WeborbClient.java:138)
E/flutter (12166): 	at com.backendless.Invoker.invokeSync(Invoker.java:95)
E/flutter (12166): 	at com.backendless.Invoker$1.run(Invoker.java:71)
E/flutter (12166): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
E/flutter (12166): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
E/flutter (12166): 	at java.lang.Thread.run(Thread.java:764)
E/flutter (12166): Caused by: android.system.ErrnoException: isConnected failed: ETIMEDOUT (Connection timed out)
E/flutter (12166): 	at libcore.io.IoBridge.isConnected(IoBridge.java:262)

I put a log onError to be sure it is coming from yours. My code is:

await Backendless.data.of('ProductDetails').getObjectCount().then((count) {
      countRows = count!;
    }).onError((error, stackTrace){
      log('ProductDetails Error: $error');
    });

The outcome is:

[log] ProductDetails Error: PlatformException(Internal client exception, failed to connect to eu-api.repository.com/76.223.26.96 (port 443) from /192.168.1.201 (port 48344) after 100500ms: isConnected failed: ETIMEDOUT (Connection timed out), java.net.SocketTimeoutException: failed to connect to eu-api.repository.com/76.223.26.96 (port 443) from /192.168.1.201 (port 48344) after 100500ms: isConnected failed: ETIMEDOUT (Connection timed out)
	at libcore.io.IoBridge.isConnected(IoBridge.java:271)
	at libcore.io.IoBridge.connectErrno(IoBridge.java:188)
	at libcore.io.IoBridge.connect(IoBridge.java:130)
	at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:129)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:356)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:357)
	at java.net.Socket.connect(Socket.java:616)
	at com.android.okhttp.internal.Platform.connectSocket(Platform.java:145)
	at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:141)
	at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
	at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
	at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
	at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
	at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
	at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:461)
	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:258)
	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(Unknown Source:0)
	at weborb.client.ioEngine.HttpIOEngine.send(HttpIOEngine.java:195)
	at weborb.client.ioEngine.HttpIOEngine.invoke(HttpIOEngine.java:140)
	at weborb.client.WeborbClient.invoke(WeborbClient.java:138)
	at com.backendless.Invoker.invokeSync(Invoker.java:95)
	at com.backendless.Invoker$1.run(Invoker.java:71)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
	at java.lang.Thread.run(Thread.java:764)
Caused by: android.system.ErrnoException: isConnected failed: ETIMEDOUT (Connection timed out)
	at libcore.io.IoBridge.isConnected(IoBridge.java:262)
	... 29 more
, null)

Can you search your entire android project for eu-api.repository.com and tell me what you find?

Thank you very much, for your patience and help. Android Studio changed my code, and got me confused.

So the problem is resolved?

Yes Sir. Thanks.
I want to change my BackendLess directory to repository and refactor the name but android studio changed my eu-api.backendless to eu-api.repository.