You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you open the "Publish to AWS" page and choose an AWS IAM user and a custom-enabled region (in my case it is Middle East (UAE), you will get the following error:
Unable to start a deployment session: {"ErrorCode":"UnexpectedError","Message":"No such host is known. (elasticbeanstalk.me-central-1.amazonaws.com:443)","ProcessExitCode":null}
To Reproduce
Enable "Middle East (UAE)" region for your AWS account
Create an IAM user, and use the IAM user as an authentication to aws-toolkit-visual-studio
Open the "Publish to AWS" to publish a .NET website
You will get the error Unable to start a deployment session: {"ErrorCode":"UnexpectedError","Message":"No such host is known. (elasticbeanstalk.me-central-1.amazonaws.com:443)","ProcessExitCode":null}
If you try to change the region to something that is enabled by default by AWS, then the "Publish to AWS" page will work
Expected behavior
Be able to publish to AWS on custom-enabled regions
Screenshots
Toolkit Logs
2024-03-12 14:18:45,028 [230] DEBUG Amazon.AWSToolkit.Telemetry.Internal.TelemetryPublisher - Publishing 10 event(s)
2024-03-12 14:18:47,755 [1] DEBUG Amazon.AWSToolkit.Publish.Views.PublishToAwsDocumentControl - Disposing Publish dialog:
2024-03-12 14:18:47,755 [1] DEBUG Amazon.AWSToolkit.Publish.Views.PublishToAwsDocumentControl - Disposed Publish dialog:
2024-03-12 14:18:55,965 [160] DEBUG Amazon.AWSToolkit.Publish.ViewModels.PublishToAwsDocumentViewModel - Starting a deployment session
2024-03-12 14:20:02,989 [193] ERROR Amazon.AWSToolkit.Publish.Views.PublishToAwsDocumentControl - Error refreshing publish state
Amazon.AWSToolkit.Publish.SessionException: Unable to start a deployment session:
{"ErrorCode":"UnexpectedError","Message":"No such host is known. (elasticbeanstalk.me-central-1.amazonaws.com:443)","ProcessExitCode":null} ---> AWS.Deploy.ServerMode.Client.ApiException: The HTTP status code of the response was not expected (500).
Status: 500
Response:
{"ErrorCode":"UnexpectedError","Message":"No such host is known. (elasticbeanstalk.me-central-1.amazonaws.com:443)","ProcessExitCode":null}
at AWS.Deploy.ServerMode.Client.RestAPIClient.d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.AWSToolkit.Publish.ViewModels.DeployToolController.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.AWSToolkit.Publish.ViewModels.PublishToAwsDocumentViewModel.d__162.MoveNext()
--- End of inner exception stack trace ---
at Amazon.AWSToolkit.Publish.ViewModels.PublishToAwsDocumentViewModel.d__162.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.AWSToolkit.Publish.ViewModels.PublishToAwsDocumentViewModel.d__160.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.AWSToolkit.Publish.Views.PublishToAwsDocumentControl.d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Amazon.AWSToolkit.Publish.Views.PublishToAwsDocumentControl.d__27.MoveNext()
Development System:
Windows Version: Windows 10 Pro
Visual Studio Version: 17.9.2
AWS Toolkit for Visual Studio Version: 1.49.0.0
Additional context
The text was updated successfully, but these errors were encountered:
Thank you for reporting this bug. There is already an open issue upstream in the deploy tool that supports the Publish to AWS experience. I have added this scenario to that issue. aws/aws-dotnet-deploy#467
We'll leave this issue open to track progress in the Publish to AWS experience.
Describe the bug
If you open the "Publish to AWS" page and choose an AWS IAM user and a custom-enabled region (in my case it is Middle East (UAE), you will get the following error:
Unable to start a deployment session: {"ErrorCode":"UnexpectedError","Message":"No such host is known. (elasticbeanstalk.me-central-1.amazonaws.com:443)","ProcessExitCode":null}
To Reproduce
Unable to start a deployment session: {"ErrorCode":"UnexpectedError","Message":"No such host is known. (elasticbeanstalk.me-central-1.amazonaws.com:443)","ProcessExitCode":null}
Expected behavior
Be able to publish to AWS on custom-enabled regions
Screenshots
Toolkit Logs
Development System:
Additional context
The text was updated successfully, but these errors were encountered: