Closed grant-vs closed 1 year ago
Hi!
I know you solved this (closed the issue) but just for my curiosity what was the reason for this? What (local) browser did try use?
On Aug 8, 2022, at 18:52, grant-vs @.**@.>> wrote:
When using the TouchTerrain_jupyter_for_starters notebook, following the URL to authenticate Earth Engine and get the verification code results in a 400 error with this message:
Error 400: invalid_request The version of the app you're using doesn't include the latest security features to keep you protected. Please make sure to download from a trusted source and update to the latest, most secure version.
Is there anything I can do to solve this issue?
— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/3, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5PVROHWOAEQGTZ37W3VYGMSBANCNFSM5563M4AQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu
Hi Chris. I should've explained how I resolved it, sorry about that.
I think it was just a mental blank on my part. I tried on multiple browsers and faced the same error, so I went through the standard notebook, not the starter one, and that has a bit more info in there about ee. In that notebook it explains signing up for ee, which I did. Now running both the standard and starter notebook work fine.
So no issue with the program, just needed to setup the account before running. Must've been a long day, should've worked that out before opening an issue!
Cheers, Grant
Grant,
This is actually not your fault! The requirement to sign up for a ee account is actually very new. A couple of years back, this was required and this is what it’s mentioned in the older notebook. But it then used to be that one would only have to have a google account, which is reflected in the starter notebook, which I wrote more recently. So this has to be updated. As you’ve just done this, can I ask how it went so I can describe it better in my starter notebook?
Cheers
Chris
On Aug 14, 2022, at 00:49, grant-vs @.**@.>> wrote:
Hi Chris. I should've explained how I resolved it, sorry about that.
I think it was just a mental blank on my part. I tried on multiple browsers and faced the same error, so I went through the standard notebook, not the starter one, and that has a bit more info in there about ee. In that notebook it explains signing up for ee, which I did. Now running both the standard and starter notebook work fine.
So no issue with the program, just needed to setup the account before running. Must've been a long day, should've worked that out before opening an issue!
Cheers, Grant
— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/3#issuecomment-1214290601, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5LD6ZNWMWOHKSIMX6TVZCCHPANCNFSM5563M4AQ. You are receiving this because you commented.Message ID: @.***>
Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu
Yeah no worries.
I went to https://signup.earthengine.google.com/ and it presented a sign up form. The form requested this info as required:
It said that not all applications are accepted and that the acceptance email could take up to one week, but I received an email immediately. I own a company which I used to register. But for the sake of testing this process, I signed up with my personal google account also. I put 'Personal' as the organization, and 'No Affiliation' for the institution type. This account was also approved immediately.
Once I had created the account, I manually set up a project in the Earth Engine dashboard to use for my touch terrain project. This doesn't need to be done through ee though. I tested using the link in your notebook (code.earthengine.google.com) and it's easy to get the token that way. Just need to be signed in to the correct google account before using that link. I tested on Edge, Chrome, and Firefox and they all worked for me.
Hope that's enough info for you.
Cheers, Grant
Grant,
Would you be willing to test something for me? I’ve managed to make the Jupiter notebook to run in a binder, which mostly works (building/installing take about 10 mins and sometimes hangs for no reason). I’ve heavily edited the notebook for it and would like another set up eyes to check if I left out something vital.
There’s a badge at the very bottom of the ReaMe (which it will move to the top once it all works) but the URL for the binder is:
This notebook also references a guide for Earth Engine authentication with screenshots that is hopefully simple to use.
Cheers
Chris
On Aug 15, 2022, at 05:09, grant-vs @.**@.>> wrote:
Yeah no worries.
I went to https://signup.earthengine.google.com/ and it presented a sign up form. The form requested this info as required:
It said that not all applications are accepted and that the acceptance email could take up to one week, but I received an email immediately. I own a company which I used to register. But for the sake of testing this process, I signed up with my personal google account also. I put 'Personal' as the organization, and 'No Affiliation' for the institution type. This account was also approved immediately.
Once I had created the account, I manually set up a project in the Earth Engine dashboard to use for my touch terrain project. This doesn't need to be done through ee though. I tested using the link in your notebook (code.earthengine.google.comhttp://code.earthengine.google.com) and it's easy to get the token that way. Just need to be signed in to the correct google account before using that link. I tested on Edge, Chrome, and Firefox and they all worked for me.
Hope that's enough info for you.
Cheers, Grant
— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/3#issuecomment-1214849580, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5NBHHUAULOZ6UWMGGTVZIJNLANCNFSM5563M4AQ. You are receiving this because you commented.Message ID: @.***>
Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu
Acknowledging that this issue is closed, I'm still having an issue with the Authorization Error (Error 400: invalid_request) when attempting to run ee.Authenticate(). The cell runs and generates a URL, but when clicking it I receive the above error. I have requested and received an Earth Engine account with google, and have opened a test project and set up a charge account. Hoping there is something simple that I missed along the way!
I tried to authenticate using the for_starters, _binder, _colab and _standalone versions from the notebook.
Hi!
Back up a bit. So you are running a jupyter notebook in what environment? Locally or on colab? I would recommend running the -colab version as that’s the one I’ve worked on most recently and colab is just way faster to get active than binder (which I personally don’y use anymore.) And I do admit that I have to update the section in the ReadMe that talks about how to get standalone running!
Also I need to know more about what goes wrong. I assume you are following this: https://github.com/ChHarding/TouchTerrain_for_CAGEO/blob/master/EarthEngine_authentication_guide.md ? Are you able to go through all the cloud project setup steps and finally generate an authorization code (token)?
Cheers
Chris
On Nov 15, 2022, at 23:44, Bg983HjPD992 @.**@.>> wrote:
Acknowledging that this issue is closed, I'm still having an issue with the Authorization Error (Error 400: invalid_request) when attempting to run ee.Authenticate(). The cell runs and generates a URL, but when clicking it I receive the above error. I have requested and received an Earth Engine account with google, and have opened a test project and set up a charge account. Hoping there is something simple that I missed along the way!
I tried to authenticate using the for_starters, _binder, _colab and _standalone versions from the notebook.
— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/3#issuecomment-1316396463, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5LHBFGDK6MHGB2KJ7TWIRYE3ANCNFSM5563M4AQ. You are receiving this because you commented.Message ID: @.***>
Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu
Hi, professor. Per your recommendation I went into the colab notebook (I neglected to open it in colab previously, and was running it locally – obviously that didn’t work). I was able to get an authentication code, but received a “KeyError: 'client_id'” error when I did so. Full text of output:
To authorize access needed by Earth Engine, open the following URL in a web browser and follow the instructions. If the web browser does not start automatically, please manually browse the URL below.
https://code.earthengine.google.com/client-auth?scopes=https%3A//www.googleapis.com/auth/earthengine%20https%3A//www.googleapis.com/auth/devstorage.full_control&request_id=uMR_vwKWerAxuStFr8KS1YG1UoibJ83pRaIfSgk_h3I&tc=K2uC3e6WDFbLedfAZMfftIytRWtmxrmax2b_s5b8hO8&cc=HexTfp5xNU1EbHk4aj55GCUr4HmV4bHvDH-Rw-qdmpo
RefreshError Traceback (most recent call last)
Well, that’s not something that ever happened to me, sorry! My only guess would be that there’s a mismatch of google accounts, i.e. maybe the user that’s running the colab notebook is different from the user that you have when you get your authentication code(???) Is there a chance that this is happening?
On Nov 19, 2022, at 01:26, Bg983HjPD992 @.**@.>> wrote:
Hi, professor. Per your recommendation I went into the colab notebook (I neglected to open it in colab previously, and was running it locally – obviously that didn’t work). I was able to get an authentication code, but received a “KeyError: 'client_id'” error when I did so. Full text of output:
To authorize access needed by Earth Engine, open the following URL in a web browser and follow the instructions. If the web browser does not start automatically, please manually browse the URL below.
RefreshError Traceback (most recent call last)
When using the TouchTerrain_jupyter_for_starters notebook, following the URL to authenticate Earth Engine and get the verification code results in a 400 error with this message:
Error 400: invalid_request The version of the app you're using doesn't include the latest security features to keep you protected. Please make sure to download from a trusted source and update to the latest, most secure version.
Is there anything I can do to solve this issue?