Cannot deploy python shiny app to - Exception: Child Task 1253605787 failed


My app works locally and rsconnect is linked to my account. When I try to deploy, the app gets created on my account, but I get an error message shown below and the app is displayed as undeployed.

Warning: the existing manifest.json file will not be used or considered.

Validating server... [OK]
Validating app mode... [OK]
Making bundle ... [OK]
Deploying bundle ...
Waiting for task: 1253605785
building - Installing files
building - Installing files
building - Installing files
[ERROR]: reported an error (calling /v1/tasks/1253605785?legacy=true): Unhandled Exception: Child Task 1253605787 failed: Error building image: Build exited with non-zero status: 1

I'm using latest version of rsconnect.

Any help would be appreciated.