# Event notification endpoint URL - URL validation failed. Try again later Webhook Only App

**URL:** <https://devforum.zoom.us/t/event-notification-endpoint-url-url-validation-failed-try-again-later-webhook-only-app/74014>\
**Category:** Webinars\
**Created:** [August 10, 2022, 7:41pm UTC](https://devforum.zoom.us/t/event-notification-endpoint-url-url-validation-failed-try-again-later-webhook-only-app/74014 "2022-08-10T19:41:22Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![yisroel.perton.dev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yisroel.perton.dev/32/32042_2.png) [@yisroel.perton.dev](https://devforum.zoom.us/u/yisroel.perton.dev)\
**Post date:** [March 14, 2023, 7:36pm UTC](https://devforum.zoom.us/t/event-notification-endpoint-url-url-validation-failed-try-again-later-webhook-only-app/74014/21 "2023-03-14T19:36:17Z")

</div>

I am getting the url validation error. I am using Java in a jsp page, and my code is as such, and I display both versions that I have tried:

Mac mac = Mac.getInstance(“HmacSHA256”);  
SecretKeySpec secretKeySpec = new SecretKeySpec(secretToken.getBytes(StandardCharsets.UTF\_8), “HmacSHA256”);  
mac.init(secretKeySpec);

byte hash = mac.doFinal(plainToken.getBytes(StandardCharsets.UTF\_8));  
String encryptedToken = bytesToHex(hash).toLowerCase();

out.println(“{ "message": { "plainToken":"” + plainToken + “", "encryptedToken": "” +encryptedToken + “" }, "status": 200 }”);

```
	        // or //

```

out.println(200);  
JSONObject jsonResponse = new JSONObject();  
jsonResponse.addProperty(“plainToken”, plainToken);  
jsonResponse.addProperty(“encryptedToken”, encryptedToken);  
response.status(200);  
response.type(“application/json”);  
return jsonResponse;

---

<div class="post-metadata">

**Author:** ![kodnest](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kodnest](https://devforum.zoom.us/u/kodnest)\
**Post date:** [June 24, 2023, 1:22pm UTC](https://devforum.zoom.us/t/event-notification-endpoint-url-url-validation-failed-try-again-later-webhook-only-app/74014/22 "2023-06-24T13:22:18Z")

</div>

Hi Tommy can you resolve this why mw signature and header x-zm-signature not matching here is the code that i am using in a lambda function

import crypto from “crypto”

export const handler = async(event) =\> {  
// Get the verification token from the Zoom App dashboard  
const zoomVerificationToken = process.env.ZOOM\_VERIFICATION\_TOKEN;

// Get the headers from the incoming webhook event  
const headers = event.headers;  
const body = event.body;  
console.log(“Incoming Headers”,headers)  
console.log(“Incoming Body”,body)  
const message = `v0:${headers['x-zm-request-timestamp']}:${JSON.stringify(body)}`

const hashForVerify = crypto.createHmac(‘sha256’, process.env.ZOOM\_VERIFICATION\_TOKEN).update(message).digest(‘hex’)

// hash the message string with your Webhook Secret Token and prepend the version semantic  
const signature = `v0=${hashForVerify}`

console.log(“Constructed Signature”,signature)

const zoomSignature = headers[‘x-zm-signature’]

console.log(“ZOOM SIGNATURE”,zoomSignature)

```
return {
  statusCode: 401,
  body: 'Invalid signature',
};

```

};

---

<div class="post-metadata">

**Author:** ![minhhue99](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@minhhue99](https://devforum.zoom.us/u/minhhue99)\
**Post date:** [November 16, 2023, 2:51am UTC](https://devforum.zoom.us/t/event-notification-endpoint-url-url-validation-failed-try-again-later-webhook-only-app/74014/23 "2023-11-16T02:51:24Z")

</div>

Hi, I was facing the same issue.

For me it’s because I was using `bodyParser.raw()` instead of `bodyParser.json()`.

Hope this can help.

[Previous page](https://devforum.zoom.us/t/event-notification-endpoint-url-url-validation-failed-try-again-later-webhook-only-app/74014.md?page=1)
