# Incorrect endpoint URLs in Service Information Output after deploy

**URL:** <https://forum.serverless.com/t/incorrect-endpoint-urls-in-service-information-output-after-deploy/5815>\
**Category:** Serverless Framework\
**Tags:** aws, api-gateway\
**Created:** [September 17, 2018, 12:27am UTC](https://forum.serverless.com/t/incorrect-endpoint-urls-in-service-information-output-after-deploy/5815 "2018-09-17T00:27:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dannyshisler](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/dannyshisler/32/1952_2.png) [@dannyshisler](https://forum.serverless.com/u/dannyshisler)\
**Post date:** [September 17, 2018, 12:27am UTC](https://forum.serverless.com/t/incorrect-endpoint-urls-in-service-information-output-after-deploy/5815/1 "2018-09-17T00:27:08Z")

</div>

The URLs for http endpoints and the service endpoint reported by the framework in the Service Information after a deploy are incorrect, they are doubling up the [amazonaws.com/{stage}](http://amazonaws.com/%7Bstage%7D) part of the url.

So, e.g. instead of:  
[https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/myendpoint/](https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/myendpoint/)

I’m getting:  
[https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev](https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev)**[amazonaws.com/dev](http://amazonaws.com/dev)**/myendpoint/

I use this output for environment variables using the **[serverless-stack-output](https://github.com/sbstjn/serverless-stack-output)** plugin so this is causing me problems.

I can see that the ServiceEndpoint key in the CloudFormation output for the stack is wrong its value is:  
[https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/devamazonaws.com/dev](https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/devamazonaws.com/dev)

I don’t know if this is an AWS error or a Serverless Framework error or what I can do about it? Any advice would be much appreciated, thanks.

---

<div class="post-metadata">

**Author:** ![dannyshisler](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/dannyshisler/32/1952_2.png) [@dannyshisler](https://forum.serverless.com/u/dannyshisler)\
**Post date:** [September 18, 2018, 1:33pm UTC](https://forum.serverless.com/t/incorrect-endpoint-urls-in-service-information-output-after-deploy/5815/2 "2018-09-18T13:33:28Z")

</div>

For anyone interested, I found the problem. It’s a bug in the serverless-step-functions plugin. I’ve submitted an issue and created a PR that fixes the problem.

> <https://github.com/serverless-operations/serverless-step-functions/pull/150>
>
> The ServiceEndpoint output value for endpoints urls generated by the Serverless …framework is being overwritten incorrectly by the serverless-step-functions plugin.
> 
> I've described the issue in detail here: https://github.com/horike37/serverless-step-functions/issues/149
> 
> This PR changes the ServiceEndpoint generation for API gateway deployments to match the output generated by Serverless framework.
