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

Upload fails when trying to send a lot of files #3

Open
dharFr opened this issue Feb 5, 2017 · 2 comments
Open

Upload fails when trying to send a lot of files #3

dharFr opened this issue Feb 5, 2017 · 2 comments

Comments

@dharFr
Copy link

dharFr commented Feb 5, 2017

Hi,

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).

Cheers

@dharFr dharFr changed the title upload fails Upload fails when trying to send a lot of files Feb 5, 2017
@kyledrake
Copy link
Member

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
Copy link
Author

dharFr commented 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).

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