Comments (13)
It sounds like it was failing because the request was expiring. It should be better now as I increased the expiry timeout to give more time during high load. Async would avoid the connection ending like that and you would get more info
from ai-horde.
It seems the error is returned about 3 minutes after the request has been made.
from ai-horde.
Any idea what header I need to allow to fix this?
from ai-horde.
Access-Control-Allow-Origin: *
from ai-horde.
It seems I'm already allowing that: https://github.com/db0/AI-Horde/blob/main/horde/__init__.py#L33
from ai-horde.
I've put the header in my reverse proxy as well. Maybe it will work for you now?
from ai-horde.
No, here is my console.log value:
Access to fetch at 'https://stablehorde.net/api/v2/generate/sync' from origin 'http://localhost:5173' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
It immediately fails every time now.
from ai-horde.
welp! OK removed it from apache. Did it stop failing immediately now?
from ai-horde.
Yes, it seems to work again.
from ai-horde.
But still randomly failing?
from ai-horde.
Anyway, I suggest you use async instead, as it will allow you to get the status of the request while waiting as well
from ai-horde.
But still randomly failing?
Difficult to know. It was failing previously when the number of workers were low and after 3 minutes. It seems to work correctly right now. I suspect it fails only when it has to send an error.
from ai-horde.
Anyway, I suggest you use async instead, as it will allow you to get the status of the request while waiting as well
Yes, I was planning to switch to async once it works correctly in sync mode.
from ai-horde.
Related Issues (20)
- Create Styles via the Horde
- [Enhancement]: Add Adetailer
- Add support for InstantID
- Bounty: 2,500,000 kudos for ipadapter and new controlnets
- Add option to change automatically the request requirements to stay within the upfront kudos limits HOT 2
- Add support for Stable Cascade
- Add Support for Large World Model (text)
- Add support for regional prompting HOT 1
- Worker pop endpoints should return whether the generation is shared: true or not
- Add Educator role
- Add SD-forge-layerdiffusion support
- Status endpoints should return which worker is processing request
- [Enhancement]: Add X-Adapter
- Return `job_ttl` with jobpop
- Worker-name identity token
- Add handling for 324115 lora
- Add support for superprompter/prompt-augmentation
- FR: request random model by baseline
- Batched jobs with post processing enabled don't have enough time to complete before being considered stale HOT 1
- Bounty of 225k Kudos for [Enhancement]: Add promt scheduling/fusion/mixing with weights like A1111 has
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ai-horde.