Skip to content

SSL Certificate error when using the python client #43

@gaceladri

Description

@gaceladri

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)")))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions