Skip to content

Error using the -Fc flag on the v1alpha1/pg_dump endpoint #5671

Open
@ptim

Description

@ptim

Hi!

Is it possible to use the v1alpha1/pg_dump endpoint with using the -Fc flag?

I get the expected response using the options in the example at:
https://hasura.io/docs/1.0/graphql/manual/api-reference/pgdump.html

Support via intercom said:

Could you raise an issue in Github, ideally we expect any option to work when provided in the opts argument.

The following call:

curl --request POST \
  --url https://example.com/v1alpha1/pg_dump \
  --header 'content-type: application/json' \
  --header 'x-hasura-admin-secret:MYSECRET' \
  --data '{
    "opts": [
        "-Fc",
        "--schema",
        "core"
    ],
    "clean_output": false
}'

…returns:

{
  "path": "$",
  "error": "internal exception while executing pg_dump",
  "code": "unexpected"
}

Any tips?

Cheers, ptim

Metadata

Metadata

Assignees

Labels

a/apik/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions