0

I am trying to deploy my Streamlit app using streamlit.io cloud.
On the “Deploy an app” page, when I enter my GitHub repo, branch and main file it shows an Unexpected error under the “App URL” field.

Even if I leave the App URL empty (it says optional), I still get the same error and the Deploy button is disabled.

I tried changing the repo name, using different URLs and different branches but the error still happens.

Here is a screenshot of the error:

As you can see in this pic

Why does Streamlit Cloud show “Unexpected error” in the App URL field and how can I fix this?

3
  • Try checking the console or network tab in the dev tools for any errors Commented 4 hours ago
  • I try everything but it didn't allow me to continue Commented 4 hours ago
  • Press F12 -> Click Console. Try again and see if there are any errors being displayed Commented 4 hours ago

1 Answer 1

0

I ran into exactly the same issue recently. Every time I tried to deploy an app on Streamlit Cloud, the “App URL” field showed “Unexpected error”, even when I left the field empty. Repo was correct, branch was correct, main file was correct and still the Deploy button stayed disabled.

After several tests, here’s what I found and what actually solved it:

The error was not caused by my code or my repo

I tried deploying a minimal “hello world” app in a clean public repository and the same error happened. So the problem was not related to Python, Streamlit version, requirements, or file structure.

The issue was related to my Streamlit Cloud account

It turns out that my account had been automatically flagged by Streamlit’s system (likely for “suspicious” or unusual usage). When this happens, the platform silently blocks new deployments including validating the App URL and the UI only shows “Unexpected error”.

What fixed it

I contacted Streamlit/Snowflake support and asked them to review/unblock my account.
After they removed the flag, deployment worked immediately and the “Unexpected error” disappeared.

What you can check before contacting support

  • Make sure your GitHub repo is public.

  • Try deploying a fresh minimal repo (just a simple streamlit run script).
    If even that fails with the same error, your account is very likely flagged.

Conclusion

If everything in your repo looks correct and the error happens even with simple apps, the fastest fix is to open a support ticket and ask them to review your Streamlit Cloud account. That’s what solved it in my case.

New contributor
ezequiel is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.