Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

513
Vistas
Amazon DynamoDB updateTable SerializationException error

I am trying to update one of my secondary indexes in my DB but I am getting the following error

'Error executing "UpdateTable" on "https://dynamodb.us-east-1.amazonaws.com"; AWS HTTP error: Client error: 400 SerializationException (client): Start of structure or map found where not expected. - {"__type":"com.amazon.coral.service#SerializationException","Message":"Start of structure or map found where not expected."}' exception 'GuzzleHttp\Exception\ClientException' with message 'Client error: 400' in _aws/3.3.0/GuzzleHttp/Middleware.php:69 Stack trace: #0

and no matter where I look I cannot find anything on SerializationException errors. Here is my array set up

Array
(
    [TableName] => usuarios
    [GlobalSecondaryIndexUpdates] => Array
        (
            [Update] => Array
                (
                    [IndexName] => nombre-creado-index
                    [ProvisionedThroughput] => Array
                        (
                            [ReadCapacityUnits] => 50
                            [WriteCapacityUnits] => 50
                        )

                )

        )

)

and not matter what I try I cannot see where the error stands. I can query and update the tables without any issue. I can also run describeTable and get all table content with no problem. Any ideas where I could be having problems?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

The error was in the array, an associative array, not the procedure, here is the correct set up

Array
(
    [TableName] => usuarios
    [GlobalSecondaryIndexUpdates] => Array
        (
            [0] => Array
                (
                    [Update] => Array
                        (
                            [IndexName] => nombre-creado-index
                            [ProvisionedThroughput] => Array
                                (
                                    [ReadCapacityUnits] => 50
                                    [WriteCapacityUnits] => 50
                                )

                        )

                )

        )

)
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda