[GH-ISSUE #7513] [Issue]: "fetch failed" error on Noodle and Slurp on server instances #4183

Closed
opened 2026-10-21 06:12:11 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @lotushomerun on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7513

Originally assigned to: @Gunterlie on GitHub.

Summary

I am running Marinara Engine on a local server and using another desktop as a client. When refreshing the timeline or attempting to add a card to Slurp, it reports a fetch failed error instead of doing the action.

I am also using llama.cpp, which may be an issue. I haven't tried out using an API model yet.

Expected behavior

Noodle and Slurp timelines refresh, messages come, you can sign a card up to Slurp without issue.

Actual behavior

The client attempts connects to ::1:8080 which is the IPv6 IP 0000:0000:0000:0000:0000:0000:0001:8080, and not localhost which would be [::1]:8080. This could also be that it's trying to connect to the client's localhost instead of the server's localhost. Who knows because I'm getting an HTTP error 500.

Steps to reproduce

  1. Set up a Marinara server on a different PC
  2. Edit the server's .env to allow for connections to the local network, either with password authentication, IP whitelist, or ALLOW_UNAUTHENTICATED_PRIVATE_NETWORK=true and add an ADMIN_SECRET
  3. Connect toe the Marinara server on the client with a web browser
  4. Authenticate with the ADMIN_SECRET
  5. Install Noodle and Slurp
  6. Go to Noodle and attempt to refresh, you will get "fetch failed"

Environment

  • Marinara Engine version: staging 1c0e7e1b1
  • Install type: source
  • OS + version:
    • Server: CachyOS (rolling release), Kernel 7.1.9-arch1-2
    • Client: Arch Linux (rolling release), Linux 7.2.7-zen
  • Browser or app shell: Firefox 157 (Client)

Logs, screenshots, or video

Server log

{"level":50,"time":1791873657574,"pid":119351,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[noodle] Timeline refresh failed"}
{"level":50,"time":1791873761498,"pid":119351,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[slurp] Sign-up scene turn failed using llamacpp"}
{"level":50,"time":1791874385623,"pid":119351,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[slurp] Stage profile draft generation failed using llamacpp"}
{"level":40,"time":1791874852030,"pid":119351,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[slurp-fan] Automatic audience activity failed"}

Client console log

XHR POST
http://192.168.1.7:7860/api/noodle/refresh
[HTTP/1.1 500 Internal Server Error 23ms]

	
POST
	http://192.168.1.7:7860/api/noodle/refresh
Status
500
Internal Server Error
VersionHTTP/1.1
Transferred1.48 kB (24 B size)
Referrer Policyno-referrer
Request PriorityHighest
DNS ResolutionSystem

    	
    access-control-allow-credentials
    	true
    access-control-allow-origin
    	http://192.168.1.7:7860
    access-control-expose-headers
    	X-Marinara-Fallback-Used, X-Request-Id
    cache-control
    	no-store
    Connection
    	keep-alive
    content-length
    	24
    content-security-policy
    	default-src 'self'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; object-src 'none'; script-src 'self' https://sdk.scdn.co https://www.youtube.com https://s.ytimg.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; media-src 'self' data: blob: https:; font-src 'self' data:; connect-src 'self' http: https: ws: wss:; frame-src 'self' https://sdk.scdn.co https://accounts.spotify.com https://www.youtube.com https://www.youtube-nocookie.com; worker-src 'self' blob:; manifest-src 'self'
    content-type
    	application/json; charset=utf-8
    cross-origin-opener-policy
    	same-origin
    cross-origin-resource-policy
    	same-origin
    Date
    	Tue, 13 Oct 2026 06:59:10 GMT
    Keep-Alive
    	timeout=72
    origin-agent-cluster
    	?1
    permissions-policy
    	camera=(self), microphone=(self), display-capture=(self), geolocation=(), payment=(), usb=(), serial=(), xr-spatial-tracking=()
    ratelimit-limit
    	600
    ratelimit-remaining
    	584
    ratelimit-reset
    	1791874801
    referrer-policy
    	no-referrer
    vary
    	Origin
    x-content-type-options
    	nosniff
    x-frame-options
    	DENY
    x-permitted-cross-domain-policies
    	none
    x-request-id
    	47234a4f-11be-45a5-8c94-a6267b6479f2
    	
    Accept
    	*/*
    Accept-Encoding
    	gzip, deflate
    Accept-Language
    	en-US,en;q=0.9
    Cache-Control
    	no-cache
    Connection
    	keep-alive
    Content-Length
    	180
    content-type
    	application/json
    Cookie
    	[redacted]
    Host
    	192.168.1.7:7860
    Origin
    	http://192.168.1.7:7860
    Pragma
    	no-cache
    Priority
    	u=0
    Sec-GPC
    	1
    User-Agent
    	Mozilla/5.0 (X11; Linux x86_64; rv:157.0) Gecko/20100101 Firefox/157.0
    x-admin-secret
    	asd
    x-marinara-csrf
    	1

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @lotushomerun on GitHub (Oct 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7513 Originally assigned to: @Gunterlie on GitHub. ## Summary I am running Marinara Engine on a local server and using another desktop as a client. When refreshing the timeline or attempting to add a card to Slurp, it reports a `fetch failed` error instead of doing the action. I am also using llama.cpp, which may be an issue. I haven't tried out using an API model yet. ## Expected behavior Noodle and Slurp timelines refresh, messages come, you can sign a card up to Slurp without issue. ## Actual behavior The client attempts connects to `::1:8080` which is the IPv6 IP `0000:0000:0000:0000:0000:0000:0001:8080`, and not localhost which would be `[::1]:8080`. This could also be that it's trying to connect to the client's localhost instead of the server's localhost. Who knows because I'm getting an HTTP error 500. ## Steps to reproduce 1. Set up a Marinara server on a different PC 2. Edit the server's `.env` to allow for connections to the local network, either with password authentication, IP whitelist, or `ALLOW_UNAUTHENTICATED_PRIVATE_NETWORK=true` and add an `ADMIN_SECRET` 3. Connect toe the Marinara server on the client with a web browser 4. Authenticate with the `ADMIN_SECRET` 5. Install Noodle and Slurp 6. Go to Noodle and attempt to refresh, you will get "fetch failed" ## Environment - Marinara Engine version: staging 1c0e7e1b1 - Install type: source - OS + version: - Server: CachyOS (rolling release), Kernel 7.1.9-arch1-2 - Client: Arch Linux (rolling release), Linux 7.2.7-zen - Browser or app shell: Firefox 157 (Client) ## Logs, screenshots, or video Server log ``` {"level":50,"time":1791873657574,"pid":119351,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[noodle] Timeline refresh failed"} {"level":50,"time":1791873761498,"pid":119351,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[slurp] Sign-up scene turn failed using llamacpp"} {"level":50,"time":1791874385623,"pid":119351,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[slurp] Stage profile draft generation failed using llamacpp"} {"level":40,"time":1791874852030,"pid":119351,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[slurp-fan] Automatic audience activity failed"} ``` Client console log ``` XHR POST http://192.168.1.7:7860/api/noodle/refresh [HTTP/1.1 500 Internal Server Error 23ms] POST http://192.168.1.7:7860/api/noodle/refresh Status 500 Internal Server Error VersionHTTP/1.1 Transferred1.48 kB (24 B size) Referrer Policyno-referrer Request PriorityHighest DNS ResolutionSystem access-control-allow-credentials true access-control-allow-origin http://192.168.1.7:7860 access-control-expose-headers X-Marinara-Fallback-Used, X-Request-Id cache-control no-store Connection keep-alive content-length 24 content-security-policy default-src 'self'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; object-src 'none'; script-src 'self' https://sdk.scdn.co https://www.youtube.com https://s.ytimg.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; media-src 'self' data: blob: https:; font-src 'self' data:; connect-src 'self' http: https: ws: wss:; frame-src 'self' https://sdk.scdn.co https://accounts.spotify.com https://www.youtube.com https://www.youtube-nocookie.com; worker-src 'self' blob:; manifest-src 'self' content-type application/json; charset=utf-8 cross-origin-opener-policy same-origin cross-origin-resource-policy same-origin Date Tue, 13 Oct 2026 06:59:10 GMT Keep-Alive timeout=72 origin-agent-cluster ?1 permissions-policy camera=(self), microphone=(self), display-capture=(self), geolocation=(), payment=(), usb=(), serial=(), xr-spatial-tracking=() ratelimit-limit 600 ratelimit-remaining 584 ratelimit-reset 1791874801 referrer-policy no-referrer vary Origin x-content-type-options nosniff x-frame-options DENY x-permitted-cross-domain-policies none x-request-id 47234a4f-11be-45a5-8c94-a6267b6479f2 Accept */* Accept-Encoding gzip, deflate Accept-Language en-US,en;q=0.9 Cache-Control no-cache Connection keep-alive Content-Length 180 content-type application/json Cookie [redacted] Host 192.168.1.7:7860 Origin http://192.168.1.7:7860 Pragma no-cache Priority u=0 Sec-GPC 1 User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:157.0) Gecko/20100101 Firefox/157.0 x-admin-secret asd x-marinara-csrf 1 ``` ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:12:11 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 13, 2026):

@Gunterlie

<!-- gh-comment-id:6141926188 --> @SpicyMarinara commented on GitHub (Oct 13, 2026): @Gunterlie
Author
Owner

@Gunterlie commented on GitHub (Oct 15, 2026):

Thanks for the detailed logs, they pinned it down.

The failing call is not the browser. It is the Marinara server calling your llama.cpp connection at localhost:8080. On your server, localhost resolved to the IPv6 address ::1 only, so the Engine never tried 127.0.0.1, which is where llama.cpp listens by default. Noodle and Slurp use the same model code as normal chat, so a chat on that connection most likely fails the same way.

Workaround now: in the connection settings, change the base URL from http://localhost:8080 to http://127.0.0.1:8080.

Fix: the Engine will try both loopback addresses for localhost, IPv4 first. That fix is in review.

If the workaround does not help, please tell us:

  1. Does llama.cpp run on the server PC (192.168.1.7) or on your desktop? If it runs on the desktop, the server cannot reach it at localhost. Use the desktop's LAN IP as the base URL, and start llama.cpp with --host 0.0.0.0.
  2. Does a normal chat with the same connection work?
  3. Is PROVIDER_LOCAL_URLS_ENABLED set in your server's .env?
<!-- gh-comment-id:6200650882 --> @Gunterlie commented on GitHub (Oct 15, 2026): Thanks for the detailed logs, they pinned it down. The failing call is not the browser. It is the Marinara server calling your llama.cpp connection at `localhost:8080`. On your server, `localhost` resolved to the IPv6 address `::1` only, so the Engine never tried `127.0.0.1`, which is where llama.cpp listens by default. Noodle and Slurp use the same model code as normal chat, so a chat on that connection most likely fails the same way. **Workaround now:** in the connection settings, change the base URL from `http://localhost:8080` to `http://127.0.0.1:8080`. **Fix:** the Engine will try both loopback addresses for `localhost`, IPv4 first. That fix is in review. If the workaround does not help, please tell us: 1. Does llama.cpp run on the server PC (192.168.1.7) or on your desktop? If it runs on the desktop, the server cannot reach it at `localhost`. Use the desktop's LAN IP as the base URL, and start llama.cpp with `--host 0.0.0.0`. 2. Does a normal chat with the same connection work? 3. Is `PROVIDER_LOCAL_URLS_ENABLED` set in your server's `.env`?
Author
Owner

@lotushomerun commented on GitHub (Oct 15, 2026):

Changing the address allows Noodle and Slurp to work just fine.

I tried out the fix using the old address and the change seems to improve Slurp, but doesn't fix the issue on Noodle:

  • Noodle: Still an immediate error
{"level":50,"time":1792099845434,"pid":5299,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[noodle] Timeline refresh failed"}
  • Slurp: Signing up a creator now outputs a soft error instead of a fetch failed notification: Slurp could not reach the connection "Connection Name" (ECONREFUSED). Start that model,. or choose another generation connection, then try again
{"level":50,"time":1792099916402,"pid":5299,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[slurp] Sign-up scene turn failed using llamacpp"}
  1. llama.cpp runs on the server PC alongside the Marinara instance. The client only acts as a remote for Marinara.
  2. Yes, normal chats do work. I tried out conversation, roleplay, and game without issue.
  3. No. It accepted the llama.cpp connection without having to set PROVIDER_LOCAL_URLS_ENABLED. However after setting PROVIDER_LOCAL_URLS_ENABLED to true, Noodle and Slurp seem to work just fine now. Perhaps the local URL block is not properly working on local server instances?
<!-- gh-comment-id:6202833894 --> @lotushomerun commented on GitHub (Oct 15, 2026): Changing the address allows Noodle and Slurp to work just fine. I tried out the fix using the old address and the change seems to improve Slurp, but doesn't fix the issue on Noodle: - Noodle: Still an immediate error ``` {"level":50,"time":1792099845434,"pid":5299,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[noodle] Timeline refresh failed"} ``` - Slurp: Signing up a creator now outputs a soft error instead of a fetch failed notification: `Slurp could not reach the connection "Connection Name" (ECONREFUSED). Start that model,. or choose another generation connection, then try again` ``` {"level":50,"time":1792099916402,"pid":5299,"hostname":"cachyos-x8664","err":{"type":"TypeError","message":"fetch failed: connect ECONNREFUSED ::1:8080","stack":"TypeError: fetch failed\ncaused by: Error: connect ECONNREFUSED ::1:8080\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:2017:16)"},"msg":"[slurp] Sign-up scene turn failed using llamacpp"} ``` 1. llama.cpp runs on the server PC alongside the Marinara instance. The client only acts as a remote for Marinara. 2. Yes, normal chats do work. I tried out conversation, roleplay, and game without issue. 3. No. It accepted the llama.cpp connection without having to set `PROVIDER_LOCAL_URLS_ENABLED`. However after setting `PROVIDER_LOCAL_URLS_ENABLED` to true, Noodle and Slurp seem to work just fine now. Perhaps the local URL block is not properly working on local server instances?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4183
No description provided.