Time stream- blazor app throws " Failed to discover the endpoint for the request. Requests will not succeed until an endpoint can be retrieved or an endpoint is manually specified."

0

I tried to adapt timestream .net sample console application to a blazor wasm web application. Console application runs the query succesfully but blazor app cannot with the same settings. This is my query client config:

  var queryClientConfig = new AmazonTimestreamQueryConfig
                    {
                        RegionEndpoint = RegionEndpoint.EUWest1,
                        UseAlternateUserAgentHeader=true,
                     };
var queryClient = new AmazonTimestreamQueryClient(<key>,<secret>,queryClientConfig);

when I call the query it throws exception "Failed to discover the endpoint for the request. Requests will not succeed until an endpoint can be retrieved or an endpoint is manually specified."

 QueryResponse queryResponse = await queryClient.QueryAsync(queryRequest);

I tried with and without UseAlternateUserAgentHeader.

What configuration am I missing?

Asius
질문됨 2년 전69회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠