Issue with batch requests on remote control api ?

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 !

2 Likes

Exact same problem for me. Anyone else?

1 Like

Where should we file this issue? It has been years without a response.

1 Like

Hey guys,

I’m putting in place some test data I can sent to Epic for bug repro …

1 Like

Hello,

It seems that the Batch request crashes systematically if the request header has no Passphrase fields. Adding one to your HTTP request solves the problem.

const unrealHeaderDict = {
    'User-Agent': 'X-UnrealEngine-Agent',
    'Content-Type': 'application/json',
    'Passphrase': 'random-text',
  }
2 Likes

OMG thank you !

1 Like