Skip to content
This repository was archived by the owner on Sep 6, 2018. It is now read-only.
This repository was archived by the owner on Sep 6, 2018. It is now read-only.

Unable to download & parse JAR file? #42

@FireController1847

Description

@FireController1847

Version or commit hash:

4.0.2

Explanation of issue:

I'm not sure if this is an issue with the way I'm doing this, but I cannot seem to download a jar file, and then write it to a file using fs. Here's the example code below.

I know for a fact that the URL below works fine, because when I open the JAR after I download it via chrome using 7-zip, it opens fine. When I open it after a snekfetch download, though, it errors.

Example code to reproduce:

request.get('https://libraries.minecraft.net/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar').then(r => fs.writeFileSync('./mything.jar', r.body));
  • Issue occurs in browser
  • Issue occurs in node

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions