arrows icon indicating copy to clipboard operation
arrows copied to clipboard

Getting "Error: Connection Error" when accessing via web server

Open eveninglion opened this issue 6 months ago • 2 comments

Hello!

Apologies in advance, I'm not very tech savvy, please let me know if I'm missing any required info here, and excuse any irrelevant info I may include.

Been using your awesome frontend locally on my desktop, works like a charm when combined with your tips for better stories!

But I recently wanted to try using arrows remotely via my macbook, so I built the prod version per the readme and used http-server to access. Arrows will load the Once upon a time... page successfully, but then throws an error once I type my intro and start generating anything, displaying Error: Connection Error.

I'm able to generate using the kobold frontend (port 5001) remotely on my macbook, and just to troubleshoot the port that http-server was using (port 8080), I manually changed the backend port to 8080 to see if kobold frontend could still connect and generate on that port from my macbook, and it did so without issues.

Also tried to see if it was an issue with http-server, so I figured out that I could use npm run dev -- --host to expose arrows to my network (port 5173), and it does load the Once upon a time... page successfully on my macbook as well, but then also just returns Error: Connection Error.

Do you have any suggestions as to what other steps I could take to figure out why this isn't working? Can arrows generate log files somewhere I don't know about?

Thank you very much, any insight you could give me would be greatly appreciated!

eveninglion avatar May 23 '25 04:05 eveninglion

What do you mean by "returns" an error? Where is the error displayed? Please post a screenshot.

p-e-w avatar May 24 '25 09:05 p-e-w

Image

Like so, it immediately fails to generate the two continuations when accessing remotely on my macbook.

Works as expected locally on my desktop though:

Image

eveninglion avatar May 24 '25 15:05 eveninglion

My guess is that you're accessing Arrows over HTTPS, and trying to connect to a locally hosted inference server over plain HTTP. Browsers don't allow that. This is not an issue with Arrows.

p-e-w avatar Jul 15 '25 15:07 p-e-w

Ah, so it’s a problem with my network then. In that case, I’ll close this issue and try to sort out my network configuration. Thank you for your time!

eveninglion avatar Jul 15 '25 15:07 eveninglion