How to download a file from pipedrive, and upload the file to asana task

Sorry what do you mean by “api button”?

Pipedrive module uses the connection you created. When using http:

All bets are off and you Must set up a connection manually using the authentication that pipedrive uses.

Pipedrive won’t let you access your files (or allow any api calls via http) without proper authorization. It looks like the api key is used for authentication. Get an api key first and use the api key authentication flow in http module.