unsupported operand type

I am trying to use Asana SDK to get tasks from a project.
Upon calling client.tasks.get_task(taskguid) with taskguid in string. The response I am getting an error:
Exception when calling TasksApi->get_tasks: unsupported operand type(s) for +: ‘int’ and ‘str’

Hi @ArunM - I take it you’re using the Python library? Are you trying to concatenate a string with an int anywhere in your code? Try converting values (use str(value)) and re-running. If that doesn’t work, can you post a code snip (obfuscate any private data)?

1 Like

Sorry, Please ignore the request. There was an error in the code. The API works perfectly.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.