The Python Runware SDK is used to run image inference with the Runware API, powered by the RunWare inference platform.
9
stars
6
forks
source link
No error is received when making requests with an API Key with insufficient credits or a non-existent API key. #33
Open
adilentiq opened 1 month ago
Description
No error is received when making any request (e.g imageInference) with a non-existent API key or with an API key having insufficient credits.
Context
OS: Windows Python version:
Python 3.12.5
SDK version:runware==0.2.7
Requirements
Reproduction steps
Create a directory
Create a file e.g
my_script.py
with the following content:load_dotenv(override=True)
async def main() -> None: runware = Runware( api_key=os.getenv("RUNWARE_API_KEY"), url=os.getenv("RUNWARE_WSS_URL"), log_level='DEBUG' )
asyncio.run(main())
Activate venv environment
Create a requirements.txt file with the following content:
Install project dependencies:
Create
.env
file and set up environment variablesExample
Actual result
Logs for scenario when using an API key with insufficient credits.
Expected result