Page 2 of 3

Re: Package tis-template-microsoft-store

Published: October 25, 2023 - 2:20 PM
by Christophe

Re: Package tis-template-microsoft-store

Published: October 25, 2023 - 2:34 PM
by sfonteneau
The package will first use `
from urllib.request import getproxies`

before using the console configuration.

In your case, `'https': 'https://cache-etu.univ-artois.fr:3128'` is not valid.

It should be `'https': '//cache-etu.univ-artois.fr.

In my opinion, this value is retrieved from the machine's system variables.

Re: Package tis-template-microsoft-store

Published: October 25, 2023 - 2:43 PM
by Christophe
Do you know where to change this setting?

Re: Package tis-template-microsoft-store

Published: October 25, 2023 - 3:47 PM
by Christophe
Okay, it works.
I do indeed need to disable the proxy server in Windows settings

The download now completes correctly, but then I get this error:

Code: Select all

CRITICAL:waptcore:Fatal error in update_package  None : None:
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\util\connection.py", line 96, in create_connection
    raise err
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\util\connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [WinError 10060] Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 353, in connect
    conn = self._new_conn()
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 181, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0C419808>: Failed to establish a new connection: [WinError 10060] Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une c
ertaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\util\retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='apps.microsoft.com', port=443): Max retries exceeded with url: /store/detail/9PB2MZ1ZMB1S?gl=US&hl=en-US (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0C419808>: Fa
iled to establish a new connection: [WinError 10060] Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 8546, in call_python_code
    hookdata = hook_func()
  File "C:\Users\ADMINI~1\AppData\Local\Temp\wapt-20231025-15434000000.tmp\dsi-template-microsoft-store-app_0-56_windows_10.0_PROD\update_package.py", line 203, in update_package
    bs_name = bs_find(microsoft_store_url + "?gl=US&hl=en-US", "meta", "property", "og:title", allow_redirects=True)["content"]
  File "<string>", line 102, in bs_find
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='apps.microsoft.com', port=443): Max retries exceeded with url: /store/detail/9PB2MZ1ZMB1S?gl=US&hl=en-US (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0C419808>:
 Failed to establish a new connection: [WinError 10060] Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu'))

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\util\connection.py", line 96, in create_connection
    raise err
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\util\connection.py", line 86, in create_connection
    sock.connect(sa)
TimeoutError: [WinError 10060] Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 353, in connect
    conn = self._new_conn()
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connection.py", line 181, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0C419808>: Failed to establish a new connection: [WinError 10060] Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une c
ertaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "C:\Program Files (x86)\wapt\lib\site-packages\urllib3\util\retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='apps.microsoft.com', port=443): Max retries exceeded with url: /store/detail/9PB2MZ1ZMB1S?gl=US&hl=en-US (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0C419808>: Fa
iled to establish a new connection: [WinError 10060] Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 8550, in call_python_code
    raise e
  File "C:\Program Files (x86)\wapt\common.py", line 8546, in call_python_code
    hookdata = hook_func()
  File "C:\Users\ADMINI~1\AppData\Local\Temp\wapt-20231025-15434000000.tmp\dsi-template-microsoft-store-app_0-56_windows_10.0_PROD\update_package.py", line 203, in update_package
    bs_name = bs_find(microsoft_store_url + "?gl=US&hl=en-US", "meta", "property", "og:title", allow_redirects=True)["content"]
  File "<string>", line 102, in bs_find
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "C:\Program Files (x86)\wapt\lib\site-packages\requests\adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='apps.microsoft.com', port=443): Max retries exceeded with url: /store/detail/9PB2MZ1ZMB1S?gl=US&hl=en-US (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0C419808>:
 Failed to establish a new connection: [WinError 10060] Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu'))

Re: Package tis-template-microsoft-store

Published: October 25, 2023 - 3:57 PM
by Christophe
Before this error, I get this message and I don't know what to do (except click "OK")

Re: Package tis-template-microsoft-store

Published: October 25, 2023 - 4:27 PM
by sfonteneau
Christophe wrote: Oct 25, 2023 - 2:43 PM Do you know where to change this setting?
here :

Your new message apparently doesn't work without a proxy

Re: Package tis-template-microsoft-store

Published: October 26, 2023 - 08:08
by Christophe
I have no information regarding proxy settings in the "environment variables"

Re: Package tis-template-microsoft-store

Published: October 26, 2023 - 3:23 PM
by Christophe
So, I added the proxy settings for HTTP and HTTPS to the Windows environment variables.
Now, with `getproxies`, I have the correct settings.

However, it still doesn't work.
We observed that the software downloads correctly through the proxy at the address "store.rg-adguard.net".
Once the download is complete, we ran `netstat` and noticed a connection on two IPs (see screenshot) that doesn't go through our proxy. That's why I'm getting an error.

Re: Package tis-template-microsoft-store

Published: October 26, 2023 - 5:05 PM
by sfonteneau
Thank you for your feedback.

I've just pushed a new version of the package to the store.

There was indeed a proxy issue; it wasn't working for all calls.

I also prioritized the console proxy configuration over the system one.

Re: Package tis-template-microsoft-store

Published: October 27, 2023 - 8:39 AM
by Christophe
Indeed, with this new version of the package, the download completes correctly.
I manage to create my package entirely, but it doesn't install on the PC.
I think I'm forgetting to do something, but what?