Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL Certificate error when using the python client #43

Open
gaceladri opened this issue Oct 28, 2023 · 0 comments
Open

SSL Certificate error when using the python client #43

gaceladri opened this issue Oct 28, 2023 · 0 comments

Comments

@gaceladri
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant