AmazonPollyClient and AmazonS3Client constructor throwing exception #3028
Replies: 6 comments
-
@allmomoro088 Thanks for opening the issue. Could you please share the exact error thrown? Also, could you please enable verbose logging using below code (works well when using console application) and share the detailed verbose logs: Amazon.AWSConfigs.LoggingConfig.LogResponses = Amazon.ResponseLoggingOption.Always;
Amazon.AWSConfigs.LoggingConfig.LogTo = Amazon.LoggingOptions.SystemDiagnostics;
Amazon.AWSConfigs.AddTraceListener("Amazon", new System.Diagnostics.ConsoleTraceListener()); I just tested below S3 code using latest version of using (AmazonS3Client client = new AmazonS3Client(RegionEndpoint.USEast1))
{
var listObjectsV2Response = await client.ListObjectsV2Async(new ListObjectsV2Request() { BucketName = "<<some-bucket>>" });
} Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi @ashishdhingra
Amazon Information: 0 : The environment variable AWS_ENABLE_ENDPOINT_DISCOVERY was not set with a value. |
Beta Was this translation helpful? Give feedback.
-
@allmomoro088 Could you please check your shared Thanks, |
Beta Was this translation helpful? Give feedback.
-
@ashishdhingra , |
Beta Was this translation helpful? Give feedback.
-
@allmomoro088 This has not been a recent change. May be you used AWS CLI Since you might be distributing your game, you might use Cognito and configure role in Cognito for authenticated users. Please follow online articles for more guidance. Converting this issue into discussion since it is not a bug. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Executing the following code throws an exception on
var client = new AmazonPollyClient(credentials: c, region: RegionEndpoint.USEast1);
, I also tested with S3 and the same error happened.`var text = "Hi, I'm finally playing here.";
var c = new BasicAWSCredentials("AKEY", "ASECRET");
var s3 = new AmazonS3Client(c, RegionEndpoint.USEast1);
var client = new AmazonPollyClient(credentials: c, region: RegionEndpoint.USEast1);
var r = new SynthesizeSpeechRequest()
{
Engine = Engine.Neural,
OutputFormat = OutputFormat.Mp3,
SampleRate = "24000",
VoiceId = VoiceId.Joanna,
LanguageCode = LanguageCode.EnUS,
Text = text,
TextType = TextType.Text
};
var response = client.SynthesizeSpeechAsync(r);`
Expected Behavior
Go through the entire code and acquire the response of SynthesizedSpeech.
Current Behavior
Throwing exception on:
var client = new AmazonPollyClient(credentials: c, region: RegionEndpoint.USEast1);
Reproduction Steps
Just paste the code provided above, use the latest SDKs available on nuget (AWSSDK.Core 3.7.200.15, AWSSDK.Polly 3.7.202.7 and AWSSDK.S3 3.7.201.13) and run the code with actual credentials.
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSSDK.Core 3.7.200.15
AWSSDK.Polly 3.7.202.7
AWSSDK.S3 3.7.201.13
Targeted .NET Platform
.Net 6.0 or .Net Framework 4.8
Operating System and version
Windows 10, 22H2 (OS BUILD 19045.3324)
Beta Was this translation helpful? Give feedback.
All reactions