sentinel2-cloud-detector icon indicating copy to clipboard operation
sentinel2-cloud-detector copied to clipboard

[HELP] 503 Request Error; Invalid Client or Invalid Client Credentials

Open geodegarmo opened this issue 11 months ago • 3 comments

Question

Formulate your question in a clear and structured way, providing context and links to the resources raising issues.

NOTE: Remove any confidential information, such as Sentinel Hub credentials!

Additional context

Add any information that would help us supporting you.

Hello, Thank you for taking the time to read this help/support request. I have been having issues running the example sentinel2-cloud-detector notebook([https://github.com/sentinel-hub/sentinel2-cloud-detector/blob/master/examples/sentinel2-cloud-detector-example.ipynb]). I keep getting stuck on row 6 of the ipynb and receiving an error about Invalid Client or Invalid Client Credentials.

For this to work at least according to the documentation at SentinelHub. I only need to update my client_secret and client_id to access the Sentinelhub and download imagery. So, I updated the config file with (client_secret and client_id) to ping the API.

NOTE: I am able to get a session access_token using curl from the command line.

So, that said, I am uncertain as to why downloading imagery is not working for the Sentinelhub Process API.

Any help would be appreciated, maybe someone else has experienced this exact issue?

geodegarmo avatar Nov 25 '24 04:11 geodegarmo

Hi @geodegarmo

Can you try checking in the notebook (just before you try to execute the download) that your config.sh_client_id and config.sh_client_secret are set to the correct value (by printing and checking them)?

If they are, can you perhaps post what you get if you print(config) (this should automatically hide your access info, but you can omit that part for further safety, since you already checked that those are correct)

zigaLuksic avatar Nov 26 '24 07:11 zigaLuksic

image

Okay, so I did this, and I have posted the image for reference. BTW, I am still getting a 503 error when attempting to go to this site... image

geodegarmo avatar Nov 26 '24 15:11 geodegarmo

Can you perhaps run any of the examples in this notebook or do you get the same error?

zigaLuksic avatar Nov 27 '24 07:11 zigaLuksic