Skip to content

CreateBrainInternal ( ) returning invalid brain_id on Unreal Engine but able to log and see the created brain id log on python service #36

Open
@badAcc3ss

Description

@badAcc3ss

Hey,
So this happens after I have established my service using the C++ SDK with Unreal Engine.
When i am creating the brain using CreateBrain(BrainName.c_str()); which in turn invokes CreateBrainInternal()
I get a random string as the brain_id and hence when I try to StartSession(). The python service throws the following error

[libprotobuf ERROR T:\src\github\protobuf\protobuf\src\google\protobuf\wire_format_lite.cc:581] String field 'falken.proto.SessionSpec.brain_id' contains invalid UTF-8 data when parsing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes. E0114 15:35:11.568410 29492 _common.py:88] Exception deserializing message! Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\grpc\_common.py", line 86, in _transform return transformer(message) google.protobuf.message.DecodeError: Error parsing message with type 'falken.proto.CreateSessionRequest'

I have checked my python as well as protobuf dependencies and they seem fine.
P.S. The fun part is the example project HelloFalken works fine using the same SDK and dependencies

Unreal Engine 4.27.1
Visual Studio 2019
C++ sdk (0.0.2)
Python 3.9.9
protobuf :3.19.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions