2 / 3
Apr 9

Hello everyone,

We are currently using Realm (Dart) in version 20.0.1 and setting up a CI/CD pipeline in GitLab. We have a custom PUB_HOSTED_URL configured, pointing to our own Artifactory instance.

However, when running the command fvm flutter build apk, the process tries to fetch a HostedDependency: ^20.0.1, which results in the following error due to restrictions:

HostedDependency: ^20.0.1 Directory: '/Users/admin/.pub-cache/hosted/myHub.com%47artifactory%47api%47pub%47pub-remote%47/realm-20.0.1/android/src/main/cpp/lib' Downloading Realm binaries for 20.0.1 to /var/folders/cp/j2_0cyr95090tmf6wc711cym0000gn/T/realm-binary-5d3hRn/android.tar.gz ERROR: ERROR: Unhandled exception: SocketException: Network is unreachable (OS Error: Network is unreachable, errno = 51), address = static.realm.io, port = 49665

It appears to be trying to download binaries from static.realm.io, but fails due to network restrictions.

we have added static.realm.io to no_proxy variable.

My Questions:

  1. Is there a way to bypass or resolve this issue?
  2. Would it be possible for us to host the dependency binaries ourselves to avoid this restriction?
  3. Has anyone encountered a similar situation and found a solution to it?

Any guidance or suggestions would be greatly appreciated!

Thank you in advance.

Closed on Apr 14

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.