Skip to content

401 Unauthorized when merging two submissions #42

@xFlaviews

Description

@xFlaviews

Bug

When trying to merge two submissions on viberank.app, the operation fails with a 401 Unauthorized error on the Supabase daily_breakdowns endpoint.

Steps to Reproduce

  1. Submit usage data via curl to /api/submit
  2. Submit a second time (after rate limit cooldown)
  3. Attempt to merge the two submissions on the website

Error

POST https://byenoioeusfrpnphqpzi.supabase.co/rest/v1/daily_breakdowns?columns=... 401 (Unauthorized)

Additionally, there are multiple GoTrueClient warnings:

Multiple GoTrueClient instances detected in the same browser context.

Expected Behavior

Merging two submissions should succeed without authorization errors.

Environment

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