bananaml / potassium

An HTTP serving framework by Banana
Apache License 2.0
97 stars 9 forks source link

SSL Certificate error when using the python client #43

Open gaceladri opened 1 year ago

gaceladri commented 1 year ago

I am having an error when using the template code

from banana_dev import Client

# Create a reference to your model on Banana
my_client = Client(
    api_key="YOUR_API_KEY", # Found in dashboard
    url="https://YOUR_URL.run.banana.dev", # Found in model view in dashboard
)

# Specify the model's input JSON
inputs = {
    "prompt": "In the summer I like [MASK].",
}

# Call your model's inference endpoint on Banana
result, meta = my_client.call("/", inputs)
print(result)

SSLError: HTTPSConnectionPool(host='<YOUR_URL>.run.banana.dev', port=443): Max retries exceeded with url: [/](https://file+.vscode-resource.vscode-cdn.net/) (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for '<YOUR_URL>.run.banana.dev'. (_ssl.c:1006)")))