Discussions

Ask a Question
Back to All

Python Error

Hi, I am getting errors when running your sample Python script. My API key is correct.

Any idea?

Thanks

Phil

python3 audio.py
In Content you can create scripts and manage your production assets.
Traceback (most recent call last):
File "/Volumes/smallRed/Dropbox/Current_Projects/AI_Testing/Audio/audio.py", line 16, in
script = audiostack.Content.Script.create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/audiostack/content/script.py", line 53, in create
r = Script.interface.send_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/audiostack/helpers/request_interface.py", line 112, in send_request
return self.resolve_response(
^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/audiostack/helpers/request_interface.py", line 63, in resolve_response
raise Exception(msg)
Exception: Failed to create script. Errors listed as follows:
Invalid char detected: ". Invalid chars are "[]^%`{>}~#|<&{}. Check this text: Welcome to AudioStack, the world's most powerful AI audio creation infrastructure.The unlimited possibilities of generative AI at your fingertips. In one single API."