supabase / supabase-flutter

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
https://supabase.com/
MIT License
656 stars 154 forks source link

Simple database call returns "Invalid media type: expected no more input" error #913

Closed dgshin37 closed 1 month ago

dgshin37 commented 1 month ago

Describe the bug Attempting to make a database call results in this error:

Error on line 1, column 32: Invalid media type: expected no more input.
  ╷
1 │ application/json; charset=utf-8,application/vnd.pgrst.object+json; charset=utf-8
  │                                ^
  ╵

To Reproduce Steps to reproduce the behavior: 1.

Supabase.instance.client
    .from('user_profiles')
    .select()
    .eq('id', userId)
    .single();

Expected behavior Return a result from the database

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

Version (please complete the following information): On Linux/macOS Please run dart pub deps | grep -E "supabase|gotrue|postgrest|storage_client|realtime_client|functions_client" in your project directory and paste the output here.

└── supabase_flutter 2.5.2
    ├── supabase 2.1.2
    │   ├── functions_client 2.1.0
    │   ├── gotrue 2.6.1
    │   ├── postgrest 2.1.1
    │   ├── realtime_client 2.0.4
    │   ├── storage_client 2.0.1

On Windows Please run dart pub deps | findstr "supabase gotrue postgrest storage_client realtime_client functions_client" in your project directory and paste the output here.

Additional context Add any other context about the problem here.