Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

InvalidSignatureException when calling the GetSamplingTargets

Abierto
#287 3 comentarios 2 reacciones 1 asignado Ver en GitHub

@srprash ya está trabajando en esto.

Desde el 7/9/2021.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

stale

Hello,

We are currently using Aws Xray in production on our django applications. The application is running on ECS using EC2. The xray-daemon is installed on django container itself. We have given the daemon permissions by adding the AWSXRayDaemonWriteAccess to the task's role. Occasionally we are seeing this error:

An error occurred (InvalidSignatureException) when calling the GetSamplingTargets operation: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

I guess the important thing to note here is we are only seeing this occasionally. As you see below, most of requests to this endpoint are good:

Screenshot from 2021-04-09 14-11-56

From some debugging it looks like the failing request is using us-west-2 as the region, whilst the region the daemon and our services are running are on eu-west-1

{
    body: b'{"SamplingStatisticsDocuments": [{"RuleName": "Default", "ClientID": "xxxxxxxxxxxxx", "RequestCount": 
         1, "BorrowCount": 0, "SampledCount": 0, "Timestamp": 1617955918}]}', 
    context: {
         auth_type: [Filtered], 
         client_config: <botocore.config.Config object at 0x7f6c7220a110>, 
         client_region: 'us-west-2', 
         has_streaming_input: False
     }, 
     headers: {
          User-Agent: 'Botocore/1.20.47 Python/3.7.10 Linux/4.14.225-169.362.amzn2.x86_64 exec-env/AWS_ECS_EC2'
     }, 
     method: 'POST', 
    query_string: {}, 
    url: 'http://127.0.0.1:2000/SamplingTargets', 
    url_path: '/SamplingTargets'
}
Lenguaje dominante
Python
Estrellas
340
Forks
148
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de aws/aws-xray-sdk-python

Todos los issues de aws/aws-xray-sdk-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.