Issue with batch requests on remote control api ?

cgtoolbox
Thu, 20 Oct 2022 09:38:29 +0000
Editor Scripting

Hello folks !

I’ve been to work with the remote control API, and it all work fine, unless I’m doing batch requests, with the end point: remote/batch. ( run from a python script ).

Everytime I run that, Unreal crashes. Here is the body I use in the request, if I execute them one by one, on separate request, it works all fine.

{
    "Requests": [
        {
            "RequestId": 1,
            "URL": "/remote/object/property",
            "Verb": "PUT",
            "Body": {
                "objectPath": "/Game/Levels/NewMap.NewMap:PersistentLevel.StaticMeshActor_0.StaticMeshComponent0",
                "access": "READ_ACCESS",
                "propertyName": "ForcedLodModel"
            }
        },
        {
            "RequestId": 2,
            "URL": "/remote/object/property",
            "Verb": "PUT",
            "Body": {
                "objectPath": "/Game/Levels/NewMap.NewMap:PersistentLevel.StaticMeshActor_0.StaticMeshComponent0",
                "access": "READ_ACCESS",
                "propertyName": "PreviousLODLevel"
            }
        }
    ]
}

Before I open a bug, anyone has seen that before ? I am missing something ?

Thanks !

6 posts - 4 participants