Skip to content

[BUG] Get task and its payload doesn't return the payload #11

Description

@Ggeorgi98

If I try to get the data for a particular task with its payload, for example, an import task, I get the data for the task but without the task's payload although I passed "payload" to the method as a value to the "include" parameter.

e.g. GetTaskAsync("{task_id}", new string[1] { "payload" });

The response won't include the payload and the property is always null. The reason is that in this way as you pass the included value - $"{_apiUrl}/tasks/{id}?include={include}" - it won't be replaced with the value from the array that I pass as a parameter to GetTaskAsync method but will be replaced with System.String[]. This means that the include parameter in the URL query will be wrong - "{_apiUrl}/tasks/{id}?include=System.String[]".

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions