Skip to content

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

Open

Description

@dharFr

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

Activity

  1. changed the title [-]upload fails [/-] [+]Upload fails when trying to send a lot of files[/+] on Feb 5, 2017
  2. kyledrake commented on Feb 6, 2017

    @kyledrake
    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.

  3. dharFr commented on Feb 6, 2017

    @dharFr
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions