-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to setup base domain mappings for <domain> #333
Comments
Following up the issue, my fault. Thank you for the great work on supporting the websocket API Gateway :) |
I am having the problem after updated to the latest version of serverless-domain-manager. |
Hi @jasontll, Let me know if this helps, I'll be happy to provide support :) |
I wasn't using WebsocketsApi at all, just regular functions with http triggers. I have been running the system without any problem for almost a year and only yesterday when I decided to upgrade to the version 4.0.0 then I start getting the error. It has something to do with the basepath apparently. It was doing a check on the basepath value:
There's a solution in post #332 . I rolled back to 3.3.2 and it worked fine for me, I think the patch will come out soon. |
I'm getting this error and I'm not sure why.
My config: customDomain:
apiType: http
domainName: <domain>
stage: prod-green
endpointType: regional
createRoute53Record: true
hostedZoneId: <id>
enabled: true The custom domain in the AWS console is showing as Any ideas? |
@chearmstrong if you did the original create_domain on the previous version you may need to delete the domain and then re-create it. |
Will give that a try. Thanks. |
I'm running into the same error but not sure if what I'm trying to do is legal: In my two custom:
customDomain:
domainName: example.com
basePath: myServiceA # or myServiceB in the other file
certificateName: 'example.com'
createRoute53Record: false
endpointType: 'regional'
securityPolicy: tls_1_2
apiType: http For the first stack, everything went ok (
is this a bug? Or am I not supposed to share the same domain? thanks edit: yeah you can do it. Just rolled back to serverless-domain-manager@3 and everything's working fine :) |
I recently upgraded from Not sure if it matters but in my
|
Just sharing what helped me. If you are not using |
Added a comment on another similar issue here: #381 (comment) Might help someone in the future. |
@Pitasi - I know it's sometime later - but that is exactly what I'm attempting... Did you have any success, or was this setup not the correct approach? |
The yaml was correct, I just kept using serverless-domain-manager@3 instead of upgrading to the latest version. I'm not sure if they ever fixed this problem since I'm not working on that project anymore. |
Might help someone in the future.In our case , it was domainName, we have used caps Letter in it. |
Just in case it might help someone (may not be the same issue as the OP). In my case, I was migrating from REST API to HTTP API, the account that ran the sls deploy didn't have APIGateway permission (the plugin didn't say anything about permission but just the It will be helpful if the plugin can print out more error information (if possible) |
I also found out, that when there's no API endpoint defined yet in the serverless.yml under functions, serverless does not create a stage in the ApiGateway and then the base domain mapping cannot be created, because that needs to reference a stage. |
For me the problem was I was not configuring the Even though i was passing My provider was:
My custom block was:
When I changed my provider to:
Hope it helps! |
If someone (like me) didn't read the docs & tried |
Hello! I'm going to share my troubleshooting and my final solution because I wasted about 3 hours fighting with this (and I didn't want to downgrade to v3). This was tested using version
I hope this helps someone. |
I wanted to add my own problem/solution set in case it helps someone. In my case I fundamentally didn't understand the difference between Turns out my functions are actually configured to use |
I got this error because I was using an expired cert |
what we havent craeted the custom domain name and we want to use the default domain what we will be using in the serverless file??? |
Special case: setting up a dev.subdomain.domain.com (one level down) Still looking for an answer, I had the same issue without much of a useful message (just "Error: Unable to setup base domain mappings for ") Then I used What that meant is I needed to create a certificate for *.subdomain.domain.com in us-east-1 (oh yeah, it needs to be us-east-1). Then the deployment worked. Then you place its ARN in your: While running
|
Community Note
Bug Report
Error Description
After creating a custom domain with
sls create_domain
the deploy exits with errorUnable to setup base domain mappings for <domain>
Command Run
sls create_domain
sls deploy --stage development
Console Output
Domain Manager Configuration
Versions
Additional context/Screenshots
Already tried to delete the domain and recreated with no luck.
The text was updated successfully, but these errors were encountered: