You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
I tried using the script
node ./scripts/siaSkynet.js
in this repo https://github.com/ltfschoen/ethquad that I created to upload a build directory that contained a p5.js game that was ~16MB to Skynet. I basically built the game from my other repo https://github.com/ltfschoen/flappytips withyarn; yarn run build
, and then copied the contents of the build/ directory across and into the client/buid/ directory of https://github.com/ltfschoen/ethquad so my script would deploy it.But it generated error
Error: Request body larger than maxBodyLength limit
. See below for full log.I found this potential solution https://stackoverflow.com/questions/56868023/error-request-body-larger-than-maxbodylength-limit-when-sending-base64-post-req and when I implemented it, it successfully uploaded the large folder. It simply involve modifying this
axios.post
request in this repo here https://github.com/NebulousLabs/nodejs-skynet/blob/master/src/upload.js#L75 by adding'maxContentLength': Infinity, 'maxBodyLength': Infinity
, so it became:In that repo I modified ./scripts/siaSkynet.js
node ./scripts/siaSkynet.js
The text was updated successfully, but these errors were encountered: