Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ggeorgi98 opened this issue Sep 10, 2021 · 0 comments
Open

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

Ggeorgi98 opened this issue Sep 10, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Ggeorgi98
Copy link

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[]".

@josiasmontag josiasmontag added the bug Something isn't working label Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants