LAMP Consortium

LAMP Connection Issue using Python API

Hi, I have been using the following code to download data from LAMP:
data[“accelerometer”] = LAMP.SensorEvent.all_by_participant(participant_1, _limit=1000000,origin=“lamp.accelerometer”)[‘data’]

When I tried using it today, I got the following error:
HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded with url: /participant/participant_1/sensor_event?limit=1000000&origin=lamp.accelerometer (Caused by ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))

can you help me resolve this error please?

Thank you

Hi all, @rhays @avaidyam do you recognize this error? We are yet to resolve this, thanks in advance for any advice.

It does look like this could be an issue with your server as it says the remote end (that is, your server, with the client being your computer running the Python code) is closing the connection. This could be a server crash or some kind of network issue that is unrelated to LAMP at all. Is it still occurring? Could you check with your IT team to see what the logs say for the server?