Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

111
Visualizações
The skill is rejecting the request when executed with additional properties in the JSON request

I'm having problems when I deploy my alexa skill to google cloud functions.

Initially, I'm using the following code.

My skill.js file

//imports here...

  Router.post("/:locale", async (req, res) => {
    const requestEnvelope = JSON.stringify(req.body);
    try {
      await new SkillRequestSignatureVerifier().verify(requestEnvelope, req.headers);
      await new TimestampVerifier().verify(requestEnvelope);
    } catch (err) {
      console.log(`Error with message: ${err.message}`);
      console.log(`Error object: ${JSON.stringify(err)}`);
      return res.status(400).send(err.message);
    }
    const responseASK = await skill.invoke(req.body);
    return res.status(200).send(responseASK);
  });

module.exports = Router;

In my server.js file

const skillRoute = require("./skill");

const express = require("express");
const server = express();
server.use("/", skillRoute);

exports.server = functions.https.onRequest(server);

Everything goes well with the deploy, including, I can invoke my alexa skill normally. But, when running the validations for distribution, I get the following problem:


The skill is rejecting the request when executed with additional properties in the JSON request.

When we invoke the skill with additional parameters, the skill is rejecting it when we expect this to be accepted. Future versions of the Alexa Skills Kit may add new properties to the JSON request and response formats, while maintaining backward compatibility for the existing properties. Your code must be resilient to these types of changes. For example, your code for de-serializing a JSON request must not break when it encounters a new, unknown property. Please ensure that your code can handle new attributes and does not break when it encounters new properties in the JSON request. Documentation Help: Request and response JSON reference: Click here


On my server console I get the following errors:

Error with message: request body and signature does not match

and:

Error object: {"name":"AskSdk.SkillRequestSignatureVerifier Error"}

It seems to me that it may be the result of some ask-sdk-core update, as I have other servers working with the same code.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda