containers / containers/podman-py
Error if URI exceeds 64 characters
- 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
Assessment
This issue has not been assessed yet.