22 Nov 2023 04:35 AM - last edited on 22 Nov 2023 09:53 AM by MaciejNeumann
Failed to export batch code: 401, reason: {"error":{"code":401,"message":"Authentication required","details":{"errorRef":"ae8f7e02-91a2-49de-8283-93fd9a6e3db2","traceId":"209a419afdc425d9d480e35e7719bac3"}}}
why is this error occurring? please update. I include by a token with opentelementary scopes...
Solved! Go to Solution.
22 Nov 2023 06:04 AM - edited 22 Nov 2023 06:05 AM
Hello @anki1212 ,
From the error code it seems there is access issue. have you also included Ingest Metrics v2, Read metrics v2, Ingest events v2 & Ingest logs v2 along with opentelementary in scope.
If not create new with all enabled and see if it is accessible.
Cheers!
RN
22 Nov 2023 09:34 AM
i did try but the same error occurred. I used to follow the same steps given by you. I am using the access token. any following the step that i am using please check this are correct ..
export OTEL_EXPORTER_OTLP_ENDPOINT=https://{environmentid}.apps.dynatrace.com/
export OTEL_EXPORTER_OTLP_HEADERS=Authorization=***********************************************
export OTEL_EXPORTER_OTLP_PROTOCOL=xxxxxxxxxxxxxx
export OTEL_SERVICE_NAME="xxxxxxxxxxxx"
~/.local/bin/opentelemetry-instrument pm2 start api.py --interpreter python3.8
please check.
24 Nov 2023 12:15 PM
please update tomorrow my trial version will end
24 Nov 2023 12:35 PM
Can you please provide more details.
24 Nov 2023 01:05 PM
I am implementing this in the python 3.8 version. please check