RequestAuthorizationError: '401: Authorization Failed' | Jon (LabKey DevOps) | 2017-06-14 22:36 |
Status: Closed | ||
Hello, Is your actual LabKey URL setup as below? https://seabrook.land:11211/labkey If so, the line: labkey_server = 'seabrook.land:11211/' should really be: labkey_server = 'seabrook.land:11211' Another way to test this out is to rewrite your code like this: =============== import labkey from labkey.utils import create_server_context from labkey.query import select_rows schema = 'core' table = 'Users' server_context = create_server_context('seabrook.land:11211', 'labkey', 'home', use_ssl=True) result = select_rows(server_context, schema, table) if result is not None: print(result['rows'][0]) print("select_rows: Number of rows returned: " + str(result['rowCount'])) else: print('select_rows: Failed to load results from ' + schema + '.' + table) =============== Can you give this a try and see if you get the same result? Regards, Jon |
||