Skip to content

Hitting rate limits with Modrinth API #3919

@Lenart12

Description

@Lenart12

Describe the problem

Starting the container after being stopped for atleast one hour I hit rate limits on first start (and also every successive start):

mc-1  | [init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 1 1000 1000 1366 Feb  2 19:38 /data'
mc-1  | [init] Image info: buildtime=2026-01-04T14:02:52.014Z,version=2026.1.0-java25-graalvm,revision=c9094063d344fa38a97223e7ceafe005577865bb
mc-1  | [init] Resolving type given FABRIC
mc-1  | [mc-image-helper] 19:02:35.023 INFO  : Fabric launcher for minecraft 1.21.11 loader 0.18.4 is already available
mc-1  | [mc-image-helper] 19:02:38.606 INFO  : Downloading Vanilla Tweaks datapacks for share code NpW9a6
mc-1  | [mc-image-helper] 19:02:42.546 ERROR : 'modrinth' command failed. Version is 1.52.1: FailedRequestException: HTTP request of https://api.modrinth.com/v2/project/gvQqBUqZ/version?loaders=[%22fabric%22]&game_versions=[%221.21.11%22] failed with 429 Too Many Requests: Fetching object content

Relevant environment:

      VERSION: "1.21.11"
      TYPE: "FABRIC"
      MODRINTH_PROJECTS: |
        fabric-api
        lithium
        ferrite-core

Container definition

No response

Container logs

No response

EDIT: After commenting out MODRINTH_PROJECTS I get this:

mc-1  | [init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 1 1000 1000 1366 Feb  2 19:38 /data'
mc-1  | [init] Image info: buildtime=2026-01-04T14:02:52.014Z,version=2026.1.0-java25-graalvm,revision=c9094063d344fa38a97223e7ceafe005577865bb
mc-1  | [init] Resolving type given FABRIC
mc-1  | [mc-image-helper] 19:06:51.190 INFO  : Fabric launcher for minecraft 1.21.11 loader 0.18.4 is already available
mc-1  | [mc-image-helper] 19:06:54.998 INFO  : Downloading Vanilla Tweaks datapacks for share code NpW9a6
mc-1  | [mc-image-helper] 19:07:25.056 WARN  : [37774ab4-3, L:/172.18.0.3:57972 - R:vanillatweaks.net/172.67.172.9:443] The connection observed an error
mc-1  | io.netty.handler.timeout.ReadTimeoutException: null
mc-1  | [mc-image-helper] 19:07:25.074 ERROR : 'vanillatweaks' command failed. Version is 1.52.1
mc-1  | io.netty.handler.timeout.ReadTimeoutException: null

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions