# Serverless Deployment Error

**URL:** <https://forum.serverless.com/t/serverless-deployment-error/18709>\
**Category:** Serverless Framework\
**Tags:** aws, lambda, cloudformation\
**Created:** [April 7, 2023, 12:58pm UTC](https://forum.serverless.com/t/serverless-deployment-error/18709 "2023-04-07T12:58:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksurya](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@ksurya](https://forum.serverless.com/u/ksurya)\
**Post date:** [April 7, 2023, 12:58pm UTC](https://forum.serverless.com/t/serverless-deployment-error/18709/1 "2023-04-07T12:58:09Z")

</div>

I am getting the error as attached in the image, while deploying using serverless.  
I am using “serverless”: “^3.27.0”

Error: “this.provider.naming.getLambdaFunctionUrlOutputLogicalId”

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/2/2f4b3e206755d672687ddcbe4f37bc67c9dba2c4.png)

---

<div class="post-metadata">

**Author:** ![ksurya](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@ksurya](https://forum.serverless.com/u/ksurya)\
**Post date:** [May 28, 2023, 5:26pm UTC](https://forum.serverless.com/t/serverless-deployment-error/18709/2 "2023-05-28T17:26:59Z")

</div>

Found a temporary solution. Updated the plugin file by just adding a small check that function exists or not.

**Previous:**  
`output.OutputKey === this.provider.naming.getLambdaFunctionUrlOutputLogicalId(func)`  
**Modified Code:**  
`output.OutputKey === this.provider.naming.hasOwnProperty('getLambdaFunctionUrlOutputLogicalId') ? this.provider.naming.getLambdaFunctionUrlOutputLogicalId(func) : false`
