Calling the SetHttpTimeout
inside the Lua script gives this error:
E0318 19:33:06.835295 OrthancException.cpp:57] Cannot execute a Lua command: [string "line"]:2: attempt to call a nil value (global 'SetHttpTimeout')
Full lua script is:
function OnStoredInstance(instanceId, tags, metadata, origin)
SetHttpTimeout(2)
HttpGet("http://localhost:8001/callback?id=" .. instanceId .. "&origin=" .. DumpJson(origin))
end
Orthanc version: 1.9.7
Lua version: Lua 5.3
Referring the documentation here - Server-side scripting with Lua — Orthanc Book documentation
Could this be a Orthanc version issue? If so I would be happy to contribute to update the documentation.
Thank you!