Hello!
I am hoping to use the Balena Python SDK to pre-register my devices so that I can set critical environment variables at the same time the SD card is flashed.
However, when my python script executes balena.models.device.register(<my_application_name>, <32_character_UUID>)
I receive an internal server error.
Here is my balena.cfg
file (I am running openBalena 2, not 3 yet):
[Settings]
pine_endpoint = https://api.<my_domain>/v5/
api_endpoint = https://api.<my_domain>/
builder_url = https://builder.balena-cloud.com/
api_version = v5
device_actions_endpoint_version = v1
data_directory = C:\Users\Caleb\.balena
image_cache_time = 604800000
token_refresh_interval = 3600000
timeout = 30000
cache_directory = C:\Users\Caleb\.balena\cache
token = <my_token>
Any ideas?