podman-desktop-extension-ai-lab icon indicating copy to clipboard operation
podman-desktop-extension-ai-lab copied to clipboard

Default Services Python Snippet in Service Details fails due to https

Open aokugel opened this issue 8 months ago • 0 comments

Bug description

When running the default Python code snippet in Ai Lab > Model Services > Service Details, the python code snippet errors with the following error:

ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1002)

This can be fixed by changing the

conn = http.client.HTTPSConnection("localhost", 38243)

line to

conn = http.client.HTTPConnection("localhost", 38243)

Operating system

Fedora 40

Installation Method

from Podman-Desktop extension page

Version

1.0.0

Steps to reproduce

No response

Relevant log output

No response

Additional context

ai-lab-python-snippet-bug

aokugel avatar May 30 '24 11:05 aokugel