qri-io / 2017-frontend

qri electron & web frontend
https://qri.io
MIT License
23 stars 7 forks source link

error when creating new dataset #405

Closed dustmop closed 5 years ago

dustmop commented 5 years ago

Running with yarn run electron:start, trying to create a new dataset "me/new_repo" with the body:

[
  "apple","banana","cherry"
]

clicking "dry run" or "new" displaying the message:

Error:
repo: not found

In developer tools, Request Payload shows:

------WebKitFormBoundaryJOQ86Cq5o6g24iNg
Content-Disposition: form-data; name="file"; filename="dataset.json"
Content-Type: text/plain

------WebKitFormBoundaryJOQ86Cq5o6g24iNg
Content-Disposition: form-data; name="body"; filename="body"
Content-Type: text/plain

------WebKitFormBoundaryJOQ86Cq5o6g24iNg
Content-Disposition: form-data; name="name"

me/new_repo
------WebKitFormBoundaryJOQ86Cq5o6g24iNg
Content-Disposition: form-data; name="peername"

me
------WebKitFormBoundaryJOQ86Cq5o6g24iNg
Content-Disposition: form-data; name="dry_run"

true
------WebKitFormBoundaryJOQ86Cq5o6g24iNg
Content-Disposition: form-data; name="return_body"

true
------WebKitFormBoundaryJOQ86Cq5o6g24iNg--

Digging into whether this is a frontend or backend issue...

dustmop commented 5 years ago

Tried to set the new repo name to just "new_repo", without "me/". Same error happens but the Request Payload is now:

------WebKitFormBoundaryr7HiW5xrrT94iMGC
Content-Disposition: form-data; name="file"; filename="dataset.json"
Content-Type: text/plain

------WebKitFormBoundaryr7HiW5xrrT94iMGC
Content-Disposition: form-data; name="body"; filename="body"
Content-Type: text/plain

------WebKitFormBoundaryr7HiW5xrrT94iMGC
Content-Disposition: form-data; name="name"

new_repo
------WebKitFormBoundaryr7HiW5xrrT94iMGC
Content-Disposition: form-data; name="peername"

me
------WebKitFormBoundaryr7HiW5xrrT94iMGC
Content-Disposition: form-data; name="dry_run"

true
------WebKitFormBoundaryr7HiW5xrrT94iMGC
Content-Disposition: form-data; name="return_body"

true
------WebKitFormBoundaryr7HiW5xrrT94iMGC--
dustmop commented 5 years ago

This was an issue with the electron:start command, which for some reason is running a very old version of the code, which is hitting the now removed /new endpoint. Running with web:dev instead works fine.