Hello. Could you please help me? I trying to execute program from Microsoft Learn lesson Exercises/01-use-azure-ai-services (https://github.com/MicrosoftLearning/mslearn-ai-services). I pick c# language.
But after changings in appsettings.json file:
{
"AIServicesEndpoint": "YOUR_AI_SERVICES_ENDPOINT",
"AIServicesKey": "YOUR_AI_SERVICES_KEY"
}
I have the error:
StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
apim-request-id: 3e756acd-e436-4d65-8c56-b9f0bf30284d
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
x-ms-region: Poland Central
Date: Tue, 19 Nov 2024 13:32:13 GMT
Content-Length: 111
Content-Type: application/json
}
Data from activity logs:
TenantId
3708dab9-d87b-4270-8f0a-18f7cdd6243b
TimeGenerated [UTC]
2024-11-19T13:26:44.703Z
ResourceId
/SUBSCRIPTIONS/{subsctiptionId}/RESOURCEGROUPS/LEARN/PROVIDERS/MICROSOFT.COGNITIVESERVICES/ACCOUNTS/{serviceName}
Category
RequestResponse
ResourceGroup
LEARN
SubscriptionId
{subsctiptionId}
ResourceProvider
MICROSOFT.COGNITIVESERVICES
Resource
{serviceName}
ResourceType
ACCOUNTS
OperationName
Detect Language
CorrelationId
ca15fd25-3d2e-476d-9306-c0eabc1a2764
DurationMs
9996
CallerIPAddress
31.60.80.***
ResultSignature
500
SourceSystem
Azure
event_s
ShoeboxCallResult
location_s
polandcentral
Tenant_s
polandcentral
properties_s
{"apiName":"Text Analytics API (v3.1)","requestTime":638676195941600255,"requestLength":80,"responseTime":638676196041567332,"responseLength":111,"objectId":""}
Type
AzureDiagnostics
_ResourceId
/subscriptions/{subsctiptionId}/resourcegroups/learn/providers/microsoft.cognitiveservices/accounts/{serviceName}
Thanks.