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

Fail to deploy on Streamlit #94

Closed
KHwong12 opened this issue Nov 11, 2022 · 2 comments
Closed

Fail to deploy on Streamlit #94

KHwong12 opened this issue Nov 11, 2022 · 2 comments

Comments

@KHwong12
Copy link

Hi Dr. Wu, first thing first, many thanks for creating this fascinating web app.

I followed your blog, created a fork of this repo and tried to deploy a copy of the app to Streamlit. I followed the steps and created a token and added it as an environment variable.

However, the deploy log still requires me to authenticate GEE, and the error Earth Engine client library not initialized. appears when I try to upload the study boundary.

Following are the screenshots of the secret token configuration and the deploy log. Is there something I did wrong when configuring the app/authenticating GEE?


Setting token as environment variable

secret-token

Error when adding study boundary

upload-error.mp4

Deploy log of error

deploy-log-require-auth

@giswqs
Copy link
Member

giswqs commented Nov 18, 2022

The EARTHENGINE_TOKEN should look like this. Use ee.Authenticate() on your computer to generate a new token if needed.

image

@KHwong12
Copy link
Author

Thanks! The app works perfectly now. Originally I thought the EARTHENGINE_TOKEN only includes the refresh_token part of the JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants