You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
meta <- gcs_metadata_object("test_folder/mtcars.csv",
metadata = list(id = '4D67djkdJL8'))
gcs_upload(mtcars,
name = "test_folder/mtcar.csv",
object_metadata = meta,
predefinedAcl = "bucketLevel")
Fails with error:
Error: API returned: Value 'test_folder%2Fmtcars.csv' in content does not agree with value 'test_folder/mtcars.csv'. This can happen when a value set through a parameter is inconsistent with a value set in the request.
Example:
Fails with error:
Error: API returned: Value 'test_folder%2Fmtcars.csv' in content does not agree with value 'test_folder/mtcars.csv'. This can happen when a value set through a parameter is inconsistent with a value set in the request.
Forward slash seems to be due to the URLencode:
object_name <- if(!is.null(object_name)) URLencode(object_name)
Workaround is to update object name directly before calling gcs_upload:
meta$name <- "test_folder/mtcars.csv"
But this may interfere with other reserved characters for url encoding.
The text was updated successfully, but these errors were encountered: