Skip to content

Function job_status uses f64 #1

@InfornoFire

Description

@InfornoFire

rclone-sdk/rs/src/lib.rs

Lines 11514 to 11518 in 1578d7e

pub async fn job_status<'a>(
&'a self,
async_: Option<bool>,
jobid: f64,
) -> Result<ResponseValue<types::JobStatusResponse>, Error<types::RcError>> {

Hi, is this function suppose to use a float? It seems rclone fails to parse it, requesting for an int instead.

Error Response: status: 400 Bad Request; headers:
{
    "accept-ranges": "bytes",
    "content-type": "application/json",
    "server": "rclone/v1.72.1",
    "x-rclone-jobid": "85",
    "date": "...",
    "content-length": "186"
};
value: RcError { error: "couldn't parse key \"jobid\" (84.0) as int64: strconv.ParseInt: parsing \"84.0\": invalid syntax", input: Some({"jobid": String("84.0")}), path: "job/status", status: 400 }

Edit:
Just realized there is a dedicated openapi repo (the link in the README redirects me to the rclone-ui repo). In any case it might be related to the param using number instead of integer
https://github.com/rclone-ui/rclone-openapi/blob/4e0de48edff4ac27023b5f305a620ced6bfd4817/openapi.yaml#L2380-L2386
As to not spam your inbox I will leave this issue here, my bad!

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