WARNING:googleapiclient.http:Encountered 403 Forbidden with reason "PERMISSION_DENIED"

I am using google earth API through google colab.

Until a few days ago, I had been able to run the following code:


#Import earth engine
import ee

Trigger the authentication flow.

ee.Authenticate()

Initialize the library.

ee.Initialize()


However, these days, when I run the code, the following message is shown.


WARNING:googleapiclient.http:Encountered 403 Forbidden with reason “PERMISSION_DENIED”


What happened?
What should I do?

1 Like

May I ask if you solved this error? I got this error recently, how should I fix this?

1 Like

I have not fixed the problem yet.

I have this problem since yesterday, I even tried with Jupiter notebook, but it was still the same problem.

1 Like

Hi, Instead of ee.Initialize() use ee.Initialize(project=‘project_id’)