dap.dap_error.ServerError: invalid_client
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My script to pull incremental data from tables errored out early this morning and is still unable to run now, I am getting the following error:
Received error in response: invalid_client
Traceback (most recent call last):
File "/scriptpath/canvas_update_tables.py", line 281, in <module>
asyncio.run(main())
File "/u01/app/sct/.pyenv/versions/3.12.4/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/u01/app/sct/.pyenv/versions/3.12.4/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/u01/app/sct/.pyenv/versions/3.12.4/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/scriptpath/canvas_update_tables.py", line 252, in main
tables = await session.get_tables("canvas")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/lib/python3.12/site-packages/dap/api.py", line 417, in get_tables
table_list = await self._get(f"/dap/query/{namespace}/table", TableList)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/lib/python3.12/site-packages/dap/api.py", line 229, in _get
await self.authenticate()
File "/path/lib/python3.12/site-packages/dap/api.py", line 379, in authenticate
properties = await self._post_auth_request(self._credentials.basic_credentials)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/lib/python3.12/site-packages/dap/api.py", line 329, in _post_auth_request
return await self._process(response, TokenProperties, suppress_output=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/path/lib/python3.12/site-packages/dap/api.py", line 359, in _process
raise error_object
dap.dap_error.ServerError: invalid_client
A similar thread was made by someone before about this and it looks like the issue was fixed after the canvas data team got eyes on it. The same code that received this error worked without issues yesterday afternoon.