Skip to content

Fix needed for "ArgumentError: The request is in a bad format" #65

Closed

Description

@ewquon

Error message:

ArgumentError: The request is in a bad format:
Dict{String, Any}("day" => ["16"], "month" => ["12"], "time" => ["00:00", "01:00", "02:00", "03:00", "04:00", "05:00",
"06:00", "07:00", "08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00", "15:00", "16:00", "17:00", "18:00",
"19:00", "20:00", "21:00", "22:00", "23:00"], "year" => ["2004"], "pressure_level" => ["1000", "975", "950", "925",
"900", "875", "850", "825", "800", "775", "750", "700", "650", "600", "550", "500", "450", "400", "350", "300", "250"],
"area" => [18.5, -62.5, 17.0, -61.0], "product_type" => ["reanalysis"], "data_format" => "netcdf", "variable" =>
["geopotential"])

This is fixed by changing

["PRIVATE-TOKEN" => key],

to

["PRIVATE-TOKEN" => key, "Content-Type" => "application/json"],

tested with v2.2.0.

Activity

  1. juliohm commented on Mar 11, 2026

    @juliohm
    Member

    Thank you for reporting the issue @ewquon. Could you please create a PR with the suggested fix?

  2. juliohm commented on Mar 12, 2026

    @juliohm
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions