Skip to content

ERROR sapient_apex_server.translator.proto_to_proto_translator: translate_v2_to_v1 failed #1

@dvnicolasdh

Description

@dvnicolasdh

Hello,
Using:

Launched first the "start_ellastic.bat" and waited for:

health status changed from [RED] to [GREEN] (reason: [shards started [[.security-7][0]]])." previous.health="RED" reason="shards started [[.security-7][0]]"

Then launched "run_all.bat" and got:

Image

Using a custom socket client built, attempted to send on port 5020 of the SapientMiddleware, the "Default.Registration.json" sapient_message from example ASM1/ of

correcting the message for snake_case where needed according to "SAPIENT-Proto-Files/bsi_flex_335_v2_0" of

We received "REGISTRATION_ACK":

✅ Connected to server
📤 Registration message sent
📥 Server returned a REGISTRATION_ACK message:
acceptance: true

BUT...

On the "Apex GUI", connexion is closed as soon as the message was recevied:

Conection: 0 open (1 closed)

Image

On console of "apex-v4.2.0-deploy\apex.exe" we can see ERROR message:

INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8080 (Press CTRL+C to quit)
C:\STAR\APEX-V_TILDE_1.0-D\bin\sapient_apex_server\apex_server.py:130: TrioDeprecationWarning: trio.MultiError is deprecated since Trio 0.22.0; use BaseExceptionGroup (on Python 3.11 and later) or exceptiongroup.BaseExceptionGroup (earlier versions) instead (python-trio/trio#2211)
C:\STAR\APEX-V_TILDE_1.0-D\bin\sapient_apex_server\apex_server.py:187: TrioDeprecationWarning: MultiError.catch is deprecated since Trio 0.22.0; use except* or exceptiongroup.catch() instead (python-trio/trio#2211)
2026-05-05 07:40:53,992 INFO apex: Connection inserted (id: 1, socket: 172.18.5.253:45418)
2026-05-05 07:40:54,002 ERROR sapient_apex_server.translator.proto_to_proto_translator: translate_v2_to_v1 failed, got error: Failed to parse mode_definition field: Failed to parse detection_class_definition field: Message type "sapient_msg.bsi_flex_335_v1_0.Registration.DetectionClassDefinition" has no field named "taxonomy_dock_definition" at "SapientMessage.registration.mode_definition[0].detection_definition.detection_class_definition[0]".
Available Fields(except extensions): "['confidenceDefinition', 'classPerformance', 'classDefinition']"..
2026-05-05 07:40:54,010 INFO apex: Connection 1 fatal error: Connection closed
2026-05-05 07:40:54,013 INFO apex: Connection disconnection update (id: 1)

replaced ~ with TILDE for readability

Seems that apex.exe attempts but fails to translate_v2_to_v1 as it doesn't recognize "taxonomy_dock_definition" field. Although the field is present in the Harness example and seems to be defined for v2 according to:

May apex conversion need adjustments ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions