# Sample code signature run localy but failed on heroku

**URL:** <https://devforum.zoom.us/t/sample-code-signature-run-localy-but-failed-on-heroku/24376>\
**Category:** Web\
**Created:** [July 17, 2020, 1:37am UTC](https://devforum.zoom.us/t/sample-code-signature-run-localy-but-failed-on-heroku/24376 "2020-07-17T01:37:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptcmi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ptcmi/32/12051_2.png) [@ptcmi](https://devforum.zoom.us/u/ptcmi)\
**Post date:** [July 17, 2020, 1:37am UTC](https://devforum.zoom.us/t/sample-code-signature-run-localy-but-failed-on-heroku/24376/1 "2020-07-17T01:37:23Z")

</div>

**Description**  
i use sample code from [https://github.com/zoom/websdk-sample-signature-node.js](https://github.com/zoom/websdk-sample-signature-node.js) and work when use it locally ( localhost ) but when i try to upload it to heroku, and set key and secret, but got an error

**Error**  
Failed to load resource: the server responded with a status of 404 (Not Found)

**Which version?**  
package.json  
“dependencies”: {  
“body-parser”: “^1.19.0”,  
“cors”: “^2.8.5”,  
“dotenv”: “^8.2.0”,  
“express”: “^4.17.1”  
}

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
i try to add favicon.ico this also failed

**PC (please complete the following information):**

- Browser: Chrome

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 20, 2020, 8:16pm UTC](https://devforum.zoom.us/t/sample-code-signature-run-localy-but-failed-on-heroku/24376/2 "2020-07-20T20:16:28Z")

</div>

Hey @ptcmi,

What is your signature endpoint? Let me know and I can test it.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ptcmi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ptcmi/32/12051_2.png) [@ptcmi](https://devforum.zoom.us/u/ptcmi)\
**Post date:** [July 22, 2020, 4:20pm UTC](https://devforum.zoom.us/t/sample-code-signature-run-localy-but-failed-on-heroku/24376/3 "2020-07-22T16:20:35Z")

</div>

i try to remove and re-deploy to heroku, when i run the app still get an error when inspect with chrome, but when i use postman to call end point i got result ,  
so i just ignore the error.

thank you

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 24, 2020, 5:40pm UTC](https://devforum.zoom.us/t/sample-code-signature-run-localy-but-failed-on-heroku/24376/4 "2020-07-24T17:40:25Z")

</div>

Happy to hear you got it working! 🙂

Thanks,  
Tommy
