Skip to content

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions