Open rgaudin opened 1 week ago
This may be related to https://github.com/kiwix/kiwix-tools/pull/673
Can you test with kiwix-serve.exe -i ipv4 -p 8001 foo.zim
?
It works ; I got the same dialog btw.
Should we update the error message then?
What happens exactly here which leads to this error? @sgourdas Any idea?
That is pretty strange.
From a quick look at the code, the only difference in flow that I can see, when no -i
parameter is supplied, is the address
variable being left unitialized. But regardless, without explicitly assigned it to ""
it should still have that value.
Regardless, even though it should be automatically initialized as an empty string we could still assign it explicitly when the -i option is not provided, just to ensure consistency, or remove the other assignments that do the same.
I will try to test when as soon as I get time.
@kelson42 is there a way for me to build kiwix-serve for Windows?
@sgourdas ; you can using kiwix-build ; see the windows notes on the Wiki
@sgourdas I believe this bug might be just fixed by properly analysing the code.
Using https://tmp.kiwix.org/ci/dev_preview/zim-tools_windows/kiwix-tools_win-x86_64-2024-09-02.zip on Windows 11 (VM) I can't seem to start kiwix-serve.
Either as regular user or administrator, I always get the following error: