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
I’m running into an error when attempting to create a workspace via the daytona_sdk. Specifically, the exception message is:
Failed to create workspace: 'NoneType' object has no attribute 'provider_metadata'
I’ve tried using both target="local" and target="cloud", but it fails either way. The error occurs whether I call my main script or a minimal snippet that only attempts to create then remove a workspace.
Below is the relevant code snippet and what I’ve tried so far.
Every time I run the code, I get the following error:
Failed to create workspace: 'NoneType' object has no attribute 'provider_metadata'
The workspace object is never successfully created.
What I’ve Tried
Confirmed my api_key is correct and has proper permissions.
Tried target="local" vs target="cloud" to see if that changes anything.
Checked environment (e.g., firewall, networking) to ensure the server URL is reachable.
Searched for issues in this repo mentioning 'provider_metadata'.
Expected Behavior
A successful workspace creation should return a valid workspace object (with provider metadata, etc.).
Additional Context / Logs
Operating System: macOS m1 arm64
Python version: Python 3.12.7 (via Anaconda 3).
daytona-sdk version: (Please specify the exact version—e.g., 0.1.5).
Full error message or traceback:
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.12/site-packages/daytona_sdk/daytona.py", line 165, in create
if not workspace.instance.projects[0].info.provider_metadata:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'provider_metadata'
Any guidance or fixes would be appreciated. Let me know if you need more logs or debug info to help trace the issue. Thank you!
The text was updated successfully, but these errors were encountered:
Description
I’m running into an error when attempting to create a workspace via the
daytona_sdk
. Specifically, the exception message is:I’ve tried using both
target="local"
andtarget="cloud"
, but it fails either way. The error occurs whether I call my main script or a minimal snippet that only attempts to create then remove a workspace.Below is the relevant code snippet and what I’ve tried so far.
Code Snippet
Current Behavior
What I’ve Tried
api_key
is correct and has proper permissions.target="local"
vstarget="cloud"
to see if that changes anything.'provider_metadata'
.Expected Behavior
Additional Context / Logs
Python 3.12.7
(via Anaconda 3).daytona-sdk
version: (Please specify the exact version—e.g., 0.1.5).Any guidance or fixes would be appreciated. Let me know if you need more logs or debug info to help trace the issue. Thank you!
The text was updated successfully, but these errors were encountered: