containers / containers/podman-py

Error if URI exceeds 64 characters

Open
#197 3 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Python
Stars
381
Forks
140
Avg merge
5h 30m
Merged PRs (30d)
1

Description

I have a uri like this

uri = "unix:///Users/muzammil.shahbaz/.local/share/containers/podman/machine/podman-machine-default/podman.sock"
This exceeds the standard 64 characters.

On execution, I get the following error:

```
Exception has occurred: UnicodeError
encoding with 'idna' codec failed (UnicodeError: label empty or too long)

The above exception was the direct cause of the following exception:

File "../podmanclient.py", line 12, in
version = client.version()
```

A potential fix would be to encode the URL to base64 and handle decoding in the code.

I am using podman version 4.1.1 on OSX using qemu virtual machine.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.