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 }}
Repository navigation
Upload fails when trying to send a lot of files #3
I just tried to upload my blog to my brand new neocities website (nice job btw! thx 😉) using neocities-upload and came up with the following error :
⚡ oad@oad: {master} ~/Development/blog/public
↳ neocities-upload
prompt: Username please: oad
prompt: Password please:
undefined:1
An unhandled lowlevel error occurred. The application logs may have details.
^
SyntaxError: Unexpected token A in JSON at position 0
at Object.parse (native)
at IncomingMessage.<anonymous> (/Users/oad/Development/blog/node_modules/neocities/index.js:78:25)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
I did some tests with my own script and the issue seems to be related to the number of files I'm trying to upload. The upload works fine if I limit the number of files to 127, and starts failing as soon as I reach 128 (my blog is about 137 files).
Could you try this again and see if you get the same issue? I just discovered a really weird bug that was preventing empty files from being saved in certain scenarios neocities/neocities@e52aa29
I'm not sure if it would have effected this or not (haven't had a chance to test form uploads yet), but could be connected.
Activity
[-]upload fails [/-][+]Upload fails when trying to send a lot of files[/+]kyledrake commentedon Feb 6, 2017
Could you try this again and see if you get the same issue? I just discovered a really weird bug that was preventing empty files from being saved in certain scenarios neocities/neocities@e52aa29
I'm not sure if it would have effected this or not (haven't had a chance to test form uploads yet), but could be connected.
dharFr commentedon Feb 6, 2017
I gave it a second try a I still get the same error.
The script I used to highlight the behavior is available on https://github.com/dharFr/blog/blob/master/upload-cwd-to-neocities.js (uncomment line 48 to limit the number of files).