Unable to access cesium apis in build

Hello there!

Few items first for context: I’m developing an application using UE 5.1 for various geolocation features and very heavily utilize the cesium for unreal plugin.

The problem is that, while I have no issues accessing and loading cesium terrains within the UE 5.1 editor, the packaged application is unable to access api.cesium.com. I’m pretty sure it’s a firewall or proxy setting change, but I’m struggling to figure out what’s different between the UE editor and a deployed application.

Here is the relevant log information – again bear in mind. I have no issues accessing terrain datasets while in the editor. It’s just in a build that these problems occur:

[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CB0080: invalid HTTP response code received. URL: https://api.cesium.com/v1/assets/2275207/endpoint?access_token=[...], HTTP code: 0, content length: 0, actual payload size: 0
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CB0080: request failed, libcurl error: 35 (SSL connect error)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CB0080: libcurl info message cache 0 (Found bundle for host: 0x279d2da28f0 [serially])
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CB0080: libcurl info message cache 1 (Hostname ‘api.cesium.com’ was found in DNS cache)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CB0080: libcurl info message cache 2 ( Trying 52.85.151.18:443…)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CB0080: libcurl info message cache 3 (Connected to api.cesium.com (52.85.151.18) port 443 (#3))
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CB0080: libcurl info message cache 4 (schannel: disabled automatic use of client certificate)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CB0080: libcurl info message cache 5 (ALPN: offers http/1.1)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CB0080: libcurl info message cache 6 (schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CB0080: libcurl info message cache 7 (Closing connection 3)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279C73C7290: invalid HTTP response code received. URL: https://api.cesium.com/v1/assets/1/endpoint?access_token=[...], HTTP code: 0, content length: 0, actual payload size: 0
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279C73C7290: request failed, libcurl error: 35 (SSL connect error)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279C73C7290: libcurl info message cache 0 (Hostname ‘api.cesium.com’ was found in DNS cache)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279C73C7290: libcurl info message cache 1 ( Trying 52.85.151.18:443…)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279C73C7290: libcurl info message cache 2 (Connected to api.cesium.com (52.85.151.18) port 443 (#0))
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279C73C7290: libcurl info message cache 3 (schannel: disabled automatic use of client certificate)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279C73C7290: libcurl info message cache 4 (ALPN: offers http/1.1)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279C73C7290: libcurl info message cache 5 (schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279C73C7290: libcurl info message cache 6 (Closing connection 0)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CBFB70: invalid HTTP response code received. URL: https://api.cesium.com/v1/assets/96188/endpoint?access_token=[...], HTTP code: 0, content length: 0, actual payload size: 0
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CBFB70: request failed, libcurl error: 35 (SSL connect error)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CBFB70: libcurl info message cache 0 (Found bundle for host: 0x279d2da28f0 [serially])
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CBFB70: libcurl info message cache 1 (Hostname ‘api.cesium.com’ was found in DNS cache)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CBFB70: libcurl info message cache 2 ( Trying 52.85.151.18:443…)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CBFB70: libcurl info message cache 3 (Connected to api.cesium.com (52.85.151.18) port 443 (#2))
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CBFB70: libcurl info message cache 4 (schannel: disabled automatic use of client certificate)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CBFB70: libcurl info message cache 5 (ALPN: offers http/1.1)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CBFB70: libcurl info message cache 6 (schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279D1CBFB70: libcurl info message cache 7 (Closing connection 2)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279CA36FB70: invalid HTTP response code received. URL: https://api.cesium.com/v1/assets/2/endpoint?access_token=[...], HTTP code: 0, content length: 0, actual payload size: 0
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279CA36FB70: request failed, libcurl error: 35 (SSL connect error)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279CA36FB70: libcurl info message cache 0 (Found bundle for host: 0x279d2da28f0 [serially])
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279CA36FB70: libcurl info message cache 1 ( Trying 52.85.151.18:443…)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279CA36FB70: libcurl info message cache 2 (Connected to api.cesium.com (52.85.151.18) port 443 (#1))
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279CA36FB70: libcurl info message cache 3 (schannel: disabled automatic use of client certificate)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279CA36FB70: libcurl info message cache 4 (ALPN: offers http/1.1)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279CA36FB70: libcurl info message cache 5 (schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.)
[2024.01.31-23.59.49:551][ 1]LogHttp: Warning: 00000279CA36FB70: libcurl info message cache 6 (Closing connection 1)
[2024.01.31-23.59.49:554][ 1]LogCesium: Error: [2024-01-31 18:59:49.555] [error] [TilesetContentManager.cpp:825] An unexpected error occurred when loading tile: Connection failed.

[2024.01.31-23.59.49:554][ 1]LogCesium: Error: [2024-01-31 18:59:49.555] [error] [TilesetContentManager.cpp:825] An unexpected error occurred when loading tile: Connection failed.

[2024.01.31-23.59.49:554][ 1]LogCesium: Error: [2024-01-31 18:59:49.555] [error] [TilesetContentManager.cpp:825] An unexpected error occurred when loading tile: Connection failed.

[2024.01.31-23.59.49:554][ 1]LogCesium: Error: [2024-01-31 18:59:49.555] [error] [RasterOverlayCollection.cpp:127] Error while creating tile provider: Connection failed.

What platform are you running the packaged application on? Is it the exact same system where the Editor works? Have you set any environment variables such as HTTP_PROXY to make the Editor work?

I have a same problem at the application package.

[2024.10.30-05.15.08:358][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: invalid HTTP response code received. URL: https://api.cesium.com/v1/assets/96188/endpoint?access_token=[...], HTTP code: 0, content length: 0, actual payload size: 0
[2024.10.30-05.15.08:369][832]LogPlayLevel: Error: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: request failed, libcurl error: 60 (SSL peer certificate or SSH remote key was not OK)
[2024.10.30-05.15.08:369][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 0 (Found bundle for host: 0x16731afbe60 [serially])
[2024.10.30-05.15.08:369][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 1 ( Trying 3.168.167.115:443…)
[2024.10.30-05.15.08:380][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 2 (Connected to api.cesium.com (3.168.167.115) port 443 (#1))
[2024.10.30-05.15.08:380][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 3 (ALPN: offers http/1.1)
[2024.10.30-05.15.08:380][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 4 (TLSv1.3 (OUT), TLS handshake, Client hello (1):slight_smile:
[2024.10.30-05.15.08:391][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 5 (TLSv1.3 (IN), TLS handshake, Server hello (2):slight_smile:
[2024.10.30-05.15.08:391][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 6 (TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):slight_smile:
[2024.10.30-05.15.08:402][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 7 (TLSv1.3 (IN), TLS handshake, Certificate (11):slight_smile:
[2024.10.30-05.15.08:402][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 8 (TLSv1.3 (OUT), TLS alert, unknown CA (560):slight_smile:
[2024.10.30-05.15.08:402][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 9 (SSL certificate problem: unable to get local issuer certificate)
[2024.10.30-05.15.08:424][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9BA0: libcurl info message cache 10 (Closing connection 1)
[2024.10.30-05.15.08:424][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9710: invalid HTTP response code received. URL: https://api.cesium.com/v1/assets/2275207/endpoint?access_token=[...], HTTP code: 0, content length: 0, actual payload size: 0
[2024.10.30-05.15.08:424][832]LogPlayLevel: Error: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9710: request failed, libcurl error: 60 (SSL peer certificate or SSH remote key was not OK)
[2024.10.30-05.15.08:435][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 0 (Hostname ‘api.cesium.com’ was found in DNS cache)
[2024.10.30-05.15.08:435][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 1 ( Trying 3.168.167.115:443…)
[2024.10.30-05.15.08:435][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 2 (Connected to api.cesium.com (3.168.167.115) port 443 (#0))
[2024.10.30-05.15.08:435][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 3 (ALPN: offers http/1.1)
[2024.10.30-05.15.08:446][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 4 (TLSv1.3 (OUT), TLS handshake, Client hello (1):slight_smile:
[2024.10.30-05.15.08:446][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:327][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 5 (TLSv1.3 (IN), TLS handshake, Server hello (2):slight_smile:
[2024.10.30-05.15.08:446][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:328][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 6 (TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):slight_smile:
[2024.10.30-05.15.08:446][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:328][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 7 (TLSv1.3 (IN), TLS handshake, Certificate (11):slight_smile:
[2024.10.30-05.15.08:457][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:328][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 8 (TLSv1.3 (OUT), TLS alert, unknown CA (560):slight_smile:
[2024.10.30-05.15.08:457][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:328][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 9 (SSL certificate problem: unable to get local issuer certificate)
[2024.10.30-05.15.08:468][832]LogPlayLevel: Warning: UAT: [2024.10.30-05.15.08:328][ 1]LogHttp: Warning: 00000167352B9710: libcurl info message cache 10 (Closing connection 0)
[2024.10.30-05.15.08:468][832]LogPlayLevel: Error: UAT: [2024.10.30-05.15.08:341][ 1]LogCesium: Error: [2024-10-30 14:15:08.341] [error] [TilesetContentManager.cpp:893] An unexpected error occurred when loading tile: Request failed.

The running platform is windows.
In editor there is no problem. no custom HTTP_PROXY.

Hi @UNES_DEV_2, welcome to the community!
Please see this thread:

My most recent post in that thread has a command you can run from a PowerShell prompt that should fix this problem by triggering your system to download the necessary certificate:

Invoke-WebRequest "https://api.cesium.com"