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

Linking CoastSat to GEE server [HTTP error 404] #41

Closed
Alain705 opened this issue Oct 31, 2019 · 3 comments
Closed

Linking CoastSat to GEE server [HTTP error 404] #41

Alain705 opened this issue Oct 31, 2019 · 3 comments
Labels
installation Issue with the installation of the coastsat package

Comments

@Alain705
Copy link

When running the example at the third part or the code to retrieve satellite images from GEE. "metadata = SDS_download.retrieve_images(inputs)" it return an error.

The error code returned is:

~\AppData\Local\Continuum\anaconda3\envs\coastsat\lib\site-packages\ee\data.py in send_(path, params, opt_method, opt_raw)
1194 # error above rather than this generic one.
1195 raise ee_exception.EEException(
-> 1196 'Server returned HTTP code: %d' % response.status)
1197
1198 # Now known not to be an error response...

EEException: Server returned HTTP code: 404

Any help will be greatly appreciated.
Thank you

@kvos
Copy link
Owner

kvos commented Nov 1, 2019

Hi @Alain705 , I have never seen this error before....can you try the following on the Anaconda Prompt:

  • conda activate coastsat
  • python
  • import ee
  • ee.Initialize()

This is to check that you are correctly linked to the GEE server. Let me know.
Also which OS are you on? Are you connected to internet without firewalls? HTTP error 404 is usually that it cannot reach a website. If still not working check out what I proposed as a solution for issue #40

@oscarchic
Copy link

Hi,

I have the same problem in Mojave 10.14.6.
here you have the log:

anscarius:CoastSat oscar$ conda activate coastsat
(coastsat) anscarius:CoastSat oscar$ python
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.

import ee
ee.Initialize()
Traceback (most recent call last):
File "", line 1, in
File "/Users/oscar/miniconda3/envs/coastsat/lib/python3.7/site-packages/ee/init.py", line 105, in Initialize
ApiFunction.initialize()
File "/Users/oscar/miniconda3/envs/coastsat/lib/python3.7/site-packages/ee/apifunction.py", line 152, in initialize
signatures = data.getAlgorithms()
File "/Users/oscar/miniconda3/envs/coastsat/lib/python3.7/site-packages/ee/data.py", line 650, in getAlgorithms
return send_('/algorithms', {}, 'GET')
File "/Users/oscar/miniconda3/envs/coastsat/lib/python3.7/site-packages/ee/data.py", line 1196, in send_
'Server returned HTTP code: %d' % response.status)
ee.ee_exception.EEException: Server returned HTTP code: 404

@kvos
Copy link
Owner

kvos commented Nov 13, 2019

ok this issue was solved in issue #33.

The new procedure is that you need to directly request access to to Google Earth Engine at https://signup.earthengine.google.com/ and wait ~1day for approval before running the earthengine authenticate command

@kvos kvos closed this as completed Dec 2, 2019
@kvos kvos changed the title Retrieve satellite images from GEE Linking CoastSat to GEE server [HTTP error 404] Dec 18, 2019
@kvos kvos added the installation Issue with the installation of the coastsat package label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Issue with the installation of the coastsat package
Projects
None yet
Development

No branches or pull requests

3 participants