Skip to content

add with error #17

@twnaing

Description

@twnaing

I get the following error on adding an url to pocket. The item was successfully added to the website.

$ pocket add https://www.makeuseof.com/rust-commands-to-use-in-place-of-linux-commands/
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Json(Error("missing field `item_id`", line: 1, column: 1122))', src/add.rs:33:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I do not know rust and previous version of API. But API v3 response is different now. Added item is now associated with item key.

HTTP/1.1 200 OK
Content-Type: application/json
Status: 200 OK

{"item":{[See Details Below]}, "status":1}

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