# Azure Signature Failure

**URL:** <https://devforum.zoom.us/t/azure-signature-failure/84830>\
**Category:** Web\
**Tags:** api\
**Created:** [March 16, 2023, 8:36pm UTC](https://devforum.zoom.us/t/azure-signature-failure/84830 "2023-03-16T20:36:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![axel.ojeda](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@axel.ojeda](https://devforum.zoom.us/u/axel.ojeda)\
**Post date:** [March 16, 2023, 8:36pm UTC](https://devforum.zoom.us/t/azure-signature-failure/84830/1 "2023-03-16T20:36:12Z")

</div>

Hi, I’m currently attempting to deploy the signature sample in Azure Functions; for context the code ran well before when I uploaded it to Render, I had a CORS layer of issues but it worked, now I can’t even recieve the signature token  
it started displaying this error

SyntaxError: Unexpected token ‘\<’, "\<!DOCTYPE "… is not valid JSON

but the signature already has this line

app.use(bodyParser.json(), cors())  
app.options(‘\*’, cors())

this should fix the problem, but it isn’t picking it up therefore I can’t open a meeting

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [March 16, 2023, 10:52pm UTC](https://devforum.zoom.us/t/azure-signature-failure/84830/2 "2023-03-16T22:52:00Z")

</div>

@axel.ojeda ,

this is probably an issue where azure functions it not returning application/json content type.

---

<div class="post-metadata">

**Author:** ![CharlesNotChaplin](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@CharlesNotChaplin](https://devforum.zoom.us/u/CharlesNotChaplin)\
**Post date:** [March 16, 2023, 11:32pm UTC](https://devforum.zoom.us/t/azure-signature-failure/84830/3 "2023-03-16T23:32:12Z")

</div>

As I know, the error message you’re seeing suggests that the response you’re getting from the server isn’t valid JSON. This could be caused by a variety of issues, including a CORS issue, as you mentioned. One thing you might try is double-checking that the server is actually sending a JSON response. It’s possible that the server is sending an HTML response instead, which would explain the error message you’re seeing. Another thing to consider is whether there are any differences in the environment between Render and Azure Functions. For example, if you’re using different versions of Node.js or any dependencies, this could potentially cause issues. Let me know if that helped you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 16, 2023, 9:32am UTC](https://devforum.zoom.us/t/azure-signature-failure/84830/4 "2023-04-16T09:32:33Z")

</div>

Closed on April 16, 2023, 9:32am UTC

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