# Facing issue on Heroku deployment

**URL:** <https://discuss.circleci.com/t/facing-issue-on-heroku-deployment/41391>\
**Category:** Deployments\
**Tags:** rails, ruby, heroku\
**Created:** [October 1, 2021, 11:01am UTC](https://discuss.circleci.com/t/facing-issue-on-heroku-deployment/41391 "2021-10-01T11:01:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![souravongit](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/souravongit/32/28258_2.png) [@souravongit](https://discuss.circleci.com/u/souravongit)\
**Post date:** [October 1, 2021, 11:01am UTC](https://discuss.circleci.com/t/facing-issue-on-heroku-deployment/41391/1 "2021-10-01T11:01:01Z")

</div>

I am getting an error on heroku deployment. It was working before suddenly not working  
Please check the attached screenshot.

Here is the setup-heroku.sh

```auto
#!/bin/bash
git remote add heroku $HEROKU_GIT_CANARY_URL
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
cat > ~/.netrc << EOF
machine api.heroku.com
  login $HEROKU_EMAIL
  password $HEROKU_TOKEN
machine git.heroku.com
  login $HEROKU_EMAIL
  password $HEROKU_TOKEN
EOF

```

 ![image](https://global.discourse-cdn.com/circleci/original/3X/b/6/b6c9b83935bf11f6a11bb991c651f6583db810d3.png)
