Skip to content

CLI storage lifecycle set returns INTERNAL error #472

@poyrazK

Description

@poyrazK

Why is this an issue?

Running cloud storage lifecycle set test-bucket --days 60 returns a generic "An unexpected error occurred" instead of a meaningful error message.

What is causing it?

The API returns an INTERNAL error code without context.

How can it be solved?

Either fix the underlying issue or return a more descriptive error message.

Category

  • Small
  • Medium
  • Large

Severity

  • Low
  • Medium
  • High
  • Critical

Steps to reproduce

cloud storage lifecycle set test-bucket --days 60
# Error: api error: {"error":{"type":"INTERNAL","message":"failed to create lifecycle rule","code":"INTERNAL"},"meta":{...}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions