Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

429
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!