Skip to content

[BUG] Storage upload file exception #1258

@MichalNemec

Description

@MichalNemec

Describe the bug

I/flutter ( 5519): FINEST: 2025-10-30 19:35:32.623007: Request: attempt: 1 POST https://***/storage/v1/object/avatar/b5710545-99c2-4736-983c-d3346f8b1bb2.png {X-Client-Info: supabase-flutter/2.9.1, X-Supabase-Client-Platform: android, X-Supabase-Client-Platform-Version: sdk_gphone64_arm64-userdebug 14 UE1A.230829.036.A1 11228894 dev-keys}
I/flutter ( 5519): FINE: 2025-10-30 19:35:32.656509: StorageException for https://***/storage/v1/object/avatar/b5710545-99c2-4736-983c-d3346f8b1bb2.png
I/flutter ( 5519): StorageException(message: You cannot consume this service, statusCode: 403, error: null)

To Reproduce
Steps to reproduce the behavior:

  1. Self host supabase
  2. try to upload a file into a bucket (private bucket, RLS enabled for insert + select)

Expected behavior
no error, same code works on cloud version

Screenshots
If applicable, add screenshots to help explain your problem.

Version (please complete the following information):

├── supabase_flutter 2.10.3
│   ├── supabase 2.10.0
│   │   ├── functions_client 2.5.0
│   │   ├── gotrue 2.16.0
│   │   ├── postgrest 2.5.0
│   │   ├── realtime_client 2.6.0
│   │   ├── storage_client 2.4.1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions