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

431
Vistas
Failed to POST: Post "http://localhost:3000/webhook": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

I have this error when I run stripe listen --forward-to localhost:3000/webhook on cmd and server on hyperterminal. [stripe listen --forward-to localhost:3000/webhook][1]

I basically copied and pasted from the document so I'm not sure what is the problem [1]: https://i.stack.imgur.com/iosZa.png [2]: https://i.stack.imgur.com/Wk0xY.png

const stripe = require("stripe")(process.env.STRIPE_PRIVATE_KEY);
const bodyParser = require("body-parser");
const app = express();

app.post('/webhook', bodyParser.raw({type: 'application/json'}), (request, response) => {
  const payload = request.body;

  console.log("Got payload: " + payload);

  response.status(200);
});
about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

The issue is that response.status(200) does not actually send the response. For that you need to use sendStatus(200) (docs) or follow your status(200) with a send() (see docs).

Also this previous answer, related: https://stackoverflow.com/a/38621009/12474862

about 4 years ago · Santiago Gelvez 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