Skip to content

http_400 Invalid argument when gcs_list_objects() returns exactly 1000 rows #179

@lisovyk

Description

@lisovyk

Today my shiny app started returning such an error when executing gcs_list_objects('my-bucket'):

> gcs_list_objects('my-images')
ℹ 2023-07-31 17:40:24 > Request Status Code:  400
Error in `abort_http()`:
! http_400 Invalid argument.
Run `rlang::last_trace()` to see where the error occurred.
> rlang::last_trace()
<error/http_400>
Error in `abort_http()`:
! http_400 Invalid argument.
---
Backtrace:
    ▆
 1. └─googleCloudStorageR::gcs_list_objects("my-images")
 2.   └─googleAuthR::gar_api_page(...)
 3.     └─googleAuthR (local) f(pars_arguments = l)
 4.       └─googleAuthR:::doHttrRequest(...)
 5.         └─googleAuthR:::retryRequest(...)
 6.           └─googleAuthR:::abort_http(status_code, error)

I'm using the latest version – please, help me debug it. Is it a problem on my side or the google API has changed? I have not found information about API changes..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions