I am currently trying to understand and troubleshoot a URCap done by a previous colleague. I’ve managed to find the area it is stuck at but am unable to figure out why. Basically, the URCap works perfectly fine on MiR software 2.x.x, but for some reason, when using it on MiR software 3.x.x it gets stuck in a while loop at line 76 and polyscope hangs. Anyone able to advice on this?
MiRAPI.script (5.3 KB)
(!(line = response.readLine()).matches(“(.)Content-Length:(.)”))
if I read this correctly, the idea of this line probably is that you repeat the loop until you meet the line that matches(“(.)Content-Length:(.)”). If this line never arrives, it will be infinite. Check what you get after the version upgrade, could it be that the reply format has changed?
Yea it looks like the content length header from each software version is in different areas. Managed to troubleshoot and seems to be working fine now. Thanks a lot for the reply.![]()