cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"Failed to export batch code" error

anki1212
Visitor

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...

5 REPLIES 5

RazTN7
Dynatrace Champion
Dynatrace Champion

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

Have a nice day!

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. 

 

anki1212
Visitor

please update tomorrow my trial version will end 

RazTN7
Dynatrace Champion
Dynatrace Champion

Can you please provide more details.

Have a nice day!

anki1212
Visitor

 I am implementing this in the python 3.8 version. please check

Featured Posts