To Our Amazing Educators Everywhere,
Happy Teacher Appreciation Week!
Found this content helpful? Log in or sign up to leave a like!
I did get one full initdb across all tables yesterday afternoon after the "middleware fix" (2023-10-25). However, today when I wanted to start a full syncdb on those same tables I got this:
$ dap syncdb --namespace canvas --table accounts
2023-10-26 08:38:21,842 - WARNING - Received error in response: invalid_client
2023-10-26 08:38:21,866 - ERROR - invalid_client
Traceback (most recent call last):
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/__main__.py", line 133, in console_entry
main()
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/__main__.py", line 125, in main
asyncio.run(dapCommand.execute(args))
File "/usr/lib64/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib64/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/commands/commands.py", line 31, in execute
executed = await super().execute(args)
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/commands/base.py", line 49, in execute
if await subcommand.execute(args):
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/commands/base.py", line 45, in execute
await self._execute_impl(args)
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/commands/syncdb_command.py", line 42, in _execute_impl
await sync_db(
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/actions/sync_db.py", line 16, in sync_db
await SQLReplicator(session, db_connection).synchronize(
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/replicator/sql.py", line 100, in synchronize
client = await IncrementalClientFactory(
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/downloader.py", line 148, in get_client
table_data = await self._session.get_table_data(
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/api.py", line 608, in get_table_data
job = await self.execute_job(namespace, table, query)
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/api.py", line 540, in execute_job
job = await self.query_incremental(namespace, table, query)
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/api.py", line 367, in query_incremental
job = await self._post(f"/dap/query/{namespace}/table/{table}/data", query, Job) # type: ignore
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/api.py", line 267, in _post
await self.authenticate()
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/api.py", line 344, in authenticate
properties = await self._post_auth_request(self._credentials.basic_credentials)
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/api.py", line 294, in _post_auth_request
return await self._process(response, TokenProperties, suppress_output=True)
File "/var/lib/canvas-mgmt/python39-venv/lib64/python3.9/site-packages/dap/api.py", line 324, in _process
raise error_object
dap.dap_error.ServerError: invalid_client
I checked the latest version of the DAP client and it's not changed (0.3.15). Also, my credentials have not timed out (token is good for several months).
@JozsefKercso It was suggested that I tag you on this. Also, it happens on every DAP action including "list".
Hi @reynlds ! We are investigating the issue... Please bear with us. Thank you!
My frustration got the better of me just a few minutes ago and I generated a new identity key and plugged it into my DAP configuration. It's working now, even though my original key doesn't expire until April, 2024. Obviously, something is not right with the identity process.
FYI...this happened again on a key that should not have expired until April, 2024. What's going on?
It happened to me since February 9, 2025
To participate in the Instructure Community, you need to sign up or log in:
Sign In