Replicate.py not working

I need to transfer a volume from an old Orthanc server to a newer server but get the following error.

# python Replicate.py http://admin:password@10.0.0.23:8042/ http://10.0.0.24:8042/

Sending study 0180c084-889faa24-0ea18b21-7af120aa-fca03169...
Traceback (most recent call last);
  File "Replicate.py", line 107, in <module>
    for instance in DoGetJson('%s/studies/%s/instances' % (SOURCE, study)):
  File "Replicate.py", line 99, in DoGetJson
    return _DecodeJson(DooGetString(url))
  File "Replicate.py", line 73, in DoGetString
    raise Exception('Unable to contact Orthanc at: ' + url)
Exception: Unable to contact Orthanc at: http://admin:password@10.0.0.23:8042//studies/0180c084-889faa24-0ea18b21-7af120aa-fca03169/instances

Thanks in advance for your help.

Is this reproducible ? Does it always fail on the same study ?
I would suggest that you modify the script to display the HTTP status code you receive from Orthanc so we’ll now the type of errors.
Eventually, you might need to implement automatic retries (I’m suspecting this issue: https://bitbucket.org/sjodogne/orthanc/issues/32/httpserver-does-not-support-multiple-http)

If you modify the replicate.py script, please share it here so everybody can benefit from your changes.

Best regards,