Skip to content

<PteroApp>.allocations.fetchAll(nodeid, {perPage: 5000, force: true}) causes 404 cause of wrongly passing options back to fetch #36

@XCraftTM

Description

@XCraftTM

I have spent around 2 Hours figuring out why my fetchAll and fetchAvailable functions were both throwing the same 404 error, turns out that the wrong Options were getting passed through to the fetch function after it looped once resulting in the url being something like:
"/allocations/[Object object]/"

This can be fixed by passing options instead of opts here:
Image

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