Skip to content

Download failed for server.jar #473

@Seadragon91

Description

@Seadragon91

Description

When I build feather I got this error:

error: failed to run custom build command for `feather-datapacks v0.1.0 (/home/lukas/rust/feather/feather/datapacks)`

Caused by:
  process didn't exit successfully: `/home/lukas/rust/feather/target/debug/build/feather-datapacks-1cf8e9c030678bb2/build-script-build` (exit status: 1)
  --- stderr
  Error: please make sure you have an Internet connection.

  Caused by:
      0: failed to download vanilla server JAR
      1: timed out reading response
warning: build failed, waiting for other jobs to finish...
error: build failed

Well my internet works fine. It looks like the function timeout also sets the time limit in which the file has to be downloaded. After changing

.timeout(Duration::from_secs(10))

the duration to 60, it builds fine. That means the file has to be downloaded in max 10 seconds.

Reproduction Steps

  1. Have a slow internet
  2. Build feather

What You Expected to Happen

Successful build.

Your Environment

  • Operating System: Debian
  • Operating System Version: Debian GNU/Linux 10 (buster)
  • Feather Version: latest commit: df3a3a4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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