Integration stopped working - EU - Invalid Application/Device Id

Region and Brand of car
EU/KIA/EV6
Version of the integration
2.10.2
Describe the bug
Can't connect anymore. Started just this night after months of no issues. No other changes were done.
Debug logs if an error occurred
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/kia_uvo/coordinator.py:151
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 06:29:50 (3 occurrences)
Last logged: 09:18:43

[546552013968] Server returned: 'Invalid request value - Invalid Application Id.'
[546910811920] Server returned: 'Invalid request body - Invalid deviceId. '
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1910, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1950, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/config/custom_components/kia_uvo/services.py", line 54, in async_handle_update
    await coordinator.async_update_all()
  File "/config/custom_components/kia_uvo/coordinator.py", line 151, in async_update_all
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 75, in update_all_vehicles_with_cached_state
    self.update_vehicle_with_cached_state(vehicle_id)
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 80, in update_vehicle_with_cached_state
    self.api.update_vehicle_with_cached_state(self.token, vehicle)
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 296, in update_vehicle_with_cached_state
    state = self._get_cached_vehicle_state(token, vehicle)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 710, in _get_cached_vehicle_state
    _check_response_for_errors(response)
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 110, in _check_response_for_errors
    raise APIError(f"Server returned: '{response['resMsg']}'")
hyundai_kia_connect_api.exceptions.APIError: Server returned: 'Invalid request value - Invalid Application Id.'

To Reproduce
Nothing special. Working integration just stopped working this night.
Expected behavior
Well, that it can connect.

This behaviour is also with my Ioniq 5 since last night.

Same issue here. KIA SORENTO PHEV

I think I have same problem here.
2023-06-29 09:36:44.964 DEBUG (SyncWorker_10) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_stamp 2023-06-29 05:02:58.607000+00:00 120000 76 998 76.88631513333333
2023-06-29 09:37:00.123 ERROR (MainThread) [custom_components.kia_uvo.config_flow] Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/kia_uvo/config_flow.py", line 159, in async_step_user
await validate_input(self.hass, user_input)
File "/config/custom_components/kia_uvo/config_flow.py", line 63, in validate_input
token: Token = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 198, in login
device_id = self._get_device_id(stamp)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1104, in _get_device_id
_check_response_for_errors(response)
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 108, in _check_response_for_errors
raise error_code_mappingresponse["resCode"]
hyundai_kia_connect_api.exceptions.RequestTimeoutError: Undefined Error - notNull Violation: devices.device_id cannot be null

Same problem. All entities showing unavailable.

I'm having the same issue. Relevant issue in the underlying API wrapper: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/issues/348

I think the reason for this could be that the Kia cloud server is not available. When adding the integration and checking the logfile in parallel with "tail -f" it needs some time - about 5 to 10 seconds" after the "get_stamp" line. That could be an indicator for a non existing answer from some server or a server which does not respond at all.

I tested the connection to to the hyundai server with the bluelink app.
There was a normal response from this side.
MYG63 @.***> schrieb am Do., 29. Juni 2023, 10:21:

I think the reason for this could be that the Kia cloud server is not
available. When adding the integration and checking the logfile in parallel
with "tail -f" it needs some time - about 5 to 10 seconds" after the
"get_stamp" line. That could be an indicator for a non existing answer from
some server or a server which does not respond at all.
—
Reply to this email directly, view it on GitHub
https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/660#issuecomment-1612615448,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AW4X5BU6VGPBGQTGYZTHWQTXNU3HVANCNFSM6AAAAAAZYDRKNA
.
You are receiving this because you commented.Message ID:
@.***>

Same problem here.
After enjoying this integration for 9 days, today it stopped working and when I tried to readd the integration the error nvalid Application Id...... Popped up.
Hyundai EU user

Same Here, also the Power App from tibber is not working 😂

Same here.

Same problem here. Home assistant is not receiving the information anymore.
Thank you for your help in fixing this.

Same problem here.
Ioniq 5 placed in Denmark

Please let's keep the comment stream clean as much as possible so in case something important pops up, we don't miss it.
I am working on this and trying to figure out what has changed in the login flow.
Also checking other repositories if they have a solution in place.
Me too style comments are not helpful, while i understand the frustration here, let's be patient.

I have a similar issue since 2 days, however I get a different error message:
2023-07-01 08:44:50.731 WARNING (MainThread) [hyundai_kia_connect_api.KiaUvoApiEU] Unsupported language: en-GB, fallback to en
2023-07-01 08:44:51.058 DEBUG (SyncWorker_34) [hyundai_kia_connect_api.KiaUvoApiEU] hyundai_kia_connect_api - get_stamp 2023-07-01 05:01:41.828000+00:00 120000 51 998 51.57691609166667
2023-07-01 08:44:51.298 ERROR (MainThread) [custom_components.kia_uvo.coordinator] Unexpected error fetching kia_uvo data: Server returned: 'Invalid request body - Invalid parameter.'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/kia_uvo/coordinator.py", line 107, in _async_update_data
    await self.async_check_and_refresh_token()
  File "/config/custom_components/kia_uvo/coordinator.py", line 166, in async_check_and_refresh_token
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 120, in check_and_refresh_token
    self.initialize()
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 64, in initialize
    self.token: Token = self.api.login(self.username, self.password)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 198, in login
    device_id = self._get_device_id(stamp)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1104, in _get_device_id
    _check_response_for_errors(response)
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 110, in _check_response_for_errors
    raise APIError(f"Server returned: '{response['resMsg']}'")
hyundai_kia_connect_api.exceptions.APIError: Server returned: 'Invalid request body - Invalid parameter.'
2023-07-01 08:44:51.315 DEBUG (MainThread) [custom_components.kia_uvo.coordinator] Finished fetching kia_uvo data in 0.577 seconds (success: False)

Debug logging doesn't really seem to add any interesting information, even from the API debug logs. It might be interesting to see what the request body now actually is to figure out what the API is choking on?

For info my Android UVO app isn't working either, coming up with a network error popup

Some here, Integration stopped working then on checking UVO app now not working and kia website pointing to Kia Connect as the replacement. Kia Connect installed and working but assume API endpoints may have changed given app changed.

Unexpected error fetching kia_uvo data: Server returned: 'Invalid request body - Invalid parameter.'
Traceback (most recent call last):

Same server issue here after HA update. Tried a re-config of the integration when I noticed the error. From that re-config:
Is this problem linked to the extra configuration parameter 'pin' ? I can't remember having that in the config before.

Same here. EU/KIA/E-NIRO

Same here.  UK/HY/IONIQ5_23

Same here IONIQ5_23, tried to remove and reinstall but authentication fails... It was better just to have left it I assume

Same problem here unfortunately, EU, Hyundai Ioniq 5 (2023).

Unfortunately same problem here. EU. Kia XCeed (2019)
Logger: custom_components.kia_uvo.coordinator
Source: custom_components/kia_uvo/coordinator.py:166
Integration: Hyundai / Kia Connect (documentation, issues)
First occurred: 1. Juli 2023 um 06:52:21 (1122 occurrences)
Last logged: 07:54:25
Unexpected error fetching kia_uvo data: Server returned: 'Invalid request body - Invalid parameter.'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/kia_uvo/coordinator.py", line 107, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 166, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 120, in check_and_refresh_token
self.initialize()
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 64, in initialize
self.token: Token = self.api.login(self.username, self.password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 198, in login
device_id = self._get_device_id(stamp)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1104, in _get_device_id
_check_response_for_errors(response)
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 110, in _check_response_for_errors
raise APIError(f"Server returned: '{response['resMsg']}'")
hyundai_kia_connect_api.exceptions.APIError: Server returned: 'Invalid request body - Invalid parameter.'

Is it really that difficult: https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/660#issuecomment-1615157981

For info my Android UVO app isn't working either, coming up with a network error popup.
The UVO app has gone from the play store, there is now just Kia Connect which works.

Confirmed by Kia support when I contacted them that the Kia UVO app have been closed down. The Kia Connect is the app to use.

For info my Android UVO app isn't working either, coming up with a network error popup.
The UVO app has gone from the play store, there is now just Kia Connect which works.

Confirmed by Kia support when I contacted them that the Kia UVO app have been closed down. The Kia Connect is the app to use.
The Connect app has been the goto app for 1 year atleast.

Same problem with my Kia eNero. Worked perfect in the past and suddenly stops working.
Hope to have a working update soon. Thanx in advance

The "master" branch has an update that may help Hyundai users.  Another item is needed for Kia users for sure.

Latest patch confirmed as working for UK IONIQ5 MY23 🥳
Thanks for all such a quick turnaround on this 👍🏻

Confirmed working in Denmark Hyundai Kona.
Thanks a lot guys.
I wonder when Hyundai /Kia will stop this "cat and mouse" game

Another item is needed for Kia users for sure.

Do you need a Kia user to get this Item or is this already found?
If still needed, I can try to get the Info If you guide me.

Another item is needed for Kia users for sure.

Do you need a Kia user to get this Item or is this already found?
If still needed, I can try to get the Info If you guide me.

We have it but it is in another repo and need that owner to merge.

Fix is working in Denmark for Ioniq 5 aswell.

Problem should be fixed for Hyundai users, at least as of now.
For Kia, the expected files are generated but the issue still persists.

Great work to solve it for many. Working by installing the master (didn't realise I was using a Beta) from HACS on a 2022 UK Hyundai.
In HACS, integrations then open the kia/hyundai intergration. Select re-download from the top right menu icon of HACS in HASS. Then select master. With a restart of HASS afterwards for good measure.
Cheers

As of now when trying to add integration...
EU/KIA/E-Niro
Logger: custom_components.kia_uvo.config_flow
Source: custom_components/kia_uvo/config_flow.py:63
Integration: Kia Uvo / Hyundai Bluelink (documentation, issues)
First occurred: 12:38:22 (3 occurrences)
Last logged: 13:10:52
Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/kia_uvo/config_flow.py", line 159, in async_step_user
await validate_input(self.hass, user_input)
File "/config/custom_components/kia_uvo/config_flow.py", line 63, in validate_input
token: Token = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 198, in login
device_id = self._get_device_id(stamp)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1104, in _get_device_id
_check_response_for_errors(response)
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 110, in _check_response_for_errors
raise APIError(f"Server returned: '{response['resMsg']}'")
hyundai_kia_connect_api.exceptions.APIError: Server returned: 'Invalid request body - Invalid parameter.'

With the latest patch (api version 3.3.8) for a Kia EV6 UK - HA log gives:
Traceback (most recent call last):
File "/config/custom_components/kia_uvo/config_flow.py", line 159, in async_step_user
await validate_input(self.hass, user_input)
File "/config/custom_components/kia_uvo/config_flow.py", line 63, in validate_input
token: Token = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 199, in login
device_id = self._get_device_id(stamp)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1107, in _get_device_id
_check_response_for_errors(response)
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 111, in _check_response_for_errors
raise APIError(f"Server returned: '{response['resMsg']}'")
hyundai_kia_connect_api.exceptions.APIError: Server returned: 'Invalid request body - Block the UVO app id.'

That is expected for the time being @rikl64 and @rikardkjell as it is only resolved for Hyundai. Not yet for Kia.
Please see the message of @fuatakgun earlier

Problem should be fixed for Hyundai users, at least as of now. For Kia, the expected files are generated but the issue still persists.

Same here, i think:
Deze fout is ontstaan door een aangepaste integratie.
Logger: custom_components.kia_uvo.coordinator
Source: custom_components/kia_uvo/coordinator.py:166
Integration: Kia Uvo / Hyundai Bluelink (documentation, issues)
First occurred: 29 juni 2023 om 16:04:12 (4301 occurrences)
Last logged: 16:01:33
Unexpected error fetching kia_uvo data: Server returned: 'Invalid request body - Invalid parameter.'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/kia_uvo/coordinator.py", line 107, in _async_update_data
await self.async_check_and_refresh_token()
File "/config/custom_components/kia_uvo/coordinator.py", line 166, in async_check_and_refresh_token
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 120, in check_and_refresh_token
self.initialize()
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 64, in initialize
self.token: Token = self.api.login(self.username, self.password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 198, in login
device_id = self._get_device_id(stamp)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 1104, in _get_device_id
_check_response_for_errors(response)
File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 110, in _check_response_for_errors
raise APIError(f"Server returned: '{response['resMsg']}'")
hyundai_kia_connect_api.exceptions.APIError: Server returned: 'Invalid request body - Invalid parameter.'

please try again with latest version, it works locally and cloud tests for Kia EU.

You can close this one - https://github.com/Hyundai-Kia-Connect/kia_uvo/pull/667 seems to have fixed it. Thanks a lot for your hard work! :)

No, no, stopped working in Denmark for Hyundai Kona

Sorry, I tested with my Kia. Indeed, it seems that the fix for the Kia broke the fix for Hyundai. See https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api/issues/354.

Confirmed. Recent Master now work for Kia...

Well done, works again like a charm. Thank you so much :-)

Will there be a new version (2.10.4) with the new patch for both Kia and Hyundai?

Damn, the first fix worked fine for my Hyundai, then I saw the notification for 2.0.3 and stupidly thinking it was just the official patch applied it.
Now it's stopped working like before. Can't revert, even tried re-applying master, rebooted/shutdown both HA and the HA OS, nothing fixes it again.

Yes.  Master branch now has that version.   I am not by a pc so can't generate the release package.   I'll do that today though.

Don't want to spam, but have to say:

Many, many thanks to all contributors! (works for me on master).

Just to let you know why, for example, your work is so important (at least for me) : I use it in combination with the "EV smart charging" integration for, well, charging my car automatically according to the "nordpool" integration - which means charging when most renewable power is available in the grid (and to whom it matters: the most cost savings way)

Just a thought how to incorporate more contributors (for the next issue): a guide on the sniffing setup in the readme would be helpful (for different platforms). Maybe one of the guys with a working setup could contribute that ...

Thanks for the feedback!   Glad this can be helpful.
As for more contributors the sniffing setup unfortunately keeps changing as they try to cut us out.   Right now the conversations on this happen in the discord for blue linky.   We work together when this breaks.   Always welcome more help on this integration, the underlying api and I am sure the bluelinky team are the same!
A how to sniff does exist in our wiki here but it doesn't work for EU just other regions.

v2.0.4 confirmed working for me again, Hyundai EU, and no more memory errors, thank-you so much

v2.0.4 confirmed working for KIA eNero EU 👍🙏

v2.10.4 is working now, awesome my friend

v2.10.4 works great with my KIA XCeed 2019! 😀Also from my side many thanks to all for the hard work and super fast fix!

I've opened a new issue (https://github.com/Hyundai-Kia-Connect/kia_uvo/issues/672) because this isn't working again for me (Kia, EU).

I've opened a new issue (#672) because this isn't working again for me (Kia, EU).

Then the problem is local. Kia Norway here. Working like a charm :)

Also still got the problem.

No issues here, Hyundai, EU, Luxembourg, did a forced update and got everything as expected, nothing logged

sorry to say, I got this problem after the update.
Tried to unlock the door, it worked, then to lock the door, I got this message:
Filed to call service lock/lock. Server returned: ‘Invalid request body - invalid device ID’

sorry to say, I got this problem after the update. Tried to unlock the door, it worked, then to lock the door, I got this message:
Filed to call service lock/lock. Server returned: ‘Invalid request body - invalid device ID’

Same for me. It works once (e.g. start charge) the second request failes (e.g. stop charge)
Error is also "hyundai_kia_connect_api.exceptions.DeviceIDError: Invalid request body - Invalid deviceId."

same again - ługi kia_uvo/update. Invalid request body - Invalid deviceId.
EU/KIA/NIRO

This exact thing is happening for me when I try to run any service more than once. If I reload the integration it works again 🤔

Error still occurs.
I get this error when trying to call any service. Works first time after reloading integration, but not for next call and forward.
2023-09-14 23:58:43.524 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [546903271872] Invalid request body - Invalid deviceId.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 227, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/kia_uvo/services.py", line 70, in async_handle_start_climate
    await coordinator.async_start_climate(vehicle_id, climate_request_options)
  File "/config/custom_components/kia_uvo/coordinator.py", line 198, in async_start_climate
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 133, in start_climate
    return self.api.start_climate(self.token, self.get_vehicle(vehicle_id), options)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 835, in start_climate
    _check_response_for_errors(response)
  File "/usr/local/lib/python3.11/site-packages/hyundai_kia_connect_api/KiaUvoApiEU.py", line 113, in _check_response_for_errors
    raise error_code_mapping[response["resCode"]](response["resMsg"])

Same problem like @MHultman - new version of integration installed. After reload it works to unlock doors.
Second try - error message "Fehler beim Aufrufen des Diensts lock/unlock. Invalid request body - Invalid deviceId.".
Same when trying to change the loading limit.
Kia EV6 EU (Germany)
v2.14.1

same here, works once then stops with "Invalid deviceId" Kia ENiro Sweden.

I have exactly the same problem as @MHultman. It works exactly once after setting up the integration. Afterwards I only get the error message "Invalid device ID".

I have exactly the same problem as @MHultman. It works exactly once after setting up the integration. Afterwards I only get the error message "Invalid device ID".

Same here.


NTR: Peptidyl-arginine methylation, to form monomethylarginine

Hello,
Please may I request the following new term:
"Peptidyl-arginine methylation, to form monomethylarginine."
Alternatively, this could be "Peptidyl-arginine methylation, to form methylarginine" (as is phrased in GO:0042037) or perhaps "Peptidyl-arginine methylation, to monomethylarginine" as is phrased in GO:0019918 and  GO:0019919.
This relates to the PMID:21531333, whereby methyltransferases prmt-1 and prmt-5  have been shown to catalyse the formation of monomethylarginine intermediates (as well as asymmetrical-dimethyl arginine and symmetrical-dimethyl arginine intermerdiates, respectively, for which terms already exist).
I think it would be another child of "GO:0035247 peptidyl-arginine omega-N-methylation". A possible definition could be "The process of methylation of peptidyl-arginine to form peptidyl-N(omega)-monomethyl-L-arginine."
Thank you very much.
Best wishes,
Hema

I think this is covered by the molecular function since it is a single gene product working on a single molecule. It makes sense that the other terms to which you refer are processes because there are two methylation steps in the formation of the product.

Hello,
Thank you for your feedback.
I think a corresponding PROCESS would also be helpful for
FUNCTION GO:0035241 protein-arginine omega-N monomethyltransferase activity
as the production of monomethylarginine, although described as an intermediate, is sometimes also the end product (fig 1 of PMID:21531333).
Also, I noticed that the following PROCESS terms exist for FUNCTION terms for asymmetric and symmetric di-methyl-arginine. In these cases, is not the PROCESS implied in the FUNCTION terms?
FUNCTION GO:0035242 protein-arginine omega-N asymmetric methyltransferase activity
PROCESS  GO:0019919 peptidyl-arginine methylation, to asymmetrical-dimethyl arginine
FUNCTION GO:0035243 protein-arginine omega-N symmetric methyltransferase activity
PROCESS GO:0019918 peptidyl-arginine methylation, to symmetrical-dimethyl arginine
Best wishes,
Hema

Hi Hema,
In the latter two cases that you point out, the process includes the addition of both methyl groups to the arginine, so it is the result of the execution of two molecular function events. In the case of the term you are requesting, the formation of the monomethylated protein is the result of a single execution of a molecular function, whether it is an intermediate or a final product. So it seems to me that the function is the same as the process. There is an effort to move these types of processes out of GO #12859. We are going to discuss this approach at the next consortium meeting, but in this case I strongly feel that what is being requested here is simply a function. I am including @drabkin and @deustp01 in the discussion becasue I would value their comments as well.

Nothing useful to add from here about the boundary between function and process.

Hello,
Thank you for your responses. I understand your points. However, I was thinking about this from an end users' point of view. I thought it might be useful to know the product of single execution- in this case it would be "monomethylarginine" which can also be an intermediate for the next reaction. Yes, indeed, if terms similar to the one I have requested are also to be moved out, then I understand that there is no need to add the new term I requested :)
Best wishes,
Hema

I think based on the discussion at the Corvalis GOC meeting, we will not add these kinds of process terms that essentially describe single step functions. I suggest annotating to the corresponding molecular function.


Ash 0.30 release

I'm not the library author but the latest release seems worthy to be included in the newsletter!

Part of #89 ("Newsletter 8: Coordination/Tracking")

Nice, thanks!


Made all user steps bold

Made all steps that the user should do bold.

@dbergmans I cannot approve this. This change does not meet our formatting guidelines. In procedures, bold is reserved for references to text in the UI.


Release 0.0.11

Codecov Report
Attention: 98 lines in your changes are missing coverage. Please review.

Comparison is base (33a154e) 77.80% compared to head (99a5118) 77.55%.

Files
Patch %
Lines

src/sdr/_synchronization/_phase_error.py
67.94%
25 Missing :warning:

src/sdr/_modulation/_psk.py
11.11%
24 Missing :warning:

src/sdr/_filter/_fir.py
20.83%
19 Missing :warning:

src/sdr/_filter/_common.py
29.16%
17 Missing :warning:

src/sdr/_filter/_iir.py
33.33%
6 Missing :warning:

src/sdr/_synchronization/_nco.py
83.33%
3 Missing :warning:

src/sdr/_sequence.py
96.42%
2 Missing :warning:

src/sdr/_synchronization/_pll.py
0.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #215      +/-   ##
==========================================
- Coverage   77.80%   77.55%   -0.25%
==========================================
  Files          43       46       +3
  Lines        2167     2393     +226
==========================================
+ Hits         1686     1856     +170
- Misses        481      537      +56

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Beta25] Some infusion particles seem to be missing

I did several infusions today, after updating to Beta25. And I noticed that the particle effects that are supposed to appear when an item on an outer pedestal gets sucked into the central item are not showing up for me anymore, when they were definitely there on Beta24. This happened on every infusion I did. I made no changes to my instance other than updating Thaumcraft, including not touching the particle settings in the graphics menu.
Could someone perhaps do a quick check if it also happens on your end?

Hmm, none of the particles show up on my side, with only beta 25, baubles and jei installed...

I Also noticed this during my testing yesterday, only noticed the particles for items getting pulled from the outer pedestals were missing, all others seemed to still be present.


About the speech rate of generated voice

Hi. I tested the model with the inference jupyter file your provided. It's amazing that the model can still generate good voice even if a Mandarin source file is fed as input.
However, I notice that if the speech rate of source is slow while the speech rate of target is very fast, the speech rate of generated voice will also be fast. I was wondering is it possible to tune the speech rate so that the generated voice can have the same speech rate with the source? Or, is the different speech rate caused by the mismatch of source language (Mandarin vs English, for the pretrained ASR model)?
Also, I notice that if I inference the model with noisy source file(e.g. with background of air conditioning), there will also be noise in the generated voice. Is there a way to erase the noise? Or, could you give any advice on noise-robust training/inference?
Thank you very much~ :)

Thank you for your interest in our research. You asked about two things.

Is the voice adjustable according to the speed of the given target speech?
answer: Our model cannot control the rhythm. Rhythm is a property related to the speed of speech. Therefore, the speech generated by our model will follow the speed of speech in the source speech. In target speech, only voice features are extracted and used.

Additionally, we are doing further research using rhythm. (the rhythm is not adjusted is an issue that has not been resolved in voice conversion)

When a voice with noise is used, noise is generated in the generated voice.

We did not conduct a separate experiment for noise. But let me tell you our experience. Since voice data for noise was not used when learning Vocoder, it is inevitably vulnerable to noise. Therefore, in order to solve this problem, finetuning of the vocoder model should be performed on the noise data. Or, I have to find a model that is strong against noise.

Thanks you~

@Charlottecuc @intory89  does it then make sense to introduce audiomentations during vocoder training as was suggested in here https://github.com/yl4579/StarGANv2-VC/issues/21, albeit with the difference is that it's the VC model that should be supplied with corrupted inputs, not the vocoder.

@Charlottecuc is right here -- the model doesn't follow the speed of the source speech for UNSEEN speakers.

Our model did not consider rhythm among the characteristics of Speaker. Please refer to SpeechSplit for related research.

Hi. I tested the model with the inference jupyter file your provided. It's amazing that the model can still generate good voice even if a Mandarin source file is fed as input. However, I notice that if the speech rate of source is slow while the speech rate of target is very fast, the speech rate of generated voice will also be fast. I was wondering is it possible to tune the speech rate so that the generated voice can have the same speech rate with the source? Or, is the different speech rate caused by the mismatch of source language (Mandarin vs English, for the pretrained ASR model)? Also, I notice that if I inference the model with noisy source file(e.g. with background of air conditioning), there will also be noise in the generated voice. Is there a way to erase the noise? Or, could you give any advice on noise-robust training/inference?
Thank you very much~ :)

Hi, I also tried the mandarin dataset to train the model. Therefore, there are questions for me.
Do you revise some part of the model?
Does the dataset have to the corresponding transcript?

Hi. I tested the model with the inference jupyter file your provided. It's amazing that the model can still generate good voice even if a Mandarin source file is fed as input. However, I notice that if the speech rate of source is slow while the speech rate of target is very fast, the speech rate of generated voice will also be fast. I was wondering is it possible to tune the speech rate so that the generated voice can have the same speech rate with the source? Or, is the different speech rate caused by the mismatch of source language (Mandarin vs English, for the pretrained ASR model)? Also, I notice that if I inference the model with noisy source file(e.g. with background of air conditioning), there will also be noise in the generated voice. Is there a way to erase the noise? Or, could you give any advice on noise-robust training/inference?
Thank you very much~ :)

Hi, I also tried the mandarin dataset to train the model. Therefore, there are questions for me.
Do you revise some part of the model?
Does the dataset have to the corresponding transcript?


Typo, synchronizing should be syncrhonized.

just a simple typo which because of the union doesn't actually change the results.

Thanks!


Enhance backend logging to track more detailed information

We'd like to know what operations are actually run the most (e.g. build vs compile vs ASM vs Clippy...) and their options (mode, channel)

In the 1M requests from<PHONE_NUMBER>.717647003 to<PHONE_NUMBER>.957234042, some of the top requests are:
    915 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/clippy
   1713 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/meta/gist/
   2332 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/format
   3557 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/compile
  10261 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/evaluate.json
  21769 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/
  26071 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/meta/version/beta
  26073 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/meta/version/stable
  26081 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/meta/version/nightly
  33412 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/favicon.ico
 115471 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/execute
 520182 http://ec2-184-169-190-149.us-west-1.compute.amazonaws.com/meta/crates

Unfortunately, there's a lot of noise because the playground is also getting fallout from a recent switch for the docs hosting.

For the specific use case of validating / changing the default assembly flavor, it would also be interesting to know whether a "Show assembly" action was made with the default AT&T syntax, or if the user had switched to Intel syntax.
It doesn't seem as useful for name filtering and symbol demangling, but having those in the stats as well might be interesting to see if they're even used at all.


Really fun problem

Such a satisfying problem, if somewhat frustrating at times. There's a bunch of complexity in elevators I hadn't realised and this being my first experience with Python didn't help either (particularly in my inability to debug).
 Glad I got it working although I'm sure my solution could be improved upon (it's longer than most for one).

Really elegant solution.  Clean and concise.  Nicely done!


Fixed #33918 #25705  str method in Query object wraps strings in quotation marks

When executing str on django.db.models.sql.query.Query objects, string parameters will be wrapped in single quotation marks.
For example:
str(Article.objects.filter(headline="", id=1).values("id").query)

returns
SELECT "backends_article"."id" FROM "backends_article" WHERE ("backends_article"."headline" = '' AND "backends_article"."id" = 1)

@johniak Thanks for this patch :+1: , however it's more complicated, see e.g. #12156.

@felixxm thanks for your comment, I modified PR. I added support for ranges, and tests pass through all pipelines

Thanks for updates. However, adding manual adapters for all problematic data types to Django is too fragile and error-prone. As far as I'm aware, we cannot do this without using mogrify()-ish methods (currently available for PostgreSQL and MySQL).


Added template filter "json" which is not vulnerable to XSS attacks

Added template tag ...|json which shall be used instead of ...|js, because the latter is vulnerable to XSS attacks when used in combination with unvalidated data.
For details see https://code.djangoproject.com/ticket/17419

Nice catch.
Isn't the js filter an internal API? I'm asking because that means we can remove it without deprecation (and without mention in the changelog, because that would signify it's a supported API, which I think this isn't and shouldn't be).

Also because import order is important, could you move it one module further into cms.utils? cms.utils.helpers or maybe a new module, either is fine by me.

@ojii Yes, from what I've seen, its used only twice by djangoCMS itself.
However, since it exposes to the public API (well sort of), and since Django itself does not offer such a filter, it can easily be used for this its own purpose. And if then it is used for not validated data, this can result into a XSS vulnerability.
Therefore, or we should get rid of that filter altogether (beware of backward incompatibilities), or replaced be something safer.

However, since it exposes to the public API (well sort of), and since Django itself does not offer such a filter, it can easily be used for this its own purpose. And if then it is used for not validated data, this can result into a XSS vulnerability.

There's no question this is an issue that needs to be fixed. My only point here is to not accidentally make this a documented API (as in, an API we need to support in the future).
Since it's neither a documented API and also a security issue, this should replace the API, not gracefully deprecate it.
On that note, it probably should've never ended up on here but rather on<EMAIL_ADDRESS>Please use that email in the future for anything security related.

Note: bumped to blocker, assigned 3.0.8 milestone.

@yakky I feel like we need to backport this to 2.4.x just in case.

@ojii agree.
Anyone's up to tackle a new 2.4 release? :D

thanks for volunteering @yakky

@ojii not at all (I actually never used 2.4 and I don't have any projects on it, so I'm not the best candidate!)

Agree with @ojii: let's drop it without documentation.

@ojii
This is not a security issue in the sense that you hack djangoCMS sites. Otherwise of course I wouldn't have posted it here but used that security tracker's email address.
It only can result in a security problem if (ab)used by third parties apps, therefore they would have to be blamed. I just wanted to note this, because this template filter can easily be imported into your own project by persons not aware of that risk.

@yakky
I just had a look at the output from travis, but from what I see these errors have nothing to do with my patch. Can you please try to apply this patch in your environment.

@jrief the errors are because you import from django.core.serializers.json import DjangoJSONEncoder and from django.utils.html import conditional_escape in cms.utils.__init__. cms.utils.__init__ is triggered by the test runner pre-django-setup (to set up Django). At least the DjangoJSONEncoder however requires Django to already be set up.
To solve this, move the SafeJSONEncoder into it's own module in cms.utils (maybe cms.utils.json_encoder or something).
To see if that worked, try running the tests locally. See http://docs.django-cms.org/en/support-3.0.x/contributing/testing.html#running-tests for help.

My local test runner still fails with very obscure messages. They are not related to the encoder.

My local test runner still fails with very obscure messages. They are not related to the encoder.

Please paste these messages so we can try to help.

http://dpaste.com/1JDMTDP

These three errors are unrelated, updating selenium pip install -U selenium should solve the issue.

Merging this through #3720 to let the tests run. Code is ok

Thanks @jrief @ojii. Merged in #3746


Vulcanizing break action button.

Hi,
Vulcanizing break action button (no action after click, no icon on button). Does anyone noticed this or it's issue related only to my app (i.e. conflicts with other components, styles) or to vulcanizing itself?
Thanks

Hi @PiotrekPaprocki
I suspect it's only in your app - we've had this vulcanized up until very recently (we've moved our hosting to Http2, so we removed the vulcanize step from our production flow).
have you tried re-producing this outside of your app?

Thx for the hint. I've inspected my problem more deeply and it seems that vulcanizing add a path to the action attribute value. The same as created in each dom-module by vulcanization process i.e. assetpath="component/path", so after vulcanize instead of action="dismiss" I got action="component/path/dismiss".
For quick solution I just added property 'action' with value "dismiss" and use it in action="{{action}}" attribute instead of plain String.

Thanks for your input - i'm closing this, and leaving this up for others in case they have the same issue.


eth.coinbase would be nicer in hex

in pyethapp/v1.0.1 it is currently in bytes (user has to call encode('hex'))
In [48]: eth.coinbase
Out[48]: '\xde\x0b)Vi\xa9\xfd\x93\xd5\xf2\x8d\x9e\xc8^@\xf4\xcbi{\xae'

yes, maybe we can wrap coinbase and addresses from accounts so that the rep is hex encoded.


TNT-43002 Fix duplicate inline scripts added to DOM

Description

When HTML offers with inline SCRIPT tags are rendered, these are added twice to page DOM, even though the scripts are actually executed just once on the page. We should fix it, so that no unexpected inline SCRIPT tags are added to page DOM after Personalization offers are applied.
Related Issue

https://jira.corp.adobe.com/browse/TNT-43002
Motivation and Context

When HTML offers with inline SCRIPT tags are rendered, these are added twice to page DOM, even though the scripts are actually executed just once on the page. We should fix it, so that no unexpected inline SCRIPT tags are added to page DOM after Personalization offers are applied.
Screenshots (if appropriate):
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Improvement (non-breaking change which does not add functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have signed the Adobe Open Source CLA or I'm an Adobe employee.
[x] I have made any necessary test changes and all tests pass.
[x] I have run the Sandbox successfully.

Can you add an integration test?

@jonsnyder I don't think an integration test is necessary, as we're only changing the rendering part here, which can be fully tested via unit tests, which I've added.
Note that I've also added some changes to unit test runner config, so async/await is now supported in unit tests.

@XDex Thank you did the changes to the unit tests and for making this change; a cleaner approach even if we weren’t double executing those script tags!
I’m not sure how the unit test is verifying that the script is being removed. I might have missed it.
One last thing, If @jonsnyder believes an integration test is helpful, let’s add one please; being extra safe never hurts, especially with those complicated Personalization features. No rush on this one since we can’t release anything anyway.
Thanks again, it’s a pleasure to have you contribute to the project.

@jfkhoury Thanks! I'll add a functional test as you suggest..

I’m not sure how the unit test is verifying that the script is being removed. I might have missed it.

This is checked at line 62 in the test:     expect(scriptElements.length).toEqual(1);

@XDex we have discussed about Alloy vs at.js in the past. Just because at.js does something in particular way, it doesn't mean that Alloy must follow suit.
I would argue that having scripts being part of the DOM both during innerHTML operation and after appendChild allows us to clearly see which DOM operation contained scripts and must be "treated" a little bit differently and it helps with debugging.
I would let @jfkhoury and @jonsnyder share their thoughts, but I think just documenting the behavior should be enough. We don't need to add more complexity to the existing DOM manipulation code.

@ninaceban I have provided the motivation for this change in the linked Jira ticket comments, and I think @jfkhoury agrees that we should have this fixed.
@jfkhoury @jonsnyder Please take another look, I've also added an integration test.. Thank you!


Bug: No rule grounding order for constraints with anonymous variables

The following code (also attached) gives the attached 27 answer sets executed with "clingo -n 0 ":
a(1..3).
b(1..3).

{c(X, Y) : b(Y)} :- a(X).

:- a(X), not c(X, _).
:- a(X), c(X, Y1), c(X, Y2), Y1 != Y2.

Alpha gets an error with the same input:
Exception in thread "main" java.lang.RuntimeException: Could not find a grounding order for rule :- a(X), not c(X, _0). with starting literal: a(X). Rule is not safe.
	at at.ac.tuwien.kr.alpha.grounder.RuleGroundingOrder.computeGroundingOrder(RuleGroundingOrder.java:175)
	at at.ac.tuwien.kr.alpha.grounder.RuleGroundingOrder.computeGroundingOrders(RuleGroundingOrder.java:155)
	at at.ac.tuwien.kr.alpha.grounder.NonGroundRule.<init>(NonGroundRule.java:75)
	at at.ac.tuwien.kr.alpha.grounder.NonGroundRule.constructNonGroundRule(NonGroundRule.java:94)
	at at.ac.tuwien.kr.alpha.grounder.NaiveGrounder.initializeFactsAndRules(NaiveGrounder.java:141)
	at at.ac.tuwien.kr.alpha.grounder.NaiveGrounder.<init>(NaiveGrounder.java:107)
	at at.ac.tuwien.kr.alpha.grounder.GrounderFactory.getInstance(GrounderFactory.java:40)
	at at.ac.tuwien.kr.alpha.grounder.GrounderFactory.getInstance(GrounderFactory.java:46)
	at at.ac.tuwien.kr.alpha.Alpha.prepareSolverFor(Alpha.java:123)
	at at.ac.tuwien.kr.alpha.Main.computeAndConsumeAnswerSets(Main.java:88)
	at at.ac.tuwien.kr.alpha.Main.main(Main.java:84)

The problem seems to be that no RuleGroundingOrder can be computed due to the anonymous variable in the first constraint.
test_constraints1_alpha.asp.txt
answer_sets_clingo.txt

Not sure if that closely related, but it seems to make sense to also take care of issue #154 while fixing this

Actually, Alpha's behavior is correct. The first constraint is not safe, because the anonymous variable occurs in a negated literal and hence cannot be bound by the positive body.
Clingo, on the other hand, decided that it is useful to allow anonymous variables in negated literals to express that "there exists no c(X, Y) for any Y" in a very concise form. The correct way of expressing this would require a new rule cc(X) :- c(X,_). and the constraint to read :- a(X), not cc(X).
Since this feature of Clingo is very useful, we should seriously consider adding it to Alpha. The current behavior, however is actually correct.


Closing tags of nested html is escaped

This:
mistune.markdown("a

b

 c", escape=False)

produces this:

a

b
</div> c

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

I note however that this works as expected:
mistune.markdown("a
b
 c", escape=False)

Produces:

a
b
 c

Perhaps mistune things the outer
 is closed by the inner
 and hops back to text mode?

please try v2.0.0a1


[Minor] Advanced tokens for Dropdown component

Should we make a clear distinction between the background-color applied to the button and the one applied to the options list? (e.g. buttonBackgroundColor, optionsListBackgroundColor)

We have two different tokens 'Background color' for the button background and 'Dropdown background color' for the list. Should we rename them?

Could be interesting to provide different font tokens for the dropdown label and the list options?

Done

Are the border properties applied to the whole container?

Yes, borders apply to the whole container.

We have two different tokens 'Background color' for the button background and 'Dropdown background color' for the list. Should we rename them?

Yes, I believe they're more convenient 😉


question : is there a way to add a flag next the language name in the tab itself

Hi
thank you for your work on this great package.
My question is there a way to add a flag icon next the language name in the tab itself, or any kind of html that don't get escaped.
thanks.

For now no. but possible , since we are using Filamentphp "Tab"


ThrowIfNotConnected

Using Managedmqttclient,
Program.txt
After the server connection is lost( stop mqtt server), the connection cannot be automatically reconnected without triggering any events.
ThrowIfNotConnected() throw new MqttCommunicationException("The client is not connected.");
ConnectionState didn't change from stillconnected to notconnected.
MQTTNet : 2.8.2
server mosquito 1.4.15

Hi,
sorry but I cannot reporoduce the issue. My test setup with managed client and mosquitto works as expected. Do you have some more information about your setup?
Best regards
Christian

@chkr1011
sorry, I reference the package from nuget.org,
it works fine.
It could be a problem with my compilation.
btw, when target to net461,  Framework dll files are copied to the target directory. eg netstandard.dll .

Please try again with 3.0.0 and reopen this ticket if it still fails.


Unexpected token ':'

If I import uppy.min.js.map into my page, console return me:
Uncaught SyntaxError: Unexpected token ':'  (at line n.2)
Thanks

Hi there, I want to note two things:

This is the repository for the jQuery SDK. You likely wanted to open an issue in the Uppy repository at https://github.com/transloadit/uppy
Are you sure you want to import uppy.min.js.map instead of uppy.min.js? The .map file does not contain any JavaScript code, so it won't provide the Uppy API to you.

You are right, thanks for suggestion  ;)


获取帮助

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

This appears to be spam.


[minify-literals] Consider switching away from clean-css

On clean-css's repo README it states it's in maintenance mode:

IMPORTANT: clean-css is now in a https://github.com/clean-css/clean-css/discussions/1209. PRs are still welcome, and I will try do an occasional bugfix release.

My components extensively use Nested CSS, which is Baseline 2023. As clean-css is in maintenance mode and not accepting any new features, there will likely not be any support for it. I wanted to look into reducing my library's footprint and the only real option I found was minify-literals or rather the vite plugin using it.
I am not intimately familiar with the world of CSS minifiers, but a quick Google search nets me CSSNano, which seems to use PostCSS, which should support CSS Nesting.

Hi, I currently don't use this package for any projects personally but I'd be happy to accept an pr. Otherwise it might take a white for me to get to it. Right now, I lean more towards not depending on postcss but it seems like that's the only option from my limited research.


Unable to map <IP_ADDRESS>:5003->5001/tcp when attempting to create bluebird instances of NUM_BLUEBIRD>3

When attempting to run run-containers.sh found in (https://github.com/alan-turing-institute/nats/blob/turing-away-day/away-day/run-containers.sh )
with NUM_BLUEBIRD=5 (for example, this is the case for any number > 3) then an
issue occurs which does not seem to allow it to map an instance to port 5003.
The one that attempts to do so seems to die. This has been tested using the
bisect_test.sh script described in #75
The output of running on the script on commit e88158c and setting
NUM_BLUEBIRD=5 gives the following:
-------------------------------------
CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS                  PORTS                              NAMES
3a3a3fce6ce8        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   1 second ago        Up Less than a second   <IP_ADDRESS>:5005->5001/tcp             bluebird-5
1826db003961        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   4 seconds ago       Up 3 seconds            <IP_ADDRESS>:5002->5001/tcp             bluebird-2
a084f747256b        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   4 seconds ago       Up 3 seconds            <IP_ADDRESS>:5001->5001/tcp             bluebird-1
6836f12c7736        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   5 seconds ago       Up 4 seconds            <IP_ADDRESS>:5000->5001/tcp             bluebird-0
44d6c0e9b0aa        turinginst/bluesky:1.2.2       "python BlueSky.py -…"   6 seconds ago       Up 5 seconds            <IP_ADDRESS>:9000-9001->9000-9001/tcp   bluesky
-------------------------------------
CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS              PORTS                              NAMES
1826db003961        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   9 seconds ago       Up 8 seconds        <IP_ADDRESS>:5002->5001/tcp             bluebird-2
a084f747256b        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   9 seconds ago       Up 9 seconds        <IP_ADDRESS>:5001->5001/tcp             bluebird-1
6836f12c7736        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   10 seconds ago      Up 9 seconds        <IP_ADDRESS>:5000->5001/tcp             bluebird-0
44d6c0e9b0aa        turinginst/bluesky:1.2.2       "python BlueSky.py -…"   11 seconds ago      Up 10 seconds       <IP_ADDRESS>:9000-9001->9000-9001/tcp   bluesky
NUM_BLUEBIRD = 5
NUM_DOCKER_IMAGES = 4
NUM_BLUEBIRD_INSTANCES = 3
They are not equal
1826db003961
a084f747256b
6836f12c7736
44d6c0e9b0aa

Note that the run-containers.sh was slightly changed as it was thought that it
was only to do with a typo in the for loop of setting up the instances, however
this still gives the same situation where the instances that are assigned
greater than 5002 as a port to be remapped to seems to die (the change is shown below)
for i in $(seq 0 $NUM_BLUEBIRD); do

--->
for i in $(seq 0 `expr $NUM_BLUEBIRD - 1`); do

-------------------------------------
CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS                  PORTS                              NAMES
c8fba0097708        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   1 second ago        Up Less than a second   <IP_ADDRESS>:5004->5001/tcp             bluebird-4
2294a93f2bf5        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   2 seconds ago       Up Less than a second   <IP_ADDRESS>:5003->5001/tcp             bluebird-3
19e141b1e43d        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   3 seconds ago       Up 1 second             <IP_ADDRESS>:5002->5001/tcp             bluebird-2
3812a8efa170        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   3 seconds ago       Up 2 seconds            <IP_ADDRESS>:5001->5001/tcp             bluebird-1
6e9eb7c0e622        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   4 seconds ago       Up 3 seconds            <IP_ADDRESS>:5000->5001/tcp             bluebird-0
6065f0da7905        turinginst/bluesky:1.2.2       "python BlueSky.py -…"   5 seconds ago       Up 4 seconds            <IP_ADDRESS>:9000-9001->9000-9001/tcp   bluesky
-------------------------------------
CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS              PORTS                              NAMES
19e141b1e43d        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   8 seconds ago       Up 6 seconds        <IP_ADDRESS>:5002->5001/tcp             bluebird-2
3812a8efa170        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   8 seconds ago       Up 7 seconds        <IP_ADDRESS>:5001->5001/tcp             bluebird-1
6e9eb7c0e622        turinginst/bluebird:away-day   "/bin/sh -c 'python …"   9 seconds ago       Up 8 seconds        <IP_ADDRESS>:5000->5001/tcp             bluebird-0
6065f0da7905        turinginst/bluesky:1.2.2       "python BlueSky.py -…"   10 seconds ago      Up 9 seconds        <IP_ADDRESS>:9000-9001->9000-9001/tcp   bluesky
NUM_BLUEBIRD = 5
NUM_DOCKER_IMAGES = 4
NUM_BLUEBIRD_INSTANCES = 3
They are not equal
19e141b1e43d
3812a8efa170
6e9eb7c0e622
6065f0da7905

This specific issue is now resolved with the discovery that if one increases the number of sectors in bluebird/sectors/rect.json file then a greater number of bluebird instances are able to be created.
Having said this, there is still the issue that the first instance (regardless of port number it is mapped to) dies. This problem is linked to #75 and so for further discussion it would be better placed there or in a separate issue to this one


Removed fail() call and added entityType in catch block so test verifySchemaValidation() runs as expected

@grechaw @rashiatmarklogic
fail() call added to the test verifySchemaValidation() was causing the test to fail at all times. Removing ext from cleanupSchemas() took care of deleting all the schemas so a fail() call is not needed. Corrected this now and also added entityType in catch block so we know which "model" caused the test to fail.

Will get this merged shortly.


update plugin list to gitlab

Since the danger.systems is moved to gitlab, the danger plugins list should search list from gitlab instead of github.

          1 Error

:no_entry_sign:
Please include a CHANGELOG entry.
You can find it at CHANGELOG.md.

          1 Warning

:warning:
Tests were not updated

  Generated by :no_entry_sign: Danger

Ah yeah - great thinking, must have missed that


Missing alt attribute

Did you mean $alt on this line?
https://github.com/HashandSalt/kirby3-webp/blob/772b3fd50f0dc5bf8f958dd5b701024198198f6c/snippets/webp.php#L31
You are building $tag->alt, but never use it anywhere, so I'm wondering ..

It reads it from the files meta content. Best practice to put an Alt field in there :)  Its missing from your image file blueprint, rather than the plugin.

I should just go to bed ..


Fix & extend simple_types.clj

Please take a critical look at my work. I have only tested it correct, not proved it :)

Thx for the fix. I'm using the example embedded tests most of the time, but now that the kernel is somewhat stable, more traditional tests would be good (especially since I will soon begin the extraction of the kernel and make it cljs-friendly).

more traditional tests would be good

Point me to some good examples please so I see all the details, like e.g. your style of writing them & such. Merci.


Git file diff viewer: accept/discard chunks of code

When on git diff view, It would be great if it would be possible to undo or accept partials chunks of code!
Just the same way sourcetree does!

Do the Git: Stage Selected Ranges / Git Unstage Selected Ranges commands work for this?


Show burn action in history? (+bug)

Describe the bug
Seems that in the new UI, history doesn't show burns.
This then appears to cause swap numbers to vary, and the initial mint seems to be incorrect.
To Reproduce  EXAMPLE
Steps to reproduce the behavior:

Go to '...'  715249

Click on history

See issue-   it says minted 10 / swapped 20

Expected behaviour
I'm assuming that 20 were minted, 20 were swapped and then 10 were burnt.
expect to see either that 10 were burned (and initial mint was 20) , or minted 10 / swapped 10 (if none were burned)
This is the only example I have evidence for, but have noticed inconsistencies in History listings before, that seem to imply burning may have happened.

Do we need an indexer update for this? In on_transfer the only thing we keep is the amount of objects that get burned/transferred, no timestamp or ophash.
Correct me if I'm wrong but I think at the moment we can only show the total amount of burned tokens?

Correct me if I'm wrong but I think at the moment we can only show the total amount of burned tokens?

I don't know how it's stored in the indexer but we could always use tzkt for these only

maybe... not sure what that looks like in practise :-)    Can you bring in date too?


Show 'transfer not supported' message when device's bluetooth version is below v4.2 with only BLE transport being enabled

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Features introduced in Bluetooth 4.2  - > Data length extension
Features introduced in Bluetooth 5.0 -> LE Extended advertising  and LE Periodic advertising
The Data length extension is the only feature which was introduced in 4.2.
Since the original idea of this issue was to find the version of the device before establishing the connection and data length information is only available after connection. This may not help us to identify if the particular device is 4.2 and above.
Also we are yet explore a way to get data length information for Android & IOS sdks in a reliable way.


CI: execution strategy changed

Since now we're executing tests against release branches (as opposed to main branch), execution strategy has to be changed.

The CI is failing when trying to clone a private repo. Is your PAT expired?

The CI is failing when trying to clone a private repo. Is your PAT expired?

Yeah; there was a temporary issue. It's fixed

Yeah; there was a temporary issue. It's fixed
Was it an issue on GH side or did you have to perform an action regarding the GH_PAT secret?

Yeah; there was a temporary issue. It's fixed

Was it an issue on GH side or did you have to perform an action regarding the GH_PAT secret?

GH_PAT. I have to change that. I'll add ticket to the planning.


typed_endpoint: creates type for gcm_payload and apns_payload in Remo…

…teServerNotificationPayload
Before this commit RemoteServerNotificationPayload.gcm_payload and RemoteServerNotificationPayload.apns_payload were both Dict[str, Any]. Now a class is used to type these fields. Note that by changing from a Dict to a class gcm_payload and apns_payload properties cannot be acessed with the .get() method anymore since this is a dict-only method.

Fixes:

Screenshots and screen captures:

Self-review checklist

[ ] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[ ] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[ ] Each commit is a coherent idea.
[ ] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[ ] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

Thanks! Please go through our guide on submitting a pull request to learn how to present your proposed changes to Zulip, so that your work can be reviewed.

Closing, as this seems to be abandoned.


[Bug]: Conflict with third packages and infinite loop

What happened?
When you use this package together with a password reset application, the system enters an infinite loop and booom
Problem detail and solution
There is no problem when I use authMiddleware in this code in TwoFactorAuthPlugin.php file, but boom when I use middleware
This is the package that came out of the conflict: yebor974/filament-renew-password
$middlewareMethod = config('filament-two-factor-auth.enabled_features.multi_tenancy') ? 'tenantMiddleware' : 'middleware';             $panel->$middlewareMethod([                 ForceTwoFactor::class,             ]);
this conflicts with another middleware.this method does not allow the use of other features in the auth phase.
to
$middlewareMethod = config('filament-two-factor-auth.enabled_features.multi_tenancy') ? 'tenantMiddleware' : 'authMiddleware';             $panel->$middlewareMethod([                 ForceTwoFactor::class,             ]);
this works. (middleware => authMiddleware)
can you update this
Package Version
1.6
PHP Version
8.2
Laravel Version
11
Filament Version
3
Which operating systems does with happen with?
Linux
Notes
thanks

Middleware that should be used in the "auth phase" should be added in the pipeline in the Fortify config. Did you try that? @akiftezcan38

Middleware that should be used in the "auth phase" should be added in the pipeline in the Fortify config. Did you try that? @akiftezcan38

If the bug still exists, can you provide me a reproduction repo with both packages installed like you just did? I'll be happy to help :) @akiftezcan38

Middleware that should be used in the "auth phase" should be added in the pipeline in the Fortify config. Did you try that? @akiftezcan38

Can you share an example for this ?
Thank you @Baspa

@akiftezcan38 https://laravel.com/docs/11.x/fortify#customizing-the-authentication-pipeline

Any updates on this issue? @akiftezcan38


Fix/2060/remove unimplmented message

#2094

Adds Abap on prem prompts

TODO:

Add tests
Reduce prompt getter function complexity
Wire up new system type prompt (currently not returned)

Wrong branch


support for creating backups and restore

Hi ,
currently I have a jenkins job that takes vtm backups daily and another one for restoring a particular backup , but I am using the raw REST curl apporach , can you please add these operations in your cli? I would have started contributing it but most of the stuff seems already done and i am quite new to golang.

list current backups
take a backup
restore a spcific backup by name
just restore the last backup
dump the difference between two backups as text or json

thanks

Hi,
sorry for the delay and thank you for using our API. Actually the API has been heavily re-engineered and enhanced and now supports the use of maps to work with all Brocade vTM resources and API to get information/statistics resources. Regarding supporting backups, the current API does not support them yet but this feature is in our backlog so stay tuned.
For documentation regarding the new api please refer to the project wiki.
Thank you.


fixes on Zak's new design - view of single collection

See display on worfdev.

if there is no image, then we should not have a "no image" thumbnail. It should just have the text. In some cases, the file itself points to a "noimage.jpg" in that case, don't do anything, we have to eliminate them from the files. But if it's being substittuted by the code, then don't show anything

Files that have transcription should not say (transcription).

Files that have only a bibligraphy, ideally should print the bib info directly in the box.

Metadata inscriptions can say "metadata only". Mostly as they do now.

btw, this should probably also work on publication view and search results

Metadata only -> No Transcription

finished item 1 and 2 so far

Clarification - what do you use to tell if there is not image?

checking for noimage.jpg
checking for whatever other noimage tag exists
just ignoring it if there is nothing in the graphic url="">  attribute

a blank graphic url will now show nothing. graphic urls set to noimage.jpg will still show that.

PR open at #28 !
addresses the above at least on collection pages

Not working cleanly, not sure why- see
http://worfdev.services.brown.edu/projects/usep/publication/GRBS/
The citation isn't showing up. There are some others as well.
it may be because of the abbreviation.
Also, the citation doesn't show  up when looking at a group of inscriptions that all are mentioned in the same publication.


Added NPM install command on Getting Started

The Getting Started tutorial did not include the npm install command for getting saasUI up and running. Developers may have to go look through NPM to find it (if they aren't using yarn)

This adds a little bit of convenience indeed, thanks!


Host UI version bump

Issue:

bcgov/entity/issues/

Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

Temporary Url for review: https://strr-hosts-dev--pr-390-ugz62f2f.web.app


[FLINK-25446][state] Avoid improper sanity check on read bytes on DataInputStream#read(byte[])

What is the purpose of the change
Avoid improper sanity check on read bytes on DataInputStream#read(byte[]).
Java doc already said An attempt is made to read as many as len bytes, but a smaller number may be read, possibly zero.
Brief change log
Avoid improper sanity check on read bytes on DataInputStream#read(byte[]).
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

LGTM

@flinkbot run azure

@flinkbot run azure


Please add a Turkey country code support (+90) for SMS verification.

I would like to have a second verification support, but due to the country codes not including Turkey, I can't add an SMS verification. If you would add the Turkey country code support, which is "+90", I would highly appreciate it.
Thanks for reading.

Animelici804

Hi @Animelici804,
this repository is not directly affiliated with GitHub the platform, it is a minimal higher-level wrapper around Github's API..
Please contat the GitHub support at https://github.com/contact

i just changed input value to +90 and it worked

i just changed input value to +90 and it worked

Thanks for the idea 🫡


README doesn't reflect what this project is really about

Current functionalities:

Blurs email addresses it detects (doesn't work on every site yet, not quite perfect but pretty good)
It hides the DM drawer on Twitter
It allows you to pop up Twitch chat (doesn't have to be part of this extension)
It hides suggested LinkedIn posts (doesn't have to be part of this extension)


By extend transitivity, class instances should extend Record<string, any>

🔎 Search Terms
classes instances Record
extend transitivity
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about it.

⏯ Playground Link
Playground Link
💻 Code
class Foo {

	foo = 4;
}
type T1 = Foo extends Record<string, Foo[keyof Foo]> ? true: false; // false : expected true

type RecordFoo = Record<keyof Foo, Foo[keyof Foo]>;
type T2 = Foo extends RecordFoo ? true: false; // true
type T3 = RecordFoo extends Record<string, Foo[keyof Foo]> ? true: false; // true

type AsRecord<C> = {
	[K in keyof C]: C[K]
}
type FooAsRecord = AsRecord<Foo>
type T4 = Foo extends FooAsRecord ? true: false; // true
type T5 = FooAsRecord extends Record<string, Foo[keyof Foo]> ? true: false; // true

🙁 Actual behavior
Foo doesn't extend Record<string, Foo[keyof Foo]>, however, it can extend types that extend it.
Therefore by transitivity, Foo should extend Record<string, Foo[keyof Foo]> ?
🙂 Expected behavior
Foo should extend Record<string, Foo[keyof Foo]>.
Additional information about the issue
This issue prevents doing the following:
function faa<T extends Record<string, number>>(a: T) {
     // ...
}
faa(new Foo()); // error.

let foo: AsRecord<Foo> = new Foo();
faa(foo); // no error

let foo2: Record<keyof Foo, Foo[keyof Foo]> = new Foo();
faa(foo2); // no error

#47499
Transitivity of assignment is violated in a number of places in the language, which isn’t guaranteed to be sound. Such violations are unfortunate but intentional consequences of different desirable behaviors interacting poorly.

Transitivity of assignment is violated in a number of places in the language, which isn’t guaranteed to be sound. Such violations are unfortunate but intentional consequences of different desirable behaviors interacting poorly.

I made another test :
class Foo {

   foo = 4;
}
type T1 = Foo extends Record<string, Foo[keyof Foo]> ? true: false; // false

const obj = {
   foo: 4
};
type T2 = typeof obj extends Record<string, Foo[keyof Foo]> ? true: false; // true

Shouldn't an instance of Foo be somehow equivalent to obj ?
Currently, the workaround to this issue is:
function faa<T, U extends Record<...> = AsRecord<T> extends Record<...> ? AsRecord<T> : never>(args: U) {
}

Can't it be possible to make TS internally/implicitly do it ?

See #15300. Interfaces (including instances of class declarations) do not get implicit index signatures, while anonymous types (including types inferred for object literals) do.  This difference is intentional, and they're not going to change it.

See #15300. Interfaces (including instances of class declarations) do not get implicit index signatures, while anonymous types (including types inferred for object literals) do. This difference is intentional, and they're not going to change it.

I'm talking about classes, not interfaces. IIRC classes doesn't have declaration merging.
Also, an object works while keeping types on each attributes:
let foo = {
    a: 2,
    b: "str"
}

let foo = {
    a: 2,
    b: "str"
}

foo.b = 3; // error.

So if it works for objects, why wouldn't it be possible to make it works with a class instance too ?

The instance side of a class is equivalent to an interface.
Your object type example doesn't involve index signatures so it's a different feature entirely.
I think I'm going to disengage now; I'm not a member of the TS team, just giving you a heads up as to what's likely going to happen here.

Your object type example doesn't involve index signatures so it's a different feature entirely.

? but still we have:
type T1 = Foo extends Record<string, Foo[keyof Foo]> ? true: false; // false
type T2 = typeof obj extends Record<string, Foo[keyof Foo]> ? true: false; // true

Uitschrijven wil niet

The assumption that extends is transitive is wrong. But there is something I deeply don't understand here.
Why does Record<string, number> extends Record<"A", number> but NOT { [K in string]: number } extends { [K in 'A']: number }?
// @target: ES2022

// adding more keys makes a Record type more specific
type Ex0 = Record<'A', number> extends Record<never, number> ? true : false
//   ^?
type Ex1 = Record<'A'|'B', number> extends Record<'A', number> ? true : false
//   ^?
type Ex2 = Record<string, number> extends Record<('A'|'B'), number> ? true : false
//   ^?

type R = { [K in never]: number }
type RA = { [K in 'A']: number }
type RAB = { [K in ('A'|'B')]: number }
type RS = { [K in string]: number } // could also write this as { [R in 'A'|'B'|string]: number }

// adding more keys makes an Object type more specific
type Ex3 = RA extends R ? true : false
//   ^?
type Ex4 = RAB extends RA ? true : false
//   ^?
// until we get to [R in string] ? WHAT?
type Ex5 = RS extends RAB ? true : false
//   ^?

Workbench Repro

The assumption that extends is transitive is wrong. But there is something I deeply don't understand here.
Why does Record<string, number> extends Record<"A", number> but NOT { [K in string]: number } extends { [K in 'A']: number }?

I tried to find a cleaner workaround for my issue, and I think I got something related to your question:
{
	type AsRecord<T> = {
		[K in keyof T]: T[K]
	}

	type ReverseAsRecord<T> = T extends AsRecord<infer C> ? C : never;

	type Record_v2<K extends string,V> = ReverseAsRecord<Record<K,V>>;

	function foo<T extends Record_v2<string, any>>(t: T): T { throw new Error() }
	function faa<T extends Record_v2<string, number>>(t: T): T { throw new Error() }

	class C {
		foo!: number;
	}

	foo(new C()); // ok
	faa(new C()); // nok, why ??? I'm sad :'(

	foo({foo: 3}) // ok
	faa({foo: 3}) // ok
}

Why does Record<string, number> extends Record<"A", number> but NOT { [K in string]: number } extends { [K in 'A']: number }?

BTW, I think this is #48070.

Also, from experimentation, I'm having a hard time figuring out where it actually makes sense to use a {[x:string]:T} or Record<string, T> except in an intersection with some object type or as a constraint on some type variable.
What were you originally trying to accomplish?

What were you originally trying to accomplish?

I need a generic object (i.e. with values and a generic type). The only way to do it is to use a generic class (both a value and a type). This need is due to the fact base class expressions cannot references class type expressions.
class Events<T> {
	CHANGED = EventImpl<[T|null,T|null]>;
}

type AsRecord<C> = {
	[K in keyof C]: C[K]
}

class WithEvents<T, I extends EventsCstrs = AsRecord<T> extends EventsCstrs ? AsRecord<T> : never> {

	constructor(events: Constructor<I>) {
		this._Events = createEventsManager(this, new events() );
	}

	protected _Events;

	get Events(): inferEventsSourcesType<typeof this._Events> {
		return this._Events as any;
	}
}

export class Test<T> extends WithEvents<Events<T>> {

	constructor() {
		super(Events);
	}
}

Ah okay. So the motivating issue is, I'm thinking, in the definition of Constructor.
That is, I bet it looks something like:
type Constructor<EventTypes extends Record<string, unknown>>

And it should look something like this:
type Constructor<EventTypes extends object>

// or if you need some fancier restrictions:
type Constructor<
  EventTypes extends Record<EventNames, EventValues>,
  EventNames extends string = string & keyof EventTypes,
  EventValues extends SomeBaseEventType,
>

Ah okay. So the motivating issue is, I'm thinking, in the definition of Constructor.

No there isn't any issue with Constructor.
The issue is that I need to write:
 WithEvents<T, I extends EventsCstrs = AsRecord<T> extends EventsCstrs ? AsRecord<T> : never>

instead of simply writing:
WithEvents<I extends Record<string, ...>>

But indeed, your solution seems to be working :
class Event<T>{}

class X {
   foo!: Event<string>;
   faa!: Event<number>;
}

function foo<
 EventRecord extends Record<EventNames, Event<any>>,
 EventNames  extends keyof EventRecord = keyof EventRecord,
>( events: Constructor<EventRecord> ) {
   return new events();
}

let ev = foo(X);
ev.foo // Event<string>

I didn't knew we could make some circular references like that.
Could be great to have a kind of "list of known workarounds" in the doc.

Got it. I'm surprised it even works too :-). You don't even need an intermediate type parameter! An extends constraint can refer to its own type constraint:
function foo<T extends object & {[K in keyof T]:Event<any>}> (t: T){
    // ...
}

But there are some restrictions on this technique:
// Error: Type parameter 'T' has a circular constraint.
function foo<T extends object & T> (t: T){
}

Oh, I didn't knew. Indeed it works:
function foo<T extends {[K in keyof T]:Event<any>}> (t: Constructor<T>){
    return new t();
}

function foo<T extends Record<keyof T,Event<any>>> (t: Constructor<T>){
    return new t();
}

I really think such trick ought to be written somewhere


Unable to overload Error 'path' when extending errors

Hi!
I'm working on creating a set of custom defined errors according to advice @simPod gave awhile back here #549. For some of my errors, I would like to give a more robust path for what failed during query execution. For example, my NotFoundError I would like to be able to pass a custom $path to tell the api user what field the query failed on.
/**
 * 404 Not found.
 * User tried to get, reference, or update a record that does not exist.
 */
class NotFoundError extends Error implements ClientAware {

	public function __construct(string $message, array $path) {
		parent::__construct(
			$message,
			null,
			null,
			null,
			$path,
			null,
			[ 'status_code' => 404 ]
		);
	}

	public function isClientSafe(): bool { return true; }

}

But when I receive the NotFoundError on the client-side the error's path !== the path that was given to the error constructor.  Is this a bug or is overriding path functionality that does not exist? Thanks!

I'd implementing ClientAware and ProvidesExtensions and pass the custom path via extensions it.

Oh ok that makes sense. Im curious though in what situation is Error's path used? Because it seems like the path from createLocatedError will always take precedent.

But when I receive the NotFoundError on the client-side the error's path !== the path

I can't really help, this does not seem right. But also I don't know everything about graphql-php internals. You should debug your app why is it so.
I looked into Error class and did not found any place where passed $path would get overridden.

Ok no worries I appreciate your help and thoughts thus far. I have a path forward with using extensions and others will to, but  the Error path bit does seem to be unexpected behavior.

The path is always determined from the field that was being executed as the error is thrown. As @simPod, you may add additional information through extensions.


is  infyom:vuejs  command  working already ?

I am getting following error when I try the infyo:vuejs command.Is it work in progress or ready to use ?
Cannot use object of type InfyOm\Generator\Common\GeneratorField as array

should be solved with PR #375

@naysumyat @datenzar #375 merged. Can you test it and check if it's working or not. Re-open it if problem persists.


AllPairs example

It would be beneficial if documentation would mention which kernel(s) are used in this generic example as well as what are the input files and what are the expected output files. How do I interpret the output files? For example comparison-1-2.log contains only one char: '1'. What does that mean? Is this expected output?
line 82:
Do not know yet what should be printed...
This comment should be removed.

In the element_initialization step, the necessary files for the all pair are created. This step uses the misc.mkfile kernel to create random ASCII files. Those files represent the elements of the set upon which the AllPairs pattern will be executed. After the creation an element_comparison will be executed for each unique pair of files (elements of the set). The element_comparison here executes the misc.diff kernel which returns the number of different lines between the files. In the end the result files are downloaded to the folder from which the script was run.
I will add it in the comments

OK, thanks. I also have another suggestion. Maybe this pattern should be named simply AllPairs insted of AllPairsPattern? This way pattern name would be consistent with other patterns.
Thanks,
Antons

Also in execution profile could you please replace p1 and p2 with something more meaningful?
Thanks,
Antons

grammatical mistake:
the necessary files for the all "pair" are created

comment (line 52):

I think it download the output files from the cluster to the machine
that run this script. Need to learn more here.
needs to be removed

I don't understand sentence:

Once the script has finished running, you should see output files. Probably one file for everything?>the in the same directory you launched the script in.

grammatical mistake:

Completed Succefully!

Thank you Antons!


SyntaxError: Unexpected token 'with'

Bug Report
Describe the bug
Getting the following error in Node v20:
file:///yahooFinance/node_modules/yahoo-finance2/dist/esm/src/lib/validateAndCoerceTypes.js:3
import pkg from "../../package.json" with { type: "json" };
                                     ^^^^

SyntaxError: Unexpected token 'with'
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:118:18)
    at callTranslator (node:internal/modules/esm/loader:273:14)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:278:30)

Node.js v20.9.0

Minimal Reproduction
Run the following using Node v20:
import yahooFinance from 'yahoo-finance2';

const results = await yahooFinance.quoteSummary('NVDA');
console.log(results);

Environment
Browser or Node: Node
Node version (if applicable): v20.9.0
Npm version: 10.1.0
Browser verion (if applicable): N/A
Library version (e.g. 1.10.1):  2.13.2
Additional Context

This can be fixed by using the assert keyword instead:
- import pkg from "../../package.json" with { type: "json" };
+ import pkg from "../../package.json" assert { type: "json" };

Looks like this is related to #800; Node v22 uses with but v20 uses assert?

Hey @wrrnlim, thanks for the report and for your patience.  Slowly catching up on my backlog.
However, you did actually correctly report the related issue.  This was a bit of bad planning on the node team's part, because, there was no overlap or grace time, you had to choose one or the other (one version would crash, and the other would work).  So we used assert for v20 for a while and eventually switched to with for v22, once node v20 ended it's "active" version period.
Usually we would have supported v20 throughout it's maintenance period too, but in this case, we had to choose one or the other (or publish two separate versions of yahoo-finance, which is beyond the capabilities of our small team, unfortunately).


Python error Json decode

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/paolo/.qgis2/python/plugins/qgisgbifapi/qgis_occurrences_dialog.py", line 167, in load_occurrences
count = count_occurrences(filters)
File "/home/paolo/.qgis2/python/plugins/qgisgbifapi/gbif_webservices.py", line 34, in count_occurrences
resp = req.json()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 808, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python2.7/dist-packages/simplejson/init.py", line 516, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Versione Python: 2.7.11 (default, Jan 11 2016, 21:04:40) [GCC 5.3.1 20160101]
Versione di QGIS: 2.13.0-Master Master, exported

Searching for Taxon key: mammalia in Country: Malaysia

Thanks for your report!
According to the GBIF API Documentation (http://www.gbif.org/developer/occurrence), taxonKey should be an integer, not a taxon name. The API therefore returns Invalid integer range: mammalia, which makes the plugin crash.
I suggest:

Fixing the plugin so it reports a proper error message instead of that traceback.
Adding some info in the UI so the user know what to type in each filter (see #15 )

What do you think?

IMHO:

the plugin should not crash
in case of error, the user should be presented some useful hint on what's wrong
the field should accept only type of data compatible with what the backend accepts
maybe for higher level taxa a dropdown list could be used
a suggestion (tooltip, ?, or similar) is always good
some documentation could be added, with an Help button.
Thanks!

Thanks, all excellent suggestions!


[INLONG-2279][Improve] Supplement TubeMQ's Javadoc information

Fixes #2279

Codecov Report

Merging #2280 (7d2a4fb) into master (912a30a) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master    #2280      +/-   ##
============================================
- Coverage     12.54%   12.54%   -0.01%
+ Complexity     1219     1217       -2
============================================
  Files           420      420
  Lines         36235    36229       -6
  Branches       5674     5670       -4
============================================
- Hits           4547     4545       -2
+ Misses        30881    30875       -6
- Partials        807      809       +2

Impacted Files
Coverage Δ

...long/tubemq/server/broker/BrokerServiceServer.java
0.00% <0.00%> (ø)

...apache/inlong/tubemq/server/broker/TubeBroker.java
0.00% <0.00%> (ø)

...ng/tubemq/server/broker/msgstore/MessageStore.java
0.00% <ø> (ø)

...mq/server/broker/msgstore/MessageStoreManager.java
0.00% <ø> (ø)

...bemq/server/broker/msgstore/disk/MsgFileStore.java
0.00% <0.00%> (ø)

...tubemq/server/broker/msgstore/mem/MsgMemStore.java
35.22% <ø> (ø)

...ubemq/server/broker/nodeinfo/ConsumerNodeInfo.java
0.00% <0.00%> (ø)

...emq/server/common/paramcheck/PBParameterUtils.java
24.20% <0.00%> (ø)

...ster/nodemanage/nodeconsumer/ConsumeGroupInfo.java
0.00% <0.00%> (ø)

.../nodemanage/nodeconsumer/ConsumerEventManager.java
30.65% <ø> (ø)

... and 12 more

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 912a30a...7d2a4fb. Read the comment docs.


fix: Schema validations ignore not null on Teradata and BigQuery

This change adds code to correctly identify nullable True/False on Teradata and BigQuery, bringing them into line with other engines (MySQL, Oracle, PostgreSQL, Snowflake, SQL Server).
It also adds tests for all of these engines to avoid regressions.
It does not add support or tests for these engines:

Hive: Raised issue https://github.com/GoogleCloudPlatform/professional-services-data-validator/issues/934
Spanner: The Spanner client does not include nullable information, it appears to get data types from a cursor of a SELECT * ... LIMIT 0 query which does not expose schema attributes. I feel this is too far removed from DVT to tackle

We did talk about adding a flag to give users the option to ignore nullable True/False for schema validations, this would be useful for Hive and Spanner. But I decided that it would be a feature request and not a function of this issue.

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

/gcbrun

You may want to try re-running the build to make sure it's not an ephemeral error

You were right, the build failure was transient. Once the test had run they highlighted other issues for me to work on.
This should now be ready for review.


One more file pulled out

And one more!

Needs changing the VS projects still, doesn't it? They won't fail, because they don't know about the additional file.

Yes, but lets first finish them, there is one or two more to go.

Okay

Are you going to merge this one, or extract the others first?

Patience :)


The inverter disconnects and reconnects frequently.

Hi. For a few weeks now, my inverter has started disconnecting and reconnecting frequently and the sensors become, consequently, unavailable.
Device specifications:
UNO-DM-3.0-TL-PLUS
ABB
Firmware: 2201A
Inverter connection options:
TCP port: 502
Modbus Slave address of the inverter: 254
Modbus Register Map Base Address: 40000
Polling period: 30
Hardware: Raspberry Pi4 with Hassio
You can find attached the complete logs from the restart of Home Assistant and a screenshot of a graphic showing the frequent disconnections.
If it can be useful, I've noticed that, among the logs, you can find lines like this:
2023-10-17 10:28:35.628 DEBUG (MainThread) [custom_components.abb_powerone_pvi_sunspec] ABB SunSpec Update data coordinator update
2023-10-17 10:28:35.628 DEBUG (MainThread) [custom_components.abb_powerone_pvi_sunspec] Hub connect to IP: <IP_ADDRESS> port: 502 slave id: 254 timeout: 29
2023-10-17 10:28:35.628 DEBUG (MainThread) [custom_components.abb_powerone_pvi_sunspec] Check_Port: opening socket on <IP_ADDRESS>:502 with a 3.0s timeout.
2023-10-17 10:28:38.633 DEBUG (MainThread) [custom_components.abb_powerone_pvi_sunspec] Check_Port (ERROR): port not available on <IP_ADDRESS>:502 - error: 11
2023-10-17 10:28:38.634 DEBUG (MainThread) [custom_components.abb_powerone_pvi_sunspec] Inverter not ready for Modbus TCP connection
2023-10-17 10:28:38.634 DEBUG (MainThread) [custom_components.abb_powerone_pvi_sunspec] Async Update Data error: Inverter not active on <IP_ADDRESS>:502
2023-10-17 10:28:38.635 ERROR (MainThread) [custom_components.abb_powerone_pvi_sunspec] Error fetching abb_powerone_pvi_sunspec data:
2023-10-17 10:28:38.635 DEBUG (MainThread) [custom_components.abb_powerone_pvi_sunspec] Finished fetching abb_powerone_pvi_sunspec data in 3.008 seconds (success: False)
Also, there wouldn't seem to be any problems using the inverter's official application (Energy Viewer), because it shows normal values.
Thanks in advance.
home-assistant_abb_powerone_pvi_sunspec_2023-10-17T08-39-35.512Z.log

The log is pretty clear:
2023-10-17 10:28:35.628 DEBUG (MainThread) [custom_components.abb_powerone_pvi_sunspec] Check_Port: opening socket on <IP_ADDRESS>:502 with a 3.0s timeout.
2023-10-17 10:28:38.633 DEBUG (MainThread) [custom_components.abb_powerone_pvi_sunspec] Check_Port (ERROR): port not available on <IP_ADDRESS>:502 - error: 11
2023-10-17 10:28:38.634 DEBUG (MainThread) [custom_components.abb_powerone_pvi_sunspec] Inverter not ready for Modbus TCP connection

That means the component couldn't open a socket on port 502 of the VSN card. It's a network issue that you need to check. Check wifi of the VSN card. Also, from HA container/host, do a tcp port check on inverter:502 every 30s to see if it's available.

Hi,
As suggested, I ran some tests, including checking the TCP connection, but I didn't get any results that could explain what caused the problem.
I also checked that the configuration of the wifi network through the access point generated by the inverter was carried out correctly.
On the other hand, the frequent disconnections appeared out of the blue, without any intervention on my part: therefore it is not even possible for me to make any hypotheses about the cause of the problem.
As a contribution, I tried to install the SunSpec (generic) integration using the same configuration. The result is that the sensors obtained (including AC/DC production) are not subject to disconnection, unlike this integration.
Thank you.

Can't tell you why a python code can't make a socket connection reliably in your case, if not because of wifi network issues.
The socket connection is a very basic test, if it fails, there's a network problem. That's not my opinion, it's a fact.
But I think you found the solution: use the Sunspec integration, it's an excellent alternative.