# I get a Signature is invalid error when generating a signature on the server

**URL:** <https://devforum.zoom.us/t/i-get-a-signature-is-invalid-error-when-generating-a-signature-on-the-server/88249>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [May 11, 2023, 11:23am UTC](https://devforum.zoom.us/t/i-get-a-signature-is-invalid-error-when-generating-a-signature-on-the-server/88249 "2023-05-11T11:23:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![teamlab](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/teamlab/32/48430_2.png) [@teamlab](https://devforum.zoom.us/u/teamlab)\
**Post date:** [May 11, 2023, 11:23am UTC](https://devforum.zoom.us/t/i-get-a-signature-is-invalid-error-when-generating-a-signature-on-the-server/88249/1 "2023-05-11T11:23:30Z")

</div>

Device: Lenovo Yoga series 7

- OS: Windows 11
- Browser: Chrome
- Browser Version: 113.0.5672.93

When I generate a signature on the local server, I use it to connect without any problems. But using AWS Lambda I generate a signature and get a “Signature is invalid” error. All the data is correct, in fact I am using the same code with the same data, only on the remote AWS Lambda server.

---

<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:** [May 11, 2023, 10:49pm UTC](https://devforum.zoom.us/t/i-get-a-signature-is-invalid-error-when-generating-a-signature-on-the-server/88249/2 "2023-05-11T22:49:12Z")

</div>

do you have a sample of the signature generated on Lambda?

---

<div class="post-metadata">

**Author:** ![teamlab](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/teamlab/32/48430_2.png) [@teamlab](https://devforum.zoom.us/u/teamlab)\
**Post date:** [May 12, 2023, 2:28am UTC](https://devforum.zoom.us/t/i-get-a-signature-is-invalid-error-when-generating-a-signature-on-the-server/88249/3 "2023-05-12T02:28:16Z")

</div>

After several hours of searching, I was able to find the problem. There was an extra space in the secret key…

---

<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:** [June 11, 2023, 12:28pm UTC](https://devforum.zoom.us/t/i-get-a-signature-is-invalid-error-when-generating-a-signature-on-the-server/88249/4 "2023-06-11T12:28:41Z")

</div>

Closed on June 11, 2023, 12:28pm UTC

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