Pulling LabKey data via python api | james skane 93089 | 2016-07-18 21:59 |
Status: Closed | ||
Hi Jon, Thanks for your response. db_test was a table that was made earlier during our attempts to pull data with labkey. I am using version 0.4.2. After changing the imports above and the table name I am still receiving the same ServerContextError. Here is the script below: from labkey.query import select_rows from labkey.utils import create_server_context server_context = create_server_context('52.36.10.100', 'home/db_test', use_ssl=True) my_results = select_rows( server_context=server_context, schema_name='study', query_name='Database' ) And below is the error: Traceback (most recent call last): File "/Users/...", line 11, in <module> query_name='Database' File "/Users/...", line 274, in select_rows select_rows_response = _make_request(server_context, url, payload, timeout=timeout) File "/Users/...", line 310, in _make_request raise ServerContextError(e) labkey.exceptions.ServerContextError Is there anything I am missing that might be causing this error? Sincerely, James |
||