Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected EOF #145

Open
qruz-hq opened this issue Jan 15, 2024 · 0 comments
Open

Unexpected EOF #145

qruz-hq opened this issue Jan 15, 2024 · 0 comments

Comments

@qruz-hq
Copy link

qruz-hq commented Jan 15, 2024

Describe the bug

When running pnpx sanity dataset import ./dataset.ndjson i get the error

Error: unexpected EOF
    at onResponse (~/Library/pnpm/store/v3/tmp/dlx-1033/node_modules/.pnpm/@[email protected]/node_modules/@sanity/cli/lib/_chunks/loadEnv-Dw13xQgn.js:1215:13)
    at applyMiddleware (~/Library/pnpm/store/v3/tmp/dlx-1033/node_modules/.pnpm/[email protected]/node_modules/get-it/dist/index.cjs:59:13)
    at onResponse (~/Library/pnpm/store/v3/tmp/dlx-1033/node_modules/.pnpm/[email protected]/node_modules/get-it/dist/index.cjs:103:22)
    at ~/Library/pnpm/store/v3/tmp/dlx-1033/node_modules/.pnpm/[email protected]/node_modules/get-it/dist/index.cjs:130:55
    at callback (~/Library/pnpm/store/v3/tmp/dlx-1033/node_modules/.pnpm/[email protected]/node_modules/get-it/dist/index.cjs:485:46)
    at ~/Library/pnpm/store/v3/tmp/dlx-1033/node_modules/.pnpm/[email protected]/node_modules/get-it/dist/index.cjs:548:14
    at DestroyableTransform.<anonymous> (~/Library/pnpm/store/v3/tmp/dlx-1033/node_modules/.pnpm/[email protected]/node_modules/get-it/dist/index.cjs:261:13)
    at Object.onceWrapper (node:events:633:28)
    at DestroyableTransform.emit (node:events:531:35)
    at endReadableNT (~/Library/pnpm/store/v3/tmp/dlx-1033/node_modules/.pnpm/[email protected]/node_modules/readable-stream/lib/_stream_readable.js:1010:12)

When importing documents.

To Reproduce

Run pnpx sanity dataset import ./dataset.ndjson on a very long ndjson file

Expected behavior

A clear and concise description of what you expected to happen.

Which versions of Sanity are you using?

@sanity/cli (global) 3.24.1 (up to date)
@sanity/eslint-config-studio 3.0.1 (up to date)
@sanity/vision 3.24.1 (up to date)
sanity 3.24.1 (up to date)

What operating system are you using? macOS Ventura 13.4.6

Which versions of Node.js / npm are you running?

pnpm: 8.11.0 & npm@latest (tried both)
node: 21.4 & 18 (tried both)

Additional context

Might be related to the huge size of the dataset (more than 10k documents)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant