Describe the bug
packages/server/src/services/prompts-lists/index.ts fetches popular prompts from LangChain Hub without an explicit timeout:
const resp = await axios.get(url)
The error path returns { status: 'ERROR', repos: [] }, but a slow or blackholed api.hub.langchain.com request can keep the server route waiting until Axios/network defaults resolve.
To Reproduce
- Run Flowise in an environment where
https://api.hub.langchain.com is slow, blocked, or blackholed.
- Trigger the prompt-list service.
- The request waits on the external call instead of failing within a bounded time and returning the existing empty-list fallback.
Expected behavior
The prompts-list service should use a bounded timeout and return { status: 'ERROR', repos: [] } quickly when LangChain Hub is unavailable.
Flow
Not applicable; this is a server-side prompt list retrieval path.
Use Method
Docker / npx flowise start / pnpm start
Flowise Version
Current main branch by code inspection.
Operating System
Linux / macOS / Windows
Browser
Not browser-specific.
Additional context
A possible fix is to pass timeout to axios.get and optionally make it configurable for self-hosted deployments.
Describe the bug
packages/server/src/services/prompts-lists/index.tsfetches popular prompts from LangChain Hub without an explicit timeout:The error path returns
{ status: 'ERROR', repos: [] }, but a slow or blackholedapi.hub.langchain.comrequest can keep the server route waiting until Axios/network defaults resolve.To Reproduce
https://api.hub.langchain.comis slow, blocked, or blackholed.Expected behavior
The prompts-list service should use a bounded timeout and return
{ status: 'ERROR', repos: [] }quickly when LangChain Hub is unavailable.Flow
Not applicable; this is a server-side prompt list retrieval path.
Use Method
Docker / npx flowise start / pnpm start
Flowise Version
Current main branch by code inspection.
Operating System
Linux / macOS / Windows
Browser
Not browser-specific.
Additional context
A possible fix is to pass
timeouttoaxios.getand optionally make it configurable for self-hosted deployments.