You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a container (e.g. from us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:$VERSION) in cloudrun
Python version (output of python --version): Python 3.13.7
pip version (output of pip --version):
uv 0.9.18
Client
Client: sample python
Version: (pip show <package-name>)? e.g.
toolbox-core version 0.5.4
Example: If possible, please include your code of configuration:
# Code goes here! importasynciofromtoolbox_coreimportToolboxClient, auth_methods# Replace with the Cloud Run service URL generated in the previous stepURL="https://toolbox-dataagent-898603957982.us-central1.run.app"auth_token_provider=auth_methods.get_google_id_token(URL) # can also use sync methodasyncdefmain():
asyncwithToolboxClient(
URL,
client_headers={"Authorization": auth_token_provider},
) astoolbox:
toolset=awaittoolbox.load_toolset()
print(toolset)
asyncio.run(main())
Expected Behavior
The client should be able to connect to toolbox and load the toolset.
Current Behavior
RuntimeError: API request failed with status 401 (Unauthorized). Server response: Invalid IAP credentials: Invalid bearer token. Invalid JWT audience.
Steps to reproduce?
?
?
?
...
Additional Details
Toolbox is deployed into Cloud Run with "Enable IAP from Cloud Run" enabled and users added to the binding.
Prerequisites
Toolbox version
toolbox version 0.23.0+binary.linux.amd64.466aef0
Environment
uname -a): Linux bastion-evalbench-20251212-222704 6.17.0-1005-gcp feat!: Add Toolbox LangChain SDK code from 'main' branch of https://g… #5-Ubuntu SMP Sat Nov 22 06:06:50 UTC 2025 x86_64 GNU/Linuxus-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:$VERSION) in cloudrunpython --version): Python 3.13.7pip --version):uv 0.9.18
Client
pip show <package-name>)? e.g.Expected Behavior
The client should be able to connect to toolbox and load the toolset.
Current Behavior
RuntimeError: API request failed with status 401 (Unauthorized). Server response: Invalid IAP credentials: Invalid bearer token. Invalid JWT audience.
Steps to reproduce?
...
Additional Details
Toolbox is deployed into Cloud Run with "Enable IAP from Cloud Run" enabled and users added to the binding.