×
The 2025 Client Survey is now open! Responses will be accepted up until 10/31. Please feel free to share this link within your organization and we thank you in advance for your participation!
KeyError CSRF rakesh yadav  2021-11-23 12:01
Status: Closed
 

Hello Team,

We are trying to query the LabKey using python API but unfortunately not receiving a response but the status code is 200.

This was the response when we passed 'disable_csrf=True', while passing 'disable_csrf=False' we are getting the error "Key Error = CSRF"

Can you please look into the issue and help me where we are going wrong.

Thanks and Regards

 
 
Jon (LabKey DevOps) responded:  2021-12-21 13:54
Hello Rakesh,

Did you setup a netrc file per our README.md instructions for the Python API?

https://github.com/LabKey/labkey-api-python#readme

The CSRF Token should be passing across provided you're actually authenticating and providing correct credentials.

Regards,

Jon