-
Notifications
You must be signed in to change notification settings - Fork 129
Data import from CLI does not work in 0.11.4 #451
Comments
Could you please provide a minimal example that reproduces this error? 🙂 It should contain
Thanks! |
Hey thank you for the fast answer! 😃 here's the example! I'm sorry, i was invoking the command from another directory. The error is resolved, if invoked from the project folder. But even if i get no error message now, no data gets imported, if i zip the files manually using any zip tool. You can check this out: https://github.com/nickluger/graphcool-manual-zip-error If i The file If you |
I'm currently using this for seeding. I have a seed directory checked out in source control and would like to seed the database using something like |
I get this error when running
|
I have the same issue with
|
Also get this error
Before getting this error I also get warnings regarding
something to do with the |
Hey @WirthAware, @Melv, when you unzip the folder and import the unzipped folder, does it work then? |
Wrote a quick to get this to work.. (see graphcool-cli-core/dist/commands/import)
But now I am getting another error |
I think I found a workaround fix: In : graphcool/node_modules/graphcool-cli-core/dist/commands/import/Importer.js Replace the node-unzip library with this one: https://github.com/mhr3/unzip-stream (after installing it as a dependency).
I was able to import 20k sample nodes on mac-os, but will do more testing. This fixed my "Error: invalid signature: 0x80014" errors. |
I'm also getting this error while trying to import the shared cluster nodes into my local. cli-engine:plugins:manager Tried @niwaa unzip-stream workaround but it didnt fix it for me. I get the error with both the untouched exported zip and also if I re-zip the folder. |
Sunday Jan 07, 2018 at 14:33 GMT
Originally opened as https://github.com/graphcool/prisma/issues/1535
Current behavior
gcf import --source ./seed.zip
leads to:Reproduction
I'm using
graphcool-framework/0.11.4
. It's installed globally. This error happens for any zip file. Even if i put a movie in it, so i assume its not a problem with the data...Expected behavior?
It should import data correctly.
The text was updated successfully, but these errors were encountered: