Skip to content

Webstrates server crashes looking for missing zipFile in uploads #98

@eaganj

Description

@eaganj

Loading certain webstrates (in this case, codestrates) causes the Webstrates server to crash with the following trace :

/Users/eaganj/Projects/Extern/Webstrates/helpers/HttpRequestController.js:152
		zipFile.on('entry', entry => {
		        ^

TypeError: Cannot read property 'on' of undefined
    at /Users/eaganj/Projects/Extern/Webstrates/helpers/HttpRequestController.js:152:11
    at /Users/eaganj/Projects/Extern/Webstrates/node_modules/yauzl/index.js:34:21

For the affected webstrates, this systematically causes the server to crash. I added a tracing statement to HttpRequestController.js to reveal that the server is attempting to load a file in webstrates_root/uploads/ that does not exist. E.g. :

/path/to/Webstrates/uploads/3f9b2695547b0135399acbc086545197
ls: /path/to/Webstrates/uploads/3f9b2695547b0135399acbc086545197: No such file or directory

I'm not sure how to provide more information about what part of the webstrate is actually triggering the load. (I cannot wget the webstrate since it is access (oauth) protected.)

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