FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
98 stars 17 forks source link

Superbes uplod media 403 error {"statusCode":"403","error":"Unauthorized","message":"invalid signature"} #2862

Closed JedarWex closed 1 week ago

JedarWex commented 2 weeks ago

Has your issue been reported?

Current Behavior

I've run into a problem that in the superbase database project that running with the 15.1.1.24 Postgres upgrade the image upload still works but in the projects running with the 15.1.1.44 Postgres upgrade to upload images I get this error: {"statusCode": "403", "error": "Unauthorized", "message": "invalid signature"}

Both have exactly the same baskets policy settings. API exposed schemas public, storege, graphql_public. There are no access problems with the tables.

Expected Behavior

The ppvo project is the working project, the ppp project is the one that doesn't work. These projects, created to detect the bug, only contain image uploads. It would be nice if the ppp project worked like the ppvo project.

Steps to Reproduce

  1. create a new page, 2. add image element, 3. add action to widget, 4. select action to upload media, 5. select superbase option

Reproducible from Blank

Bug Report Code (Required)

ITESiMj604lgodgF7rXqdcd6hQIgQ0QnU7gnlO1ucx42G5CqE7AiY86lU0NKQvWjfwtiHFf8uH0x/6HIiN/QVvk3EzubbJRe0JVAETzyYEWmWpTWCqmCTnJ5GphVGm6m58CF3CVNNfVoWUIc3DiXN63qNleeY8aSfxBlZ7vfcPo=

Context

Image upload does not work with the newer superbase databases.

Visual documentation

Not working project!! pppp

Working project!! ppvo

Additional Info

No response

Environment

- FlutterFlow version: 4.1.47+
- Platform: windos
- Browser name and version: crome 124.0.6367.119
- Operating system and version affected: windos

General

Relative to the time the changes were made, data was lost within

When following my steps to reproduce, data loss happens

JedarWex commented 2 weeks ago

I have also sent this reply to superbase:

Hi, This may be an issue with how the previous version of your client library manages updates to authentication. Could you try updating your supabase client?

Best, Brian Brennglass

Supabase Support Engineer

JedarWex commented 1 week ago

The issue was resolved in the superbase API settings for Exposed schemas not matching the order of the projects. I don't know why the order is important.