Skip to content

FormatException: Unexpected character (at character 1) #614

@otopba

Description

@otopba

Describe the bug
If the Edge Function completes its execution due to a timeout, we receive a JSON parsing error. Although, it would be more logical to receive a timeout error

To Reproduce

  1. Write a function that will run for a very long time.
  2. Call this function in a Flutter application.
  3. Expect an error.

Expected behavior
It would be correct to receive a timeout error

Screenshots
Screenshot 2023-09-04 at 11 10 36
Screenshot 2023-09-04 at 11 10 50

Version (please complete the following information):
├── supabase_flutter 1.10.14
│ ├── supabase 1.11.1
│ │ ├── functions_client 1.3.2
│ │ ├── gotrue 1.11.2
│ │ ├── postgrest 1.5.0
│ │ ├── realtime_client 1.2.1
│ │ ├── storage_client 1.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfunctionsThis issue or pull request is related to functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions