huggingface / chat-ui

Open source codebase powering the HuggingChat app
https://huggingface.co/chat
Apache License 2.0
7.31k stars 1.06k forks source link

ChatUI 500 error - Requiring now internet access to call external URL #1247

Closed antonioramos1 closed 3 months ago

antonioramos1 commented 3 months ago

With the latest release (0.9.0) chat-ui is no longer working in my current setup that has a closed firewall, you are prompted with a 500 error trying to access it. image

From the logs it seems like a call is being made to raw.githubusercontent.com, to reproduce it you can start ChatUI locally without internet.

chatui-1        | {"level":50,"time":1717500237009,"pid":22,"hostname":"","locals":{"sessionId":"980fc588857836ecfad91f311c6410f162c50f10fa0fffee8f6cd2abfe64a809"},"url":"https://localhost:3000/","params":{},"request":{},"error":{"cause":{"errno":-3008,"code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"raw.githubusercontent.com"}},"errorId":"67bf1a39-d04a-4c37-99f2-fb6842c89685"}

Which leads me to think it may be something to do with this reference here: https://github.com/huggingface/chat-ui/blob/main/src/lib/components/AssistantSettings.svelte#L504C1-L505C1

Is this intended?

martinigoyanes commented 3 months ago

Same issue here!

nsarrazin commented 3 months ago

pretty sure this is similar to #1242 will implem a fix

nsarrazin commented 3 months ago

I pushed a fix on main and released 0.9.1 which should contain it. Let me know if it works otherwise i can reopen the issue.