Skip to content

New fauna-shell only supports queries up to ~100KB #589

@findgriffin

Description

@findgriffin

I think fauna supports query sizes up to several megabytes, so this is a shell/driver bug:

davidgriffin@skadi flotsam % fauna --version
4.0.0-beta
davidgriffin@skadi flotsam % cat big_97k_query.fql| fauna query --profile DevDemoDB -
{
  ...
}
davidgriffin@skadi flotsam % cat big_102k_query.fql| fauna query --profile DevDemoDB -
 ... help text ...

An unexpected error occurred...

EAGAIN: resource temporarily unavailable, read

If you believe this is a bug, please report this issue on GitHub: https://github.com/fauna/fauna-shell/issues

Running with --verbosity=9 the 102k query actually succeeds, but if I throw a 1MB file at it...

davidgriffin@skadi flotsam % cat big_1M_query.fql| fauna query --verbosity=9 --profile DevDemoDB -
... help text ...
An unexpected error occurred...

EAGAIN: resource temporarily unavailable, read

If you believe this is a bug, please report this issue on GitHub: https://github.com/fauna/fauna-shell/issues
[error]: EAGAIN: resource temporarily unavailable, read
    at readFileSync (node:fs:448:20)
    at resolveInput (/usr/local/lib/node_modules/fauna-shell/dist/cli.cjs:96814:12)
    at Object.queryCommand [as handler] (/usr/local/lib/node_modules/fauna-shell/dist/cli.cjs:96824:22)
    at /usr/local/lib/node_modules/fauna-shell/dist/cli.cjs:80016:46
    at maybeAsyncResult (/usr/local/lib/node_modules/fauna-shell/dist/cli.cjs:79818:83)
    at CommandInstance.handleValidationAndGetResult (/usr/local/lib/node_modules/fauna-shell/dist/cli.cjs:80015:19)
    at CommandInstance.applyMiddlewareAndGetResult (/usr/local/lib/node_modules/fauna-shell/dist/cli.cjs:80046:242)
    at CommandInstance.runCommand (/usr/local/lib/node_modules/fauna-shell/dist/cli.cjs:79953:212)
    at [runYargsParserAndExecuteCommands] (/usr/local/lib/node_modules/fauna-shell/dist/cli.cjs:82735:91)
    at YargsInstance.parse (/usr/local/lib/node_modules/fauna-shell/dist/cli.cjs:82072:59)

I'm loving the new CLI so keep up the good work!

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