Skip to content

Error on sf_as_ee despite successful authentication #387

@giacfalk

Description

@giacfalk

Hi,

The following code works successfully (masking with XXX for privacy):

library(rgee)
email = "XXX"
ee_Initialize(email, drive=T, gcs=T, project = "ee-giacomofalchetta")

yielding:

── rgee 1.1.5 ───────────────────────────────────────────────────────────────────────────────────────── earthengine-api 0.1.378 ── 
 ✔ user: XXX
 ✔ Google Drive credentials:Auto-refreshing stale OAuth token.
 ✔ Google Drive credentials:  FOUND
 ✔ GCS credentials:  FOUND
 ✔ Initializing Google Earth Engine:  DONE!
 ✔ Earth Engine account: projects/ee-giacomofalchetta/assets/cities_selected 

Yet, since some time, when I then run:

sf_as_ee(output_items[[i]], via="gcs_to_asset", bucket = "accessibility_jack", assetId=paste0("users/giacomofalchetta/cities_sampled_points_new_", i, ".shp"), overwrite = T, monitoring=F)

I get

1. Converting sf object to a compressed ZIP shapefile ... saving in /tmp
2. From local to GCS
ℹ 2025-03-28 11:58:11 > File size detected as  8.1 Mb
ℹ 2025-03-28 11:58:11 > Found resumeable upload URL:  https://www.googleapis.com/upload/storage/v1/b/accessibility_jack/o/?uploadType=resumable&name=file23b44959435f.zip&upload_id=AKDAyIs9CmSGkWBwRlSlUFqR7FYof3Q2uUV3X6bf_hLcHNwDuLWcAVwlcLR9mZvAwyXJr23OBG_zFQl1M6Z6Zjh98Hhtdo00ugaPdVNRUGsOv4w
3. Creating the manifest
4. From GCS to Earth Engine
Running the OS command: earthengine upload table --manifest C:/Users/FALCHE~1/AppData/Local/Temp/RtmpS6TlYe/file23b42a197cfb_manifest.json
Not signed up for Earth Engine or project is not registered. Visit https://developers.google.com/earth-engine/guides/access


EarthEngine Object: FeatureCollection

Yet, it seems to my that my project "ee-giacomofalchetta" is indeed registered.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions