Skip to content
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

Error 503. The service is unavailable #547

Closed
sergey-akhalkov opened this issue Dec 18, 2017 · 16 comments
Closed

Error 503. The service is unavailable #547

sergey-akhalkov opened this issue Dec 18, 2017 · 16 comments

Comments

@sergey-akhalkov
Copy link
Contributor

sergey-akhalkov commented Dec 18, 2017

Hey guys, we are really sorry that we still have such kind of problem that affects you sometimes, the solution isn't very simple, so we are working on it and believe that the issue will be resolved in the near future.

Let's use this issue as a common place where we can share any news with you and you'll report us if the issue still has place for you even after architecture/hosting changes from our side (we'll let you know if any).

Relates to:

  1. Error 503. The service is unavailable #511
  2. updateCheck call stuck and returns 503 react-native-code-push#1028
  3. Error Status 503, Service unavailable on checking for update cordova-plugin-code-push#330

Thanks

@sergey-akhalkov
Copy link
Contributor Author

Currently, we have the following plan:

  1. As you know, CodePush now is a part of AppCenter, it means that its backend is also moved to the common AppCenter backend.
  2. Due to the point above - Acquisition SDK will also point to the new AppCenter service which will be more reliable/flexible and should handle much more update requests per second, so finally 503 issue should gone away.
  3. The plan is to accomplish the changes above in the first decade of the upcoming year.
  4. So currently we are working on moving CodePush native SDKs to the AppCenter SDKs, it means that they'll be adapted to the new infrastructure, another words it will point to the new AppCenter API/Backend (exactly what I've talked above)

Please let me know if you have any questions regarding this.

@Wallethub
Copy link

Hello, we've been experiencing this issue again starting at 2:13 PM UTC. Where there any changes or maintenance activity on your end?

@buptkang
Copy link
Contributor

Hey, we checked the log, there is one internal storage connection failure for your request. Can you make another updateCheck call, see if it works now?

@Wallethub
Copy link

Its still coming, it seems only on the android side.

@Wallethub
Copy link

Guys, any updates here? It seems to come continuously for the majority of the users on the android side.

@itoys
Copy link
Contributor

itoys commented Apr 23, 2018

Hi @Wallethub
Could you provide logs and/or another info that would be helpful for us?

Thanks!

@Wallethub
Copy link

It's happening only for Android. We disabled the updates for a few days then enabled them back and still gave the error. Only about 40 installs made during that time.
Now as for logs, all we have is a sentry that is thrown when "sync" method gives: status == window.top.SyncStatus.ERROR. We call this method in the success function of "checkForUpdate" method.

A thing to mention is that the last update that worked was that of a new build. We were preparing a new package (1.4) and we needed to push a change to the current released package (1.3). This happened after the code of 1.4 has been merged into the main branch to prepare for release. So initially we decided to not release updates since they would be made against the new package, against 1.4 code. And this new package has an additional native plugin compared to the current one. But then we ran some tests and the updates worked on our internal 1.3 package and even with the release version. No issues, no crashes. So we pushed this to live and while things still work fine on our devices, we keep getting the error for almost all android users.
And another thing to know is that the new plugin was for ios only and the ios users have no problem.

@itoys
Copy link
Contributor

itoys commented Apr 28, 2018

@Wallethub
As I remember, you have Cordova app, could you add syncErrback to sync call, please?
Error from syncErrback should give to us additional info.
API reference

codePush.sync(syncCallback?, syncOptions?, downloadProgress?, syncErrback?);

@Wallethub
Copy link

Wallethub commented Apr 30, 2018

That seems to be a new feature. It's not in the version of the app that is currently released, but good to know about it to include it in the next release.

@Wallethub
Copy link

Any workarounds to make the current updates work without releasing a new package with the updated plugin?

@itoys
Copy link
Contributor

itoys commented May 3, 2018

Sorry, but we are still not realise what a reason of a problem you've faced. We haven't seen any errors on our logs, so any logs from your side would be very helpful.

Thanks!

@alexandergoncharov-zz
Copy link
Contributor

Hi all,

I'm going to close this issue for now as we haven't heard about new incidents with this issue in a while.
Please feel free to reopen it if you have any questions or you face this issue again.

@komaldeep
Copy link

Hey i am receiving 503 ... and 500 sometimes for for timeout

@LeoLeBras
Copy link

It's been the same here for two days!

@Grohden
Copy link

Grohden commented Jan 15, 2020

This service is really random, look at this:
image

It's totally random... at least on a curl call.
But look at this:
image

On the browser it's almost deterministic, on firefox it doesn't work at all (sometimes not even a response is obtained), and using chrome on the same machine, it works.
I would believe in a rate limit if it wasn't for the browser part.

The URL used is this one:
https://codepush.azurewebsites.net/updateCheck?deploymentKey=[PROBABLY_SECRET]&appVersion=1.8&packageHash=[PROBABLY_SECRET]&isCompanion=&label=&clientUniqueId=[PROBABLY_SECRET]

And I got it from a sentry error report due our outdated app version usage..

Could this issue please be reopened? @alexandergoncharov

@andrei-m-code
Copy link

Having this issue right now..

@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants