AZ Login fails with HTTPException('got more than 100 headers')

Describe the bug
When I try to login into azure cli, it errors out
Related command
az login
Errors
Unable to login to Azure CLI Interactively with the error message, The command failed with an unexpected error. Here is the traceback:
HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ProtocolError('Connection aborted.', HTTPException('got more than 100 headers')))
Issue script & Debug output
cli.knack.cli: Command arguments: ['login', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
Enable VT mode.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x032592F8>, <function OutputProducer.on_global_arguments at 0x0343F5C8>, <function CLIQuery.on_global_arguments at 0x0345C220>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'login': ['azure.cli.command_modules.profile']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: profile                   0.005         2         9
cli.azure.cli.core: Total (1)                 0.005         2         9
cli.azure.cli.core: Loaded 2 groups, 9 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : login
cli.azure.cli.core: Command table: login
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x045F75C8>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\C87944B.azure\commands\2024-02-06.16-24-52.login.19152.log'.
az_command_data_logger: command args: login --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0461E778>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0461E808>, <function register_cache_arguments..add_cache_arguments at 0x04630D60>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0343F610>, <function CLIQuery.handle_query_parameter at 0x0345C268>, <function register_ids_argument..parse_ids_arguments at 0x04630D18>]
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\C87944B\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\C87944B.azure\msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
urllib3.connectionpool: Starting new HTTPS connection (1): login.microsoftonline.com:443
urllib3.util.retry: Incremented Retry for (url='/organizations/v2.0/.well-known/openid-configuration'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
urllib3.connectionpool: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', HTTPException('got more than 100 headers'))': /organizations/v2.0/.well-known/openid-configuration
urllib3.connectionpool: Starting new HTTPS connection (2): login.microsoftonline.com:443
cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception:
cli.azure.cli.core.util: Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 699, in urlopen
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 445, in _make_request
File "", line 3, in raise_from
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 440, in _make_request
File "http\client.py", line 1374, in getresponse
File "http\client.py", line 337, in begin
File "http\client.py", line 234, in parse_headers
File "http\client.py", line 219, in _read_headers
http.client.HTTPException: got more than 100 headers
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 439, in send
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 783, in urlopen
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 755, in urlopen
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/retry.py", line 574, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ProtocolError('Connection aborted.', HTTPException('got more than 100 headers')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 139, in login
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 154, in login
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 135, in login_with_auth_code
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 107, in _msal_app
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 1525, in init
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 456, in init
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 100, in init
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 160, in tenant_discovery
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/individual_cache.py", line 269, in wrapper
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 555, in get
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 542, in request
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 655, in send
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 516, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ProtocolError('Connection aborted.', HTTPException('got more than 100 headers')))
cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.azclierror: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ProtocolError('Connection aborted.', HTTPException('got more than 100 headers')))
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 699, in urlopen
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 445, in _make_request
File "", line 3, in raise_from
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 440, in _make_request
File "http\client.py", line 1374, in getresponse
File "http\client.py", line 337, in begin
File "http\client.py", line 234, in parse_headers
File "http\client.py", line 219, in _read_headers
http.client.HTTPException: got more than 100 headers
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 439, in send
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 783, in urlopen
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 755, in urlopen
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/retry.py", line 574, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ProtocolError('Connection aborted.', HTTPException('got more than 100 headers')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 139, in login
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 154, in login
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 135, in login_with_auth_code
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 107, in _msal_app
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 1525, in init
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 456, in init
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 100, in init
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 160, in tenant_discovery
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/individual_cache.py", line 269, in wrapper
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 555, in get
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 542, in request
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 655, in send
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 516, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ProtocolError('Connection aborted.', HTTPException('got more than 100 headers')))
az_command_data_logger: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ProtocolError('Connection aborted.', HTTPException('got more than 100 headers')))
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 699, in urlopen
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 445, in _make_request
File "", line 3, in raise_from
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 440, in _make_request
File "http\client.py", line 1374, in getresponse
File "http\client.py", line 337, in begin
File "http\client.py", line 234, in parse_headers
File "http\client.py", line 219, in _read_headers
http.client.HTTPException: got more than 100 headers
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 439, in send
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 783, in urlopen
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connectionpool.py", line 755, in urlopen
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/retry.py", line 574, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ProtocolError('Connection aborted.', HTTPException('got more than 100 headers')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 663, in execute
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/profile/custom.py", line 139, in login
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_profile.py", line 154, in login
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 135, in login_with_auth_code
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/auth/identity.py", line 107, in _msal_app
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 1525, in init
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/application.py", line 456, in init
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 100, in init
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/authority.py", line 160, in tenant_discovery
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msal/individual_cache.py", line 269, in wrapper
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 555, in get
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 542, in request
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/sessions.py", line 655, in send
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/adapters.py", line 516, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by ProtocolError('Connection aborted.', HTTPException('got more than 100 headers')))
To open an issue, please run: 'az feedback'
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x045F76E8>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 3.524 seconds (init: 0.897, invoke: 2.627)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 6657 in cache
telemetry.check: Negative: The C:\Users\C87944B.azure\telemetry.txt was modified at 2024-02-06 16:23:01.737840, which in less than 600.000000 s
Expected behavior
To be able to login interactively
Environment Summary
PS C:\Repos> az --version
azure-cli                         2.40.0 *
core                              2.40.0 *
telemetry                          1.0.8 *
Dependencies:
msal                            1.18.0b1
azure-mgmt-resource             21.1.0b1
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\C87944B.azure\cliextensions'
Python (Windows) 3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 15:58:59) [MSC v.1929 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
I'd prefer it to be able to login interactively

Thank you for opening this issue, we will look into it.

I got same problem on 2/6/24 9am:
$ az_login
The command failed with an unexpected error. Here is the traceback:
HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/oauth2/v2.0/devicecode (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab0160a490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/socket.py", line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/connectionpool.py", line 404, in _make_request
self._validate_conn(conn)
File "/opt/az/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn
conn.connect()
File "/opt/az/lib/python3.11/site-packages/urllib3/connection.py", line 363, in connect
self.sock = conn = self._new_conn()
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab0160a490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/connectionpool.py", line 799, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/oauth2/v2.0/devicecode (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab0160a490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/profile/custom.py", line 139, in login
subscriptions = profile.login(
^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/_profile.py", line 152, in login
user_identity = identity.login_with_device_code(scopes=scopes, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/auth/identity.py", line 169, in login_with_device_code
flow = self._msal_app.initiate_device_flow(scopes, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/msal/application.py", line 1982, in initiate_device_flow
flow = self.client.initiate_device_flow(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/msal/oauth2cli/oauth2.py", line 323, in initiate_device_flow
resp = self._http_client.post(self.configuration[DAE],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/msal/individual_cache.py", line 269, in wrapper
value = function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/msal/individual_cache.py", line 269, in wrapper
value = function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/oauth2/v2.0/devicecode (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab0160a490>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Here is the result when trying to upgrade:
$ az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Failed to get the latest azure-cli version.
Upgrading extensions
Checking update for azure-devops
Unable to get extension index.
Please ensure you have network connection. Error detail: HTTPSConnectionPool(host='aka.ms', port=443): Max retries exceeded with url: /azure-cli-extension-index-v1 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fef57b74510>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Upgrade finished.You can enable auto-upgrade with 'az config set auto-upgrade.enable=yes'. More details in https://docs.microsoft.com/cli/azure/update-azure-cli#automatic-update

I found the problem is Hyper-V Ubuntu-20.04(MSFT) network issue. MSFT changed it lately to make click link unusable and login fail, then it is changed back so yestoday I can use click link when az_login. Today it is changed back, after restart VM and Ubuntu, I can az login but click link to open web page again no worked. Looks like people check code not even tried to az login.

yeah, a few days ago when Ubuntu-20.04 upgrade itself, it has an new icon like Canada flag, and removed topline buttons not allow user to click + or so to start another console/powershell. Clean or messy?

You are the first one who reports got more than 100 headers error.
No clue what causes this.
Could you please provide the output of & "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe" -c "import requests; print(requests.get('https://login.microsoftonline.com').status_code)"?
Also, a re-installation may help.

today the problem came back, still no body to fix it?
az_login
The command failed with an unexpected error. Here is the traceback:
HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f70009c7850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/socket.py", line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/connectionpool.py", line 404, in _make_request
self._validate_conn(conn)
File "/opt/az/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn
conn.connect()
File "/opt/az/lib/python3.11/site-packages/urllib3/connection.py", line 363, in connect
self.sock = conn = self._new_conn()
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f70009c7850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/connectionpool.py", line 827, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/connectionpool.py", line 799, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f70009c7850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/command_modules/profile/custom.py", line 139, in login
subscriptions = profile.login(
^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/_profile.py", line 152, in login
user_identity = identity.login_with_device_code(scopes=scopes, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/auth/identity.py", line 169, in login_with_device_code
flow = self._msal_app.initiate_device_flow(scopes, **kwargs)
^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/azure/cli/core/auth/identity.py", line 119, in _msal_app
self._msal_app_instance = PublicClientApplication(self.client_id, **self._msal_public_app_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/msal/application.py", line 1718, in init
super(PublicClientApplication, self).init(
File "/opt/az/lib/python3.11/site-packages/msal/application.py", line 549, in init
self.authority = Authority(
^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/msal/authority.py", line 115, in init
openid_config = tenant_discovery(
^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/msal/authority.py", line 180, in tenant_discovery
resp = http_client.get(tenant_discovery_endpoint, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/msal/individual_cache.py", line 269, in wrapper
value = function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.11/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /organizations/v2.0/.well-known/openid-configuration (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f70009c7850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

For got more than 100 headers error, we haven't seen it before. I can't repro it and no other users are reporting it either.
A quick test shows https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration only returns 13 headers, far below the 100 headers limit:
import requests

r = requests.get('https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration')
print(len(r.headers))
print(r.headers)

Output:
14
{'Cache-Control': 'max-age=86400, private', 'Content-Type': 'application/json; charset=utf-8',...

For [Errno -3] Temporary failure in name resolution, it indicates your network is not able to DNS resolve login.microsoftonline.com or aka.ms. Please check your network connection to make DNS resolution work. You may verify whether DNS resolution works with nslookup login.microsoftonline.com.

it is changed back so yestoday I can use click link when az_login

removed topline buttons not allow user to click + or so to start another console/powershell

@joe-dai, az login doesn't require you to click a link. It automatically pops up a web browser, not a console/PowerShell. Could you share more info and some screenshots?

Something similar happened sometime ago and it was casued due to expired cookies in browser session.

The got more than 100 headers error is thrown by requests Python library. It has nothing to do with web browser or cookies. I doubt it is related.

@jiasli,
I ran into this today. For me the url https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration returns 108 headers. I am in a corporate environment and the response contains a whole bunch of Restrict-Access-Content headers.


Create contributing.md

Hi @remiadon! Thanks for this! I think that as a start it might make sense to do PR directly on our branch with satra (at least I think this is how satra was envisioning it - see https://github.com/bids-standard/bids-specification/pull/487). Can you update the text accordingly?

@cmaumet OK
Moreover, I moved the Avoid big pull requests paragraph to this contributing.md file, I think we can remove it from the README

done, closing this


Deprecate cargo verify-project

Problem
I never found cargo verify-project useful. It never checks semantics of Cargo.toml. What it does is merely

Locating a workspace.
Parsing Cargo.toml and ensuring that be valid TOML, during the course of locating a workspace.

I don't know if in the wild it is heavily used, but apparently on GitHub it's not (see this search result). It also causes confusions like people expecting it to verify more stuff (#11202).
I wonder if it's time to decide how this command should be.
Proposed Solution
We have at least two choices.

Make it clear that what cargo verify-project verifies. Perhaps at this moment only TOML syntax. We could expand to simple manifest semantic, though the line will never be clear and can't be a complete verification.

Mark cargo verify-project as deprecated. Whomever want to use it could continue, though we don't add any support in the future.
cargo locate-project --workspace might be a good alternative. (Well, not completely. locate-project additionally checks UTF8 for some unknown reason. And IMO it should be allowed.)

Notes
Commit: e8adba9d24257e14fef8793cecabb55b2fbcd0e3

This is the oldest commit I found https://github.com/rust-lang/cargo/commit/4de86d2eec82a92944245d0f269fe55907135de7 relevant. Looks like cargo-verify-project ought to be more useful than it is now.
https://github.com/rust-lang/cargo/blob/4de86d2eec82a92944245d0f269fe55907135de7/README.md?plain=1#L32-L39

... I wonder if this predates the rename of project to package which would explain why it uses project in the name.
In general, I want to re-examing our plumbing and see if there is a better route to go, inspired by the Argon/smelt ideas.

The cargo team discussed this, and decided that the verify-project command should probably be deprecated. The command is almost never used, and doesn't really do very much (and probably not what people expect).
In the future, we may consider undeprecating it, replacing it with a different command, or setting it up under a unified plumbing system.
We didn't discuss the exact details of how it should be deprecated (possibly similar to read-manifest?), but I would expect at least marking it in the documentation. We could also start removing it from the documentation or the command listings?

I suggest the same as with read-manifest:

Keep the command in cargo --list.
Remove it from the documentation
Notify that the command is deprecated as with cargo help read-manifest

Sounds good to me to align with cargo read-manifest as a starting point! Feel free to submit a PR.

@rustbot claim


help page out of range duplicates numbers

This should be filed as a bug for cloud. Likely due to <page> and <max_pages> being replaced twice, and args not being used in messageProvider.

No longer seems to be an issue in the latest commit. Probably fixed in cloud.


cache_latent is doing for what

I found I use the config_multi_image.yaml they got multple cache what is this for
why have many cache?
is this for inference?

but in the above image is just load the lora weight for subject spatial and motion temporal

These caches are used in training to avoid encoding training data for multiple times, and they are not used during inference.


decompose swap-deployment into separate intercept and clone operations

I've been using telepresence in my dev workflow, primarily via swap-deployment, and it occurs to me that while this is quite useful, it is actually combining two logical things which would be useful on their own:

The ability to clone an existing deployment while substituting the telepresence proxy would enable me to locally develop in an environment consistent with the remote cluster without needing to impact/divert traffic to the telepresence proxy. This would give me the behavior of swap-deployment but in a "read-only" way with respect to cluster initiated traffic.

The ability to independently switch the remote service to point to my cloned proxy would then allow me to opt into the full service intercept behavior of swap-deployment.

@rhs Is this a Telepresence issue?

Yup, sorry, wrong repo.


New version: Liberica JDK21 <IP_ADDRESS>

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[x] Is there a linked Issue?

Manifests

[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

2024-04-23T11:10:22.0448884Z ##[error]Manifest Validation Failed
2024-04-23T11:10:27.0627819Z ##[section]Finishing: Validate Manifest

(Automated response - build 877.)


Add 'name' parameter to the 'resource_hash' for validate_references

Overview
This pull request changes the Catalog validation functionality.
The Apache httpd server is well known to be THE software that has different names between RHEL based OS (httpd) and Debian + others ones (apache2).
For this kind of issue, Puppet allows you to add an alias parameter on any resource and this works fine in octocatalog-diff.
The Apache module we use (puppetlabs-apache,  "version": "2.3.0") defines the name parameter and not the alias. Then the catalog validation fails in our case (puppetlabs-apache + voxpupuli/puppet-puppetboard:4.0.0)
To work around this limitation, I added the name parameter to the resources_hash object if it exists.
Checklist

[ ] Make sure that all of the tests pass, and fix any that don't. Just run rake in your checkout directory, or review the CI job triggered whenever you push to a pull request.
[ ] Make sure that there is 100% test coverage by running rake coverage:spec or ignoring untestable sections of code with # :nocov comments. If you need help getting to 100% coverage please ask; however, don't just submit code with no tests.

/cc [related issues] [teams and individuals, making sure to mention why you're CC-ing them]

I tried to run the tests into a docker container but I have managed to make them pass ...
However, I have the same number of failures and pending in both kind of tests required by the PR templates on master and on my branch ...
If somebody could guide me to, that would be very nice :)


Suggestions for regression-based 3D attention

Any alternative codebases that might help out with regression? (instead of classification/segmentation).

@sgbaird Did you get anything? I am looking for regression for Video input (Batch_size, time_frames, Height, Width, Channels).

@ravikiranrao not yet, I think we're going to try a fully connected neural network to change the shape to 2D (and use PyTorch's built-in), but if we find something I'll try to remember to post back here.

Hi,
sorry for the late answer. M3D-Cam is designed for segmentation and classification, but it should also be adaptable to regression. Maybe it works out-of-the-box, but I have not tested that. However, you probably need to adapt some parts of the postprocessing in medcam_inject.py.
Best would be for you to just try the default usage and work yourself up from that in case of errors.
However, I won't be able to help you with that (if you try it) as I don't really have time currently.
# Import M3d-CAM
from medcam import medcam

# Init your model and dataloader
model = MyCNN()
data_loader = DataLoader(dataset, batch_size=1, shuffle=False)

# Inject model with M3d-CAM
model = medcam.inject(model, output_dir="attention_maps", save_maps=True)

# Continue to do what you're doing...
# In this case inference on some new data
model.eval()
for batch in data_loader:
    # Every time forward is called, attention maps will be generated and saved in the directory "attention_maps"
    output = model(batch)
    # more of your code...

Best
Karol


About airfoil data

The airfoil data can be attain by xfoil, and usually we set the chord length equal 1 in xfoil, but in the config.ini, the chord length does not equal 1, should I change the chord length in xfoil setting?
And another problem is should I set different reynold number in each section?

The xfoil chord length is non-dimensional, in the BEMT solver you need to input the real chord length of your propeller/turbine. The actual Reynolds number will depend on other simulation parameters such as the inflow speed and rotational speed, it is output from the simulation. pyBEMT does not currently support multiple airfoil data for different Reynolds numbers, so you need to make some reasonable compromises here.

Thank you for your reply, I think I know how to deal with it


json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I wrote this...
translator = Translator()
trans_token = translator.translate(token, dest='en', src='hi')
new_token = trans_token.text

And I am getting this below error now.
When I ran at first it worked but stopped after sometime.
Now, It is not even going for one.
Please help ASAP
Traceback (most recent call last):
  File "score.py", line 168, in <module>
    trans_token = translator.translate(token, dest='en', src='hi')
  File "/usr/local/lib/python3.7/site-packages/googletrans/client.py", line 172, in translate
    data = self._translate(text, dest, src)
  File "/usr/local/lib/python3.7/site-packages/googletrans/client.py", line 81, in _translate
    data = utils.format_json(r.text)
  File "/usr/local/lib/python3.7/site-packages/googletrans/utils.py", line 62, in format_json
    converted = legacy_format_json(original)
  File "/usr/local/lib/python3.7/site-packages/googletrans/utils.py", line 54, in legacy_format_json
    converted = json.loads(text)
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Problem
This page appears when Google automatically detects requests coming from your computer network which appear to be in violation of the Terms of Service. The block will expire shortly after those requests stop.

This traffic may have been sent by malicious software, a browser plug-in, or a script that sends automated requests.  If you share your network connection, ask your administrator for help — a different computer using the same IP address may be responsible.  Learn more

Sometimes you may see this page if you are using advanced terms that robots are known to use, or sending requests very quickly.

I have got the error like you, but I don't know how to solve it.

same error

I have the same issue... Any idea ?? Thanks

Just connect to your hotspot or restart your modem or use a vpn.... there is a limit per IP.
That should work. (Y)


Stacked versioning broken when not using :path version method

Upgrading from 0.18.0 to 0.19.0 breaks our app when we use :accept_version_header, version arrays for fallbacks, and a catch-all. I wrote this series of tests (at bottom) to verify, and all non-path catch-all tests fail.
After extensive investigation, it looks like :path versioning works because it matches using the @optimized_router immediately based on the /:version/:path pattern. When using other versioning methods and stacked versioning, version is not correctly found with the optimized router since the path pattern does not include the version. Before 0.19.0, this worked fine because the response would fall back to Router#rotation, which properly matches the correct version. After 0.19.0, the catch-all match has been prioritized over Router#rotation and prevents a correct version match.
Two approaches that could address this:

Change the order of the catch-all match (meh). If we could move the * match to after the #rotation match, that could make things work.
Change how optimized router works to be the same independent of versioning method (ideal). Versioning would work best if we normalized how versions manifest themselves as early in the request as possible so that everything else can be agnostic to the chosen version method.

The best option would be #2, but I wanted to get some feedback before going too deep with either option. In the meantime on our app, we'll likely configure our app to use :path versioning, and then add some middleware that transforms any header versioned requests into path versioned requests.
describe Grape::API do
  subject { Class.new(Grape::API) }

  def app
    subject
  end

  before do
    api1 = Class.new(Grape::API)
    api1.version ['v3', 'v2', 'v1'], version_options
    api1.get('all') { 'v1' }
    api1.get('only_v1') { 'only_v1' }

    api2 = Class.new(Grape::API)
    api2.version ['v3', 'v2'], version_options
    api2.get('all') { 'v2' }
    api2.get('only_v2') { 'only_v2' }

    api3 = Class.new(Grape::API)
    api3.version 'v3', version_options
    api3.get('all') { 'v3' }

    app.mount api3
    app.mount api2
    app.mount api1
  end

  shared_examples 'version fallback' do
    it 'returns the correct version' do
      versioned_get '/all', 'v1', version_options
      expect(last_response.status).to eq(200)
      expect(last_response.body).to eq('v1')

      versioned_get '/all', 'v2', version_options
      expect(last_response.status).to eq(200)
      expect(last_response.body).to eq('v2')

      versioned_get '/all', 'v3', version_options
      expect(last_response.status).to eq(200)
      expect(last_response.body).to eq('v3')

      versioned_get '/only_v1', 'v2', version_options
      expect(last_response.status).to eq(200)
      expect(last_response.body).to eq('only_v1')

      versioned_get '/only_v1', 'v3', version_options
      expect(last_response.status).to eq(200)
      expect(last_response.body).to eq('only_v1')

      versioned_get '/only_v2', 'v3', version_options
      expect(last_response.status).to eq(200)
      expect(last_response.body).to eq('only_v2')
    end
  end

  context 'with catch-all' do
    before do
      app.route :any, '*path' do
        error!("Unrecognized request path: #{params[:path]} - #{env['PATH_INFO']}#{env['SCRIPT_NAME']}", 404)
      end
    end

    shared_examples 'catch-all' do
      it 'returns a 404' do
        get '/foobar'
        expect(last_response.status).to eq(404)
        expect(last_response.body).to eq('Unrecognized request path: foobar - /foobar')
      end
    end

    context 'using path' do
      let(:version_options) { { using: :path } }

      it_behaves_like 'version fallback'
      it_behaves_like 'catch-all'
    end

    context 'using param' do
      let(:version_options) { { using: :param } }

      it_behaves_like 'version fallback'
      it_behaves_like 'catch-all'
    end

    context 'using accept_version_header' do
      let(:version_options) { { using: :accept_version_header } }

      it_behaves_like 'version fallback'
      it_behaves_like 'catch-all'
    end

    context 'using header' do
      let(:version_options) { { using: :header, vendor: 'test' } }

      it_behaves_like 'version fallback'
      it_behaves_like 'catch-all'
    end
  end

  context 'without catch-all' do
    context 'using path' do
      let(:version_options) { { using: :path } }

      it_behaves_like 'version fallback'
    end

    context 'using param' do
      let(:version_options) { { using: :param } }

      it_behaves_like 'version fallback'
    end

    context 'using accept_version_header' do
      let(:version_options) { { using: :accept_version_header } }

      it_behaves_like 'version fallback'
    end

    context 'using header' do
      let(:version_options) { { using: :header, vendor: 'test' } }

      it_behaves_like 'version fallback'
    end
  end
end

@dblock Added in #1801

I think different versioning schemes may want to behave differently, path versioning may need to be inserted at a different time.
I do think you should attempt what you're proposing! We have lots of tests and eyes here, so we'll know what breaks :)


about close() destroy()

After the instance runs for a long time, the memory usage is very large。
I plan to shut down the instance regularly and restart it to release the memory
But calling close() or destroy() to return authorizationStateClosed takes a long time
The longer the instance runs, the longer the return time
Is there any way to shorten this time?
Disable the database and enable the database I tested the results are the same

If it only runs for a few minutes  close() is executed it is fast, if it runs for an hour it takes a long time.
Or the account does not join many groups, and the running time is very long when there are few messages. It is also fast.
I am using tdjson

close needs to release all allocated memory and it could take some time if there is a lot of data allocated. If you have message database enabled, then messages are automatically unloaded 60 seconds after they are received, so close() should be relatively fast. Otherwise, it may need to unload a lot of messages and there is no way to speed up this. This shouldn't harm though, except that the instance will not be active during closing and reopening,

close needs to release all allocated memory and it could take some time if there is a lot of data allocated. If you have message database enabled, then messages are automatically unloaded 60 seconds after they are received, so close() should be relatively fast. Otherwise, it may need to unload a lot of messages and there is no way to speed up this. This shouldn't harm though, except that the instance will not be active during closing and reopening,

{
"@type" : "setTdlibParameters",
"parameters":{
"database_directory": "tdlib",
"use_message_database": true,
"use_chat_info_database" : true,
"use_secret_chats": true,
"api_id": 16957848,
"api_hash": "b82262e666f735491c13b0ddd438d0c6",
"system_language_code": "en",
"device_model": "Desktop",
"application_version": "1.0",
"enable_storage_optimizer": true
}
}
I have enabled the database correctly, but the message doesn't seem to be unloading properly. I only have one instance running, and its memory usage reaches 500MB after running for an hour. I call close() and it returns authorizationStateClosed. It takes 10 minutes, and the memory occupied after returning authorizationStateClosed will clear.

close needs to release all allocated memory and it could take some time if there is a lot of data allocated. If you have message database enabled, then messages are automatically unloaded 60 seconds after they are received, so close() should be relatively fast. Otherwise, it may need to unload a lot of messages and there is no way to speed up this. This shouldn't harm though, except that the instance will not be active during closing and reopening,

{
"@type" : "setTdlibParameters",
"parameters":{
"database_directory": "tdlib",
"use_message_database": true,
"use_chat_info_database" : true,
"use_secret_chats": true,
"api_id": ,
"api_hash": "b82262e666f735491c1",
"system_language_code": "en",
"device_model": "Desktop",
"application_version": "1.0",
"enable_storage_optimizer": true
}
}
I have enabled the database correctly, but the message doesn't seem to be unloading properly. I only have one instance running, and its memory usage reaches 500MB after running for an hour. I call close() and it returns authorizationStateClosed. It takes 10 minutes, and the memory occupied after returning authorizationStateClosed will clear.

Despite possible, both numbers sounds strange to me. The user should meet a lot of other users to have so big memory usage after an hour. Also, I've seen high-loaded bots which used 50+GB of RAM and they took only about 30 seconds to close their instance, which it 2000 times relatively faster than "10 minutes for 500 MB".
Between, what is your OS and did you build TDLib in Debug or Release mode?

Despite possible, both numbers sounds strange to me. The user should meet a lot of other users to have so big memory usage after an hour. Also, I've seen high-loaded bots which used 50+GB of RAM and they took only about 30 seconds to close their instance, which it 2000 times relatively faster than "10 minutes for 500 MB".
Between, what is your OS and did you build TDLib in Debug or Release mode?

Yes, the user has joined a lot of groups with a lot of messages. The operating system I use is win7, and I use Release mode. The tdlib I built is 32-bit. I don't know if it has anything to do with this?

send:{"@type":"close","@extra":"close"}
receive{"@type":"ok","@extra":"close","@client_id":1}
8784416:{"@type":"updateAuthorizationState","authorization_state":{"@type":"authorizationStateClosing"},"@client_id":1}
8890200:{"@type":"updateAuthorizationState","authorization_state":{"@type":"authorizationStateClosed"},"@client_id":1}

This is what I just tested, the time taken from authorizationStateClosing to authorizationStateClosed: 105784ms
It only runs for less than 2 minutes, and the memory occupies about 50MB

There should be no issues with performance of Release builds on Windows. Debug Windows builds can be thousands times slower on Windows though.
I can't see, how freeing 50 MB оf memory can take 105 seconds. Can you send TDLib's log with verbosity level 4 from the call to close up to sending of authorizationStateClosed to https://t.me/tdlib_bot?

After I use setLogVerbosityLevel() to set the level to 4, the response of tdlib becomes very slow, and it takes a long time to receive a receive. When the level is set to 0, everything is normal

在 Windows 上发布版本的性能应该没有问题。不过，在 Windows 上调试 Windows 版本可能会慢数千倍。
我看不出，释放 50 MB 的内存需要 105 秒。您可以将 TDLib 的详细级别为 4 的日志从调用close发送到发送authorizationStateClosed到https://t.me/tdlib_bot吗？

I have sent a log file with log level 4 to @tdlib_bot

The sent log contains absolutely nothing except calls to td_receive with timeout 0, which just results in 100% CPU usage.

发送的日志除了td_receive超时 0 的调用外，绝对不包含任何内容，这只会导致 100% 的 CPU 使用率。

now back to normal. Very grateful for your help


e2-f5-tts issue

Maybe someone can point me in the right direction. I installed this module in pinokio and when i first installed it it ran flawlessly. I tried updating the repo and now it always leaves me with no cloned audio now. I've tried uninstalling the module and pinokio and the create directories. Still getting no generated audio, Thanks. is there a proper way to delete everything that is installed through pinikio?

I got the same way, no sound results after synthesize my voice. Seems like it can't generate the text


Add acceptance testing & core features

acceptance testing
core features for running the transformers
first transformer:
--diff flag for displaying difference before and after transforming file
--overwrite/--no-overwrite (default overwrite) flag to control if the source file should be transformed in place
DiscardEmptySections

Closes #1, closes #4

Codecov Report

Merging #11 (81caff1) into main (f6cccbd) will decrease coverage by 26.71%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #11       +/-   ##
==========================================
- Coverage   32.72%   6.01%   -26.72%
==========================================
  Files           7       8        +1
  Lines         110     183       +73
==========================================
- Hits           36      11       -25
- Misses         74     172       +98

Impacted Files
Coverage Δ

robotidy/app.py
0.00% <0.00%> (ø)

robotidy/cli.py
0.00% <0.00%> (ø)

robotidy/decorators.py
25.80% <ø> (-68.48%)
:arrow_down:

robotidy/transformers.py
0.00% <0.00%> (ø)

robotidy/utils.py
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6cccbd...81caff1. Read the comment docs.


Suggestion: Moving common metadata fields to a core sample description set

Would it make sense to define a core sample description set among the tables that is implicitly part of all of the metadata sets?
This way, changes to one of those fields in a data set would not propagate to the others without the need to edit the field in all of the different places, circumventing inconsistencies. All other sets would be extensions of this core metadata set.
A contra argument would be, that the proposed tables become more complex to understand.
Another unrelated suggestion would be to track the mapping to other standards more explicitly by splitting the "source" column into "source_var" and "source_set" to make later import/export mappings easier to implement/automate. If the same field is mapping to multiple sources, "source_var" and "source_set" would consist of multiple column/set names separated by semicolon: e.g. source_var: seq_meth;INSTRUMENT and source_set: MIGS_BAv5;ENA
In both cases I am not sure whether this worth the effort or whether the result is actually desired.
Cheers,
Clemens.

Hey Clemens, hey Charlie,
sorry for being late to comment.
While I'm not sure if this solves exactly what you want, I stumbled upon the fairgenomes module overview that might be a first solution to what you are looking for.

Would it make sense to define a core sample description set among the tables that is implicitly part of all of the metadata sets? This way, changes to one of those fields in a data set would not propagate to the others without the need to edit the field in all of the different places, circumventing inconsistencies. All other sets would be extensions of this core metadata set. A contra argument would be, that the proposed tables become more complex to understand.

Yes I understand, it would make more sense. But I also struggle to find a readable way to do it, without it being an overkill.

For example, they structure the tables by modules and hyperlink to the respective module which is a seperate table in the same document/ markdown file, e.g. study.
I don't know if this is possible to apply across different documents/ tables though.

Sample is the only common field I think. If you want to try something in a branch, please feel free and we can do an pull request review.

I didn't check the technical metadata, but the module overview could possibly be applied to the BioEnv tables, as we currently have "site metadata" that overlaps almost identically in all biomes (with differences in specific examples). However again, I don't know if this is possible to apply across different documents/ tables though.
In terms of readability, I think their solution for a metadata overview is quite neat and readable (for me) at least.


Improve confusing instructions when creating a note

In the "Test" section of the following page:
https://serverless-stack.com/chapters/add-a-create-note-api.html#test
The instructions say to:
$ mkdir mocks
$ cd mocks

However all the following commands need to be run from the current direction, not the mocks directory. i.e. the following line should be removed...
$ cd mocks

Good catch. Thanks for pointing it out. Fixed.


The future of Hyperion

This project is quite new, in july it reaches at least the 3th anniversary. Time goes by, projects raises and fails. And hyperion? People won´t stop to develop and commit new features and bugfixes.
There are thousands of people who loves this project! At least at youtube i got 4810 hits with selfmade ambilights driven by hyperion.
Maintainer are also just people. Changes in life are necessary and sometimes welcome, we all know this. So there is no blame for @tvdzwan and @poljvd. They wrote the main part of hyperion and we all are countless thankful for this!
The last months i saw some things that worry me a little bit
People start building their own versions of Hyper_Con and Hyperion and publish it. Don´t get me wrong, there is nothing wrong with it.
But this project is still alive because there are contributs. If people get the feeling, that this is a half abandoned project. What would the future bring?
A successful project like this needs maintainer. There are much things to do:

Build new versions and check commits
Update the Wiki according to the version and introducing new features
Write a changelog that people could see what happend last
Update HyperCon if new features are introduced (just to mention the newest: wisc blackborder improvement - no one will notice this)
Managing the issue, answer them, close them and set labels for better overview
and many more, at least hyperion should mediate a fair impression

This needs time, more time than one person could spend on a non-profit project like this.
I am not a big coder, but i could build images and do all other stuff until I digged in and know more about it (some fancy new features in my head)
I want to ask for people who are willing to spent some hours a week (or every two weeks) from their spare free time to keep that project remains what it is - fantastic
Yes, it is not my decision to add maintainer to hyperion and hypercon, but if we do nothing (ask), nothing will happen. I hope that @tvdzwan and @poljvd are willing and have the trust to do it. That we don´t scew up hyperion!
Every end is a new start!
Let us improve this project further!
Thank you for reading and your commitment
brindosch
PS. Sorry for my bad english grammar. I hope the try counts ;)
@Paulchen-Panther @ntim @wisc17 @kammerjaeger @Gamadril @NicoHood @bimsarck @frostworx and all others are invited.
PPS I am not reachable over the weekend

I would love to help, but not sure how I can. I not a coder (i'm a google it, and try it out type) but if there anything i can do let me know.

Beeing a big fan of hyperion, I would be happy to help where I can. However there a several points that are IMHO problematic for any contributor here. And if I think about the incoming issues twice - as a maintainer I would give up long time ago.
hyperion started as a leightweight client running on RPi. Today it's a full blown binary which can grab from nearly everything and output on nearly everything and run on many systems. There are so many different platforms, linux distributions, output devices and grabbers, wishes coming every day from people, that nobody here can really test the code quality or even the functionality. You cannot even tell which version of hyperion you use, because there is no release versioning at all - would make no sense since on the core itself there were no significant changes.
You are right there is nothing wrong with own forks - I also created one (a branch actually) for my needs to get rid of QT and Python dependency and to use it with OpenWRT, but I don't plan to create a pull request for it - just because I don't know if it's working properly with all the devices out there in use and because I don't have time to do backports new commits/fixes from the main repo. Testing the builds and the installation script on each supported platform is not realistic for a single developer. I think most other "forks" have same problems. Looking at the issues list I can find only few things that might be interesting/useful for all hyperion users. Most of other problems and requests are based on exotic hardware configurations and infrastructure.
Regarding the future: I can imagine hyperion to become a pure "core" connecting all other stuff using loadable plugins/modules. All led devices, grabbers, remote connection servers, effect engine, image preprocessing, configuration loader - take them out and make hyperion lightweight again. That would also move the responsibility for each module to a known developer/team. This is a job for a good software architect to create a solid architecture and define clean interfaces. Sadly I have not much experience in that. I could help implementing, but not designing the software...

Totally agree with you. Maybe we should start sorting out the issues, which are platform and LED device specific, see what is left and important for a hyperion core.
Regarding the plugin idea: within Qt there is an API for creating plugins and loading them at execution time: QtPlugin. May be it is applicable to hyperion but might also be rather complicated. Someone has to try.

I would love to help.  I built an Ambilight clone based on boblight many years ago and I was recently looking into updating some features and I came across Hyperion and I'm blown away.  Who can I get in touch with about contributing or helping in any way?  I have a pretty broad skill set and I would love to be a part of this.

Making it pluggable would be a very great idea.
We could base it on the current hyperion, but start a whole new project. We should decide on people who want to develop it and they should organize themselves to exchange with each other.
We could start a wiki page (here on hyperion) and write papers with ideas/concepts.
People who (really) want to help coding can enter there. And people who just have ideas (like me), could also add them. It should be meant as summary, not for discussion.
I think a new project would make sense. Or a more active fork where hyperion links to.
If he merged the PRs without checking them, we still can add links to new projects. But we should decide who wants to work on this, not that we end up in tons of forks again, because people disagree with each other.
For me personally I do not have time to help on the core. I might consider to port the fixes to the HID devices I made, when its ready. But I am spending ideas =)

We reworked AtmoLight (Ambilight plugin) a while back with modular design for this exact same reason, it will bring flexibility and also gives you more consistent device handlers / targets as you can write several examples (net / serial etc..) for new developers without having them deal with core code or wrappers.
Project is in C# with very little C++ so the code doesn't apply here but if you guys needs some inspiration you can look here:
https://github.com/ambilight-4-mediaportal/AtmoLight/tree/master/AtmoLight.Core

I am also willing to help. I have developed hyperion config plugin for Kodi, so in case you see a need for any improvements in the plugin or you think that new plugin should be developed, I will be able to handle that in my free time,

So how is it going? I saw that @brindosch is now a Collaborator, so it seems you've talked with the guys who started the project? Any more infos how you all will continue to take over this project? About people, plans etc.

@NicoHood you are fast ;)
I am glad that people are willing to help.
First, we have to clean up the issue tracker (note bugs/feature request and so on)
Also my new HyperCon version is ready with some often requested features!
My install script will be merged soon to prevent more faulty installs.
tpmodding is working on a whole new wiki.
Stay tuned! We need some time before we could move on.
Thank you for all future contributes to Hyperion.
I am in contact with tvdzwan. All major decisions will be coordinated with him.

can't wait to see what comes next.. thanks guys

thx @brindosch  for taking care of hyperions future
If help needed with cmake, shell scripts, linux things and network stuff I can help.
I'm "linux only" since 16 years and in my job I code for linux/bsd with c++/cmake/python/bash/qt.
BTW with github you can make a website. I think this could be very useful for connecting all the resources together and a website landing with nice pics and videos looks more professional then a github page.
For the future I wish we have tags so we can seriously think about distribution packages. This would make installation extreme easy and reliable.

Thx for website info redPanther :) i will look what we can do, but i'm new to github, only used to download projects. just give us a little time to update everything, we are working on it :)

I think we can organize the code in a github "organization" atm hyperion is in @tvdzwan personal github area.
When we found a group/organization, then we can assign roles with specific rights. The Organization didn't belong to maintainers personal area. This is better to handle with multiple mantainers.
I already created a group so you can see how it looks like:
https://github.com/IluminationGroup
the organization can hold its repositories like hyperion, hypercon, ...
If interrested, drope a note I invite you to the IluminationGroup.

Very interesting, i will discuss this with tvdzwan.
Thank you

I also have a test organization where you can see how the website stuff works:
website: https://roboticsathome.github.io/
github page: https://github.com/roboticsAtHome

organized like OpenHab :)
Thank you

hello, im just a simple man using hyperion every day and enjoying watching movies with ambilight. Thank you for your hard work developers and peoples who contribute into this project. I wish long  life for hyperion as i cant imagine my life without it! keep it alive forever! :)

/Cleanup :)


publish tools to Gradle plugin portal

update build.gradle

Please see if this modified build.gradle does the trick.


How to prepare custom training/testing data?

You can prepare your dataset and taxonomy in a similar form as ImageNet.


Add support for mongodb 3.7

Similar to #63, please add the new version of mongodb 3.7 nodejs driver.

+1

I've consolidated the 3.7.x peer dependency as well as the latest version 4.x.x driver dependencies in #67.  Hopefully, this can get merged in soon.

fixed in latest pr, closing


AttributeError: 'HourglassModel' object has no attribute 'Session'

When I was running this code, it appeared to have an error: AttributeError: 'HourglassModel' object has no attribute 'Session'.
And I think this sentence is hard to follow:
out = self.HG.Session.run(self.HG.output, feed_dict={self.HG.img : np.expand_dims(img, axis = 0)})
Where is the method HG.Session defined?
Is there anyone could give me some suggestions?

Fixed, If I don't use restore() in hourglass class, then I need to init the session manually by self._init_session().


Elm..embed not replacing div

Given

Main.elm:

module Main exposing (..)

import Html exposing (div, text)

main =
  div [] [ text "OHAI" ]

index.html

<DOCTYPE html>

    <meta charset="utf-8" />
    <title>Welcome to Backpack!</title>

Loading...

index.js

'use strict';

require('./index.html');

var Elm = require('./Main.elm');
var mountNode = document.getElementById('main');

// The third value on embed are the initial values for incomming ports into Elm

var app = Elm.Main.embed(mountNode);

I would expect that the
 be replaced, but the resulting HTML is

Loading...

OHAI

In other words, I can still see "Loading ..." when it should have been replaced.

https://github.com/elm-lang/virtual-dom/blob/master/src/Native/VirtualDom.js#L246
parent.appendChild(domNode);

Right now it appends instead of replacing the contents of the div.

Awesome find Sudhir! Seems like a regression to me though.
On Fri, May 13, 2016 at 7:06 AM, Sudhir Kumar<EMAIL_ADDRESS>wrote:

https://github.com/elm-lang/virtual-dom/blob/master/src/Native/VirtualDom.js#L246
parent.appendChild(domNode);
Right now it appends instead of replacing the contents of the div.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/elm-lang/core/issues/600#issuecomment-218910783

parent.innerHTML = "";
parent.appendChild(domNode);

would solve I guess.
Will have to wait and watch when @evancz handles it or may be not.
Also why do you need "Loading..." in HTML? can't you do it in Elm? I guess you are loading data in Elm and that takes time?

I am following @sporto 's tutorial, that's why :).
On Fri, May 13, 2016 at 7:47 AM, Sudhir Kumar<EMAIL_ADDRESS>wrote:

parent.innerHTML = "";
parent.appendChild(domNode);
would solve I guess.
Will have to wait and watch when @evancz https://github.com/evancz
handles it or may be not.
Also why do you need "Loading..." in HTML? can't you do it in Elm? I guess
you are loading data in Elm and that takes time?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/elm-lang/core/issues/600#issuecomment-218917288

@benjamintanweihao 	the tutorial is for 0.16, I don't know if it is going to be very helpful with 0.17. Some stuff will just not work e.g. router.

Replacing the contents of the element would make it easier to have a no-javascript fallback:

   <input class="fallback" type="text" .../>

It's always possible to remove the contents with JS but the default should indeed be to replace (and add an option to embed to just append)

It would be nice if the contents of the div were replaced. I know server rendering is coming but still — for elm embeds that are only part of a larger app — this type of thing is needed to avoid FoUC.

With a little juggling, this can already be achieved like so: https://ellie-app.com/9rfjxgqKca1/0
The gist is rendering into a documentfragment and replacing the original content only after the Elm app has actually rendered, which can be detected with a port + requestAnimationFrame.

Thanks @zwilias for example using ports 🙏🏻. I opted to use non-JS to handle w/ SASS/SCSS by using the :empty pseudo selector like:
#embed-target {
  opacity: 1;
  transition: opacity .5s linear;
  &:empty {
    @extend .selector-class-for-div-to-mock;
    opacity: .5;
    &::before {
      content: "Initializing";
    }
  }```
This way I get a little ease in animation too.

Replaces contents with 0.19


Generated video is more blurry than input video

Even from the provided example video and its result, it seems that the result is not as high resolution as the input video. It definitely felt more blurry.
Besides that, I also wonder what's the restrictions of this? I understand the whole pipeline requires a 25fps video, does it also require a 512*512 video?

Yes, the current codebase only supports 512x512 and 25 fps videos as the training data. For the blurry issue, it might be the problem of volume rendering. We have addressed this issue in GeneFace++ and plan to release it on Feb. 2024

Yes, the current codebase only supports 512x512 and 25 fps videos as the training data. For the blurry issue, it might be the problem of volume rendering. We have addressed this issue in GeneFace++ and plan to release it on Feb. 2024

wow you have a precise agenda, I see; I have a question: is it easy to train a new face? I did not read fully the documents to know, is there some document or video showing how to train a new face please?


A couple of words in Escalation policy need to be revised

A couple of words in English don't match with what's meant in Korean.

Fix as follows:

Must be at least 1 minute for a single target => At least one rule must be set. (Up to 5)
[Level1] Escalates after [10] =>  [Level1] Next step runs in [10] minutes.
[Level3] Repeat after [10] =>  [Level3] Starts repeating in [10] minutes.

The issue #134 has been moved.


MyEtherWallet.com vs MyCrypto.com

I though it was just another phishing website, until I arrive at Twitter and noticed the prior account MyEtherWallet changed it's logo and info.
One thing is clear, I won't use MyCrypto.com until this get clarified, all I can say the situations is not clear at all.
Can someone give some details about it?

+1

I suggest checking out ethtrader's subreddit for some information - there is clearly a power struggle going on right now: https://www.reddit.com/r/ethtrader/comments/7wcyrm/sothe_mew_drama/?utm_content=title&utm_medium=new&utm_source=reddit&utm_name=ethtrader

This is the statement from the "forked" MyCrypto, but I haven't seen anything from the one who is remaining on the side of MEW. https://twitter.com/mycrypto/status/961885331183185924

Statement from @kvhnuke: https://twitter.com/myetherwallet/status/962071670562279425

Here is the lawsuit https://drive.google.com/file/d/1CHz_Fe5DqM7Aszsr5LwTdol85YsEJaaZ/view

MEW and MyCrypto are completely different entities. MEW team will continue to develop MEW and continue to be the community oriented client side wallet


Offer description for pre-defined roles

An admin gets very little information on the roles (when we say "role" here we mean: Role, ClusterRole) offered in the access control UI:

Name of the role
Whether it is a ClusterRole or Role
Managed by Giant Swarm

Even with carefully chosen names, some questions are open:

What's the purpose of the role?
Will Giant Swarm adapt the permissions of this role in the future?
Can this role be bound on a cluster level, or on a namespace level, or both?

Suggestion
We could introduce a description annotation to apply on all pre-defined roles, which then gets displayed in the access control UI if set.
Example
  metadata:
    annotations:
      ui.giantswarm.io/description: Includes all permissions needed to browse resources in the web UI. Will be updated by Giant Swarm.

Of course customers would be free to use that annotation, too, in order to provide descriptions for their own roles.

@PrashantR31 I'd like to ask a final question before closing this: How can we make sure that (cluster)roles we provide in the future will have a description?

Apart from telling people to ensure a description is needed,  for now, the only idea I have is adding validation to ensure that descriptions are present, when the roles are created from our UIs.
Later in GitOps this should be a mandatory and verifiable item at creation of the role

Next action:
Adding a comment in the PR template so that we this task in the list.


Click event triggered for the option even when it is already selected in material select

Expected Behavior
When selecting an option which is in selected state, should not trigger onchange event again and again
Current Behavior
When selecting an option which is in selected state, triggering onchange event whenever selected
Steps to Reproduce (for bugs)

Navigate to http://materializecss.com/forms.html#select
Register the following onchange event in browser console by opening developer tools
$(document).on('change','#select',function(){alert('1');});
Now select an option from material select which was converted by calling material_select() method. Not browser default. Alert will show 1.
Now again select the option which is already selected. Again onchange event triggered and alert shown.

Your Environment

Version used: v0.98.1
Browser Name and version: Firefox 56.0 64 bit
Operating System and version (desktop or mobile): Desktop

I think that is not an undesirable bug.
One way to fix the problem would be to have a global variable which is going to store current value from the select. Whenever onchange is triggered, you can do a check if the value is same as the old value. If true then do something else.

That is OK. I Agree. This can be accepted when the number of dropdowns are limited. What if I have n number of pages and n number of dropdowns in each page?

Alternatively we should not react on the selected list item. I will see if this issue is reproducible in v1 Branch. If yes will fix it


Collect age(datfrozenxid) to measure the distance to transaction wraparound

What does this PR do?
Postgres can run out of transaction IDs (2**31) if autovacuum or VACUUM are not run regularly. In order to detect this condition, the postgres check is now collecting postgresql.before_xid_wraparound on a per-database basis. When that number reaches 1 million (i.e. the difference between the oldest transaction and the newest transaction is > 2**31 - 10**6, the database will typically stop accepting new transactions.
Motivation
This is an occasional but painful way to discover that autovacuum has not run.
Review checklist

[x] PR has a meaningful title or PR has the no-changelog label attached
[x] Feature or bugfix has tests
[x] Git history is clean
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes
It passes all tests but I have not had a chance to do a live test... Also, first commit in ages for me ;)

Mad props to the test harness. Very smooth.

Codecov Report

Merging #2572 into master will increase coverage by 1.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2572      +/-   ##
==========================================
+ Coverage   83.86%   84.89%   +1.02%
==========================================
  Files         641        9     -632
  Lines       36493      715   -35778
  Branches     4444       95    -4349
==========================================
- Hits        30606      607   -29999
+ Misses       4562       75    -4487
+ Partials     1325       33    -1292

@ofek done although I could not completely validate metadata.csv, i.e. I don't know where it gets plugged in.


Add possibility to use cert bundle , e.g. x509, to websocket client (IDFGH-10041)

Mimic in esp_websocket_client_config_t how the variable crt_bundle_attach is used in esp_http_client_config_t

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@martinsmoofit Thank you for contribution, starting from version 5.0 esp_websocket_client was migrated from esp-idf to esp-protocols, could you please move this PR to esp-protocols so we can proceed?

Hi, @gabsuren. The feature already exists in https://github.com/espressif/esp-protocols, https://github.com/espressif/esp-protocols/pull/49, but I can't find that it has been backported to v.4.4 as suggested in the comments.

@gabsuren tbh I didn't know the feature existed in 5.0 before the PR. I added it to v4.4 because that is the version we are currently working with in out company. So no, I don't have any strong reasons for backporting the feature.

@martinsmoofit thank you for the response! Accordingly  closing the issue


Gooey outputs characters after completion ""

Windows 11
Python 3.8
Gooey <IP_ADDRESS>
Thanks for this library, it's fantastic. However, at the end of the program, gooey outputs these characters in the console ""? I don't believe this is my code, as I have log statements that indicate when the program has finished successfully. See attached image. Quite possibly a blunder on my part, but it's not obvious and I haven't see others post about it.

switch to rich console

finally! thanks @elad-eyal


'texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering

Expected Behavior
A clear error message, whether its a power-of-2 issue or too large texture in general
Current Behavior
When loading large arrayBuffers via PIXI.Texture.fromBuffer(array), my colleges get the following error on (some, but not all of) their devices (e.g.  Samsung Tablet (SM-T580) or Xiaomi Mi9). On my laptop, however, it works fine (Thinkpad P51 with dedicated GPU)

'texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering

I am not really sure if the texture is just too large (my assumption) or of the array is malformed. On significantly smaller images it works perfectly fine even on the mobile devices. I think none of our images have dimensions to the power of 2.
The images are basically indoor maps and can be very large in warehouses. Are there any tiling implementations for pixi that work well? Thanks!
Possible Solution
Steps to Reproduce
Load some image via Texture.fromBuffer(.) that is slightly larger than 4000 x 4000 px
Environment

pixi.js version:  5.0.4.
Browser & Version:   Chrome 73.0.36 (64 bit) & Firefox 68.0.1 (64 bit)
OS & Version:  Ubuntu 18.04/Ubuntu 16.04

Most mobile devices have 4096 as a limit.

As usual, thank you very much (especially for your quick response ;))
Is this a per-texture limit or a total-texture-memory-limit?

It's a per texture limit. You can find it under max texture size https://webglreport.com/
A lot of mobile devices have that at 4096x4096

I get this when I use Buffer loaded by nodejs's fs:
// renderer preload script
const { ipcMain } = require('electron');
const path = require('path');
const fs = require('fs').promises;

ipcMain.handle('get-texture', async (event, textureIRI) => {
  const modFolder = path.join(__dirname, '../../src/mods/core/textures');
  const textureLocation = path.join(modFolder, textureIRI);
  const result = await fs.readFile(textureLocation);
  return result;
});

contextBridge.exposeInMainWorld('mod', {
  getTexture: textureIRI => ipcRenderer.invoke('get-texture', textureIRI),
});

// renderer game side
const resourceDetailName = `${resourceName}_${facing}`;
const resourceBuffer = await window.mod.getTexture(
 `Heads/Female/${resourceDetailName}.png`,
);

// ...
new PIXI.Texture.fromBuffer(resources[`${randomHeadName}_${pawnFacing.NORTH}`], 256, 256)

The image will be loaded with a black background, instead of transparent background of png.
And it run with following error:
core.es.js:818 WebGL: INVALID_OPERATION: texImage2D: ArrayBufferView not big enough for request
<EMAIL_ADDRESS>@ ticker.es.js:129
<EMAIL_ADDRESS>@ ticker.es.js:583
:40992/#/main:1 [.WebGL-0x7f9e6d04d400]GL ERROR :GL_INVALID_OPERATION : glGenerateMipmap: Can not generate mips
254[.WebGL-0x7f9e6d04d400]RENDER WARNING: texture bound to texture unit 1 is not renderable. It might be non-power-of-2 or have incompatible texture filtering (maybe)?
:40992/#/main:1 WebGL: too many errors, no more errors will be reported to the console for this context.

You’ll need to decode the png into raw image data (pixels) not the file buffer read directly. There are lots of utilities on npm that you can use for this.

Thank you!
This works:
const PNG = require('png-js');

function parsePng(filePath) {
  return new Promise(resolve => {
    PNG.decode(filePath, pixels => {
      // pixels is a 1d array (in rgba order) of decoded pixel data
      resolve(pixels);
    });
  });
}

ipcMain.handle('get-texture', async (event, textureIRI) => {
  const modFolder = path.join(__dirname, '../../src/mods/core/textures');
  const textureLocation = path.join(modFolder, textureIRI);
  const result = await parsePng(textureLocation);
  return result;
});

had similar problems, but with an PIXI.Text Element. The problem was uppercase text. If i set the text via js from an html data attribute older iOS devices and chrome browser wont render this. If i hardcode the text inside PIXI.Text it works.


Add degraded state option

Describe the feature request
A degraded state in addition to up/down to allow for alerting for things begging to go wrong before they have gone wrong, an example would be if the response time has exceeded a set amount but the service is still up the service would just be degraded and not defined as completely down.

Preferably each check could be defined as CRITICAL or ALERT as this would allow for the most customizability in alerts so you could have separate "Everything is on fire " and  "You should look at this" alerts
Why do you personally want this feature to be implemented?
I would personally desire to have this feature implemented because I not only use gatus to monitor status of services but also the status of individual machines in my cluster (CPU usage, MEM usage, ect). An it would be really useful to have one combined option for knowing if one of my nodes is just heavily loaded vs completely down.   Currently its technically possible by having 2 separate endpoint objects with different state checks and alerts but its just very clunky and not user-friendly.
How long have you been using this project?
about 6 months
Additional information
I am aware of issue #149 but that in my opinion hasn't resolved the issue of a Critical Vs Non Critical option, it only allowed multiple checks per service.

I feel this may be a duplicate of #227. What do you think?

It does appear to be a duplicate, my bad I didn't see that issue before I posted mine.

@JayFromProgramming No worries!


Issue with input: no IpaPath nor PkgPath parameter specified

refers to #57.
having the same issue. is not fruitful to close an issue if the solution is provided privately when they are customers that might face it.

Hello @MajkellVZ,
The $BITRISE_IPA_PATH variable will be set by the xcode-archive Step when it runs (check that it is included in your workflow).
You can read more about the Step configuration in devcenter or the Step Description (available in the Workflow Editor):
https://devcenter.bitrise.io/en/deploying/ios-deployment/deploying-an-ios-app-to-app-store-connect.html#deploying-the-app-to-app-store-connect-72232.

already had that one but apparently needed to be put above Deploy to App Store Connect with Deliver (formerly iTunes Connect). Now getting another error "issue with input: failed to parse certificate URL and passphrase inputs: code signing certificate URL: required input is not present"


Undo/Redo on Property Changes

Undo and Redo operations currently do not work if I change a property value.
Current Behaviour
If I change a property value (e.g. Headline Text), blur the input and hit Cmd+Z, it doesn’t revert the property value change. Instead, it reverts the operation before it (and does not touch the value change).
Expected Behaviour
If I change a property value and hit Cmd+Z/Y, it should revert or repeat the action.

Fixed via https://github.com/meetalva/alva/pull/498


Add examples for CAMARA Security and Interoperability Profile

Problem description
The document CAMARA Security and Interoperability Profile aims at provide a comprehensive guide for developers and operators, ensuring consistent implementation and adherence to standardized security measures across the CAMARA ecosystem. As of today it describes some restrictions on options available in OIDC and CIBA. However it lacks examples on token request/responses for the different flows OIDC Authorization Code Flow, CIBA flow and Client Credential Flow. Meaningful examples are key for a good developer experience.
Expected action
Enhance the document CAMARA Security and Interoperability Profile by adding at least one example for token request/response per flow type.
Additional context
The document to be enhanced is not yet part of the main documentation branch, but included in pull request #121; (https://github.com/camaraproject/IdentityAndConsentManagement/pull/121/files?short_path=eecd267#diff-eecd267efc7f8abc6037bc5c8260494fb16093ab6c884c259cebf790af48087b)

Would prefer if this is done in a separate (supporting) document, and this way we don't have to worry about not bloating up the profile doc.

Would a OpenAPI Specification (YAML file) describing the endpoints be a better fit?

Would a OpenAPI Specification (YAML file) describing the endpoints be a better fit?

Although OIDC and OAuth2 are older then openapi, I assume that somebody already wrote an OIDC/OAuth2 yaml file.
I did not look for it. We could certainly give that approach a try.
Here is an example of a yaml file with an example it the API spec.
https://github.com/OAI/OpenAPI-Specification/blob/main/examples/v3.0/api-with-examples.yaml#L16
I guess it depends on the developer's familiarity with openyaml whether this is a good approach.
Or whether the e.g. OIDC method of writing examples is helping developers more.
(copied from https://openid.net/specs/openid-connect-core-1_0.html#RequestParameter)
https://server.example.com/authorize?
        response_type=code%20id_token
        &client_id=s6BhdRkqt3
        &redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb
        &scope=openid
        &state=af0ifjsldkj
        &nonce=n-0S6_WzA2Mj
        &request=eyJhbGciOiJSUzI1NiIsImtpZCI6ImsyYmRjIn0.ew0KICJpc3MiOiA
        iczZCaGRSa3F0MyIsDQogImF1ZCI6ICJodHRwczovL3NlcnZlci5leGFtcGxlLmN
        vbSIsDQogInJlc3BvbnNlX3R5cGUiOiAiY29kZSBpZF90b2tlbiIsDQogImNsaWV
        udF9pZCI6ICJzNkJoZFJrcXQzIiwNCiAicmVkaXJlY3RfdXJpIjogImh0dHBzOi8
        vY2xpZW50LmV4YW1wbGUub3JnL2NiIiwNCiAic2NvcGUiOiAib3BlbmlkIiwNCiA
        ic3RhdGUiOiAiYWYwaWZqc2xka2oiLA0KICJub25jZSI6ICJuLTBTNl9XekEyTWo
        iLA0KICJtYXhfYWdlIjogODY0MDAsDQogImNsYWltcyI6IA0KICB7DQogICAidXN
        lcmluZm8iOiANCiAgICB7DQogICAgICJnaXZlbl9uYW1lIjogeyJlc3NlbnRpYWw
        iOiB0cnVlfSwNCiAgICAgIm5pY2tuYW1lIjogbnVsbCwNCiAgICAgImVtYWlsIjo
        geyJlc3NlbnRpYWwiOiB0cnVlfSwNCiAgICAgImVtYWlsX3ZlcmlmaWVkIjogeyJ
        lc3NlbnRpYWwiOiB0cnVlfSwNCiAgICAgInBpY3R1cmUiOiBudWxsDQogICAgfSw
        NCiAgICJpZF90b2tlbiI6IA0KICAgIHsNCiAgICAgImdlbmRlciI6IG51bGwsDQo
        gICAgICJiaXJ0aGRhdGUiOiB7ImVzc2VudGlhbCI6IHRydWV9LA0KICAgICAiYWN
        yIjogeyJ2YWx1ZXMiOiBbInVybjptYWNlOmluY29tbW9uOmlhcDpzaWx2ZXIiXX0
        NCiAgICB9DQogIH0NCn0.nwwnNsk1-ZkbmnvsF6zTHm8CHERFMGQPhos-EJcaH4H
        h-sMgk8ePrGhw_trPYs8KQxsn6R9Emo_wHwajyFKzuMXZFSZ3p6Mb8dkxtVyjoy2
        GIzvuJT_u7PkY2t8QU9hjBcHs68PkgjDVTrG1uRTx0GxFbuPbj96tVuj11pTnmFC
        UR6IEOXKYr7iGOCRB3btfJhM0_AKQUfqKnRlrRscc8Kol-cSLWoYE9l5QqholImz
        jT_cMnNIznW9E7CDyWXTsO70xnB4SkG6pXfLSjLLlxmPGiyon_-Te111V8uE83Il
        zCYIb_NMXvtTIVc1jpspnTSD7xMbpL-2QgwUsAlMGzw

@Elisabeth-Ericsson Would it be OK for you changing the title of this issue and rephrase the "into"?

Understand there is an intention by GSMA to certify these endpoints, and I think a YAML representation, with request/response examples in the YAML would be a better fit.

@Elisabeth-Ericsson Would it be OK for you changing the title of this issue and rephrase the "into"?

Sure, will do, I will change it to "for". Then we can decide whether we provide the examples in a separate document.
However, examples are usually picking a use case for illustration and are not a fully generic YAML spec.
So I vote for proper examples having request/response pairs for client credential, authcode flow and CIBA flow matching the descriptions given in the CAMARA  Security and Interoperability Profile. To be able to reference, I also recommend to introduce chapter numbering into the OIDC Security profile,

I added an examples file and put one example in
https://github.com/AxelNennker/IdentityAndConsentManagement/blob/icm_examples/documentation/CAMARA-ICM-examples.md

In https://github.com/AxelNennker/IdentityAndConsentManagement/pull/4#issuecomment-2095247501
@mhfoo says:
I believe the RFC9101 request object examples should have the following claims, as per RFC7519:
exp: Expiration Time Claim
nbf: Not Before Claim
iat: Issued At Claim
jti: JWT ID Claim
Copying @mhfoo s comment here because I would like having "examples"-related comments in this issue.
Responding to that comment: Yes, that is probably true. I copied the example from https://www.rfc-editor.org/rfc/rfc9101.html#section-4 and changed what needed to be changed to demonstrate purpose.
I'll create a PR for the examples which makes it easier to review and make suggestions.

Created a PR to make it easier to review
https://github.com/camaraproject/IdentityAndConsentManagement/pull/148

@AxelNennker #148 fixes this issue, doesn't it? I think we can close it, right?