imLinguin / nile

Unofficial Amazon Games client
GNU General Public License v3.0
297 stars 15 forks source link

SSL: CERTIFICATE_VERIFY_FAILED during install #46

Open CrimsonKnight13 opened 4 months ago

CrimsonKnight13 commented 4 months ago

I attempted to install "Lake" on EndeavourOS (Arch) but hit the error below. I've researched fix actions for python3.12 but I'm coming up short every time. I've had no errors using auth, library list, & library sync.

I'm currently using the latest commit. Thanks!

nile install amzn1.adg.product.9d883273-8960-4ada-a67f-967d2141449c --base-path /media/Games3/heroic

INFO [CLI]: Found: Lake Traceback (most recent call last): File "urllib3/connectionpool.py", line 715, in urlopen File "urllib3/connectionpool.py", line 404, in _make_request File "urllib3/connectionpool.py", line 1058, in _validateconn File "urllib3/connection.py", line 419, in connect File "urllib3/util/ssl.py", line 449, in ssl_wrapsocket File "urllib3/util/ssl.py", line 493, in _ssl_wrap_socket_impl File "ssl.py", line 455, in wrap_socket File "ssl.py", line 1042, in _create File "ssl.py", line 1320, in do_handshake ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "requests/adapters.py", line 486, in send File "urllib3/connectionpool.py", line 799, in urlopen File "urllib3/util/retry.py", line 592, in increment urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='client.legacy-app.games.a2z.com', port=443): Max retries exceeded withurl: (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "nile/cli.py", line 347, in File "nile/cli.py", line 328, in main File "nile/cli.py", line 154, in handle_install File "nile/downloading/manager.py", line 93, in download File "nile/downloading/manager.py", line 34, in get_manifest File "requests/sessions.py", line 602, in get File "requests/sessions.py", line 589, in request File "requests/sessions.py", line 703, in send File "requests/adapters.py", line 517, in send requests.exceptions.SSLError: HTTPSConnectionPool(host='client.legacy-app.games.a2z.com', port=443): Max retries exceeded with url: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)'))) [203305] Failed to execute script 'cli' due to unhandled exception!

CrimsonKnight13 commented 1 month ago

Partially resolved by installing the Cloudflare CA to /etc/ssl/certs.

Another issue occurs after that but not sure if its related at all.

[1827048] Failed to execute script 'cli' due to unhandled exception!

[8/16/2024, 4:07:38 PM] NILE_CONFIG_PATH=/home/crimsonknight13/.config/heroic/nile_config /opt/heroic/resources/app.asar.unpacked/build/bin/x64/linux/nile --version

1.1.1 Will A. Zeppeli

[8/16/2024, 4:08:02 PM] NILE_CONFIG_PATH=/home/crimsonknight13/.config/heroic/nile_config /opt/heroic/resources/app.asar.unpacked/build/bin/x64/linux/nile --version

1.1.1 Will A. Zeppeli

[8/16/2024, 4:08:07 PM] NILE_CONFIG_PATH=/home/crimsonknight13/.config/heroic/nile_config /usr/bin/nile --version

1.1.1 Will A. Zeppeli

[8/16/2024, 4:09:03 PM] NILE_CONFIG_PATH=/home/crimsonknight13/.config/heroic/nile_config /usr/bin/nile install --info --json 69008e07-590b-4ea1-9aa4-f033ef8b9d2c

[8/16/2024, 4:09:03 PM] NILE_CONFIG_PATH=/home/crimsonknight13/.config/heroic/nile_config /usr/bin/nile install --info --json 69008e07-590b-4ea1-9aa4-f033ef8b9d2c

WARNING [CLI]:   There was an error getting sdk

INFO [CLI]:  Found: >observer_

Traceback (most recent call last):

  File "/usr/bin/./nile", line 354, in <module>

    sys.exit(main())

             ^^^^^^

  File "/usr/bin/./nile", line 335, in main

    cli.handle_install()

  File "/usr/bin/./nile", line 167, in handle_install

    self.download_manager.info(self.arguments.json)

  File "/usr/lib/python3.12/site-packages/nile/downloading/manager.py", line 168, in info

    self.manifest = self.get_manifest()

                    ^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.12/site-packages/nile/downloading/manager.py", line 43, in get_manifest

    r_manifest.parse(response.content)

  File "/usr/lib/python3.12/site-packages/nile/models/manifest.py", line 72, in parse

    self.header_pb = header.FromString(content[4 : 4 + header_size])

                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

google.protobuf.message.DecodeError: Error parsing message