Skip to content

416 error for invalide range does not return error #1571

@bulestudio

Description

@bulestudio

Bug report

Describe the bug

When I query data in a range and the range is not within the boundaries it returns 416 in the Api Gateway, the issue is that there is not clear indicator of what error unless I extract the status and statusText. Is it the way to go at the place of going the error way?

When I log the error, I am getting: error: { message: '{"' }

I am on : "@supabase/supabase-js": "^2.58.0" with an hono.js backend. I believe the issue comes from the client.

How to reproduce, just a basic select with a range out of boundaries, I get status: 416 and statusText: Range Not Satisfiable - but the error is empty, is that normal? I saw issues from 2022 towards that in postgres-js.

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