-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
503 Service Unavailable #320
Comments
Jonas, this as with many things in modern development probably means you'll need to exercise your Google-fu... Here on a Sunday are a couple of items that look like they might hint at CORS specifics that can happen with Netlify:
I don't think it's timeouts -- 503 is a hard refusal from the server, as you can also look up. |
p.s. good if you post what you find actually solves this, nice for others to find |
Actually I did find a solution – at least it made the error go away: I thought – because of the suspicion that the timeout was a problem – that I could just redo the apollo call. So I used: This means if the request fails it will just redo it. I am still not sure, if it was a timeout thing, and maybe my retry.stuff is just covering the underlying problem. I will try to investigate more, but for now I am just glad I got the project up and running again. Thank you very much for your quick responses. I really appreciate this! |
Oh hey: this could be it:
from https://alligator.io/nodejs/solve-cors-once-and-for-all-netlify-dev/ I was still waitint for the certificate to be provisioned (because there was an additional AAAA record I forgot to delete). During that time the domain was still http requesting the API. What to me still does not make sense, is, why a netlify build would be influenced by the domain, where the live page is shown. Anyway, as I said I will keep investigating. |
Hi there. Another issue by me. So sorry about it 🙏🏼
Now that I bought the plugin and deployed the live site, graphql just returns random 503 Service Unavailable errors...
Does anyone have a clue why?
It never happened before (except due to some strange behaviour in my other issue (#307).
And now it starts happening on the live page, just for some requests via apollo and even when building the page from netlify:
The only thing that has changed, is that my live page still is waiting for the SSL the be provisioned, but that's about it.
I doubt that the server is down every few requests too...
Maybe it has to do with CORS issues again:
And also:
Failed to load resource: Origin http://www.live-site.ch is not allowed by Access-Control-Allow-Origin.
I do have a config/craftql.php file where I have stated:
So it should actually be allowed...
I really don't know where this could originate from...
Any hint would be very welcome...
Error logs from Server:
You can see every now and then there is a 503. 🤷♂️
... 🤔 could it be that the request times out?
All 503 errors have a number next to them:
26992
Is this the time for the request in milliseconds?The text was updated successfully, but these errors were encountered: