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

Check if directory size exceeds upload limits for the chosen pinning services before trying to upload #54

Open
agentofuser opened this issue Jun 15, 2019 · 3 comments

Comments

@agentofuser
Copy link
Collaborator

ref #52

@ekollof
Copy link

ekollof commented Jun 18, 2019

$ ipd -p pinata
ℹ 🤔 No path argument specified. Looking for common ones…
✔ 📂 Found local public directory. Deploying that.
✔ 🚚 public weighs 133.3 MiB.
⠸ 📠 Uploading and pinning via https to pinata.cloud…(node:16473) UnhandledPromiseRejectionWarning: Error: Request failed with status code 400
at createError (/usr/local/share/.config/yarn/global/node_modules/axios/lib/core/createError.js:16:15)
at settle (/usr/local/share/.config/yarn/global/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/usr/local/share/.config/yarn/global/node_modules/axios/lib/adapters/http.js:237:11)
at IncomingMessage.emit (events.js:198:15)
at endReadableNT (_stream_readable.js:1139:12)
at processTicksAndRejections (internal/process/task_queues.js:81:17)
(node:16473) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:16473) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the
future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
⠋ 📠 Uploading and pinning via https to pinata.cloud…^C

(keeps retrying)

@agentofuser
Copy link
Collaborator Author

Odd that it didn't capture the error to display it properly. Does trying with a small upload give the same error?

@ekollof
Copy link

ekollof commented Jun 18, 2019

Nope, that completes fine.

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

2 participants