Status stuck in Uploading

Richard Brynteson 35 Reputation points MVP
2023-09-06T20:16:26.8133333+00:00

I used the swa cli to upload a website. I used this command:

swa deploy --deployment-token ...token...here... --env Production

The command finishes fine. Says it:

User's image

But it's always stuck in Uploading...

User's image

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
968 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Lucero del Alba 11 Reputation points
    2024-06-15T18:55:37.29+00:00

    In my case, it was a 2 y/o "known bug", which can be circumvented by deploying from outside the root directory, as explained here: https://github.com/Azure/static-web-apps-cli/issues/591#issuecomment-1283494661

    2 people found this answer helpful.
    0 comments No comments

  2. ajkuma 26,721 Reputation points Microsoft Employee
    2023-09-08T18:54:23.6433333+00:00

    Following-up on this, could you please confirm what version of the CLI are you using? The latest version is 1.1.4. If the version you are using is much older, please install the latest version. Even though the command completes successfully, there might be a difference in how a deprecated version versus current version works as far as sending the upload instructions to our backend prover.

    If you haven't done these already, please check the version by running the following command: swa --version

    How large is the site you are uploading? If the site is relatively large, you may test with a small site to see if that makes a difference in the success.

    If the issue still persists, we wish to engage with you offline for a much closer look, please send an email with subject line “Attn:Ajay” to AzCommunity[at]Microsoft[dot]com with the following details, I will follow-up with you. 

    1.     Referencing this thread,

    2.     Azure subscription ID,

    3.     Azure resource name and the time of issue occurrence.


  3. José Salgueiro 11 Reputation points
    2024-03-21T12:38:48.8166667+00:00

    I finally understood the problem. The max size for the static app is 500MB and the deploy zip file was already 482MB.

    I reduced the app size and it worked.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.