Incorrect endpoint URLs in Service Information Output after deploy

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{stage} part of the url.

So, e.g. instead of:

I’m getting:

I use this output for environment variables using the 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:

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.

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.