Skip to content

pocket_modify kind of always returns true #26

Description

@pr130

the pocket API kind of always returns "success" for pocket_modify actions.
For example, even if the item id does not exist, the returned list looks like this:

{
    "action_results": [
        true
    ],
    "action_errors": [
        null
    ],
    "status": 1
}

Other weird behaviour is not known but could exist (do further probing?)

Options are:

  • put a warning in the docs for all functions that work through modify.
  • pre-check: before running the code, fetch pockets and evaluate whether the query could succeed.
  • after-check: check whether the target state has been achieved.

Activity

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

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions