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

85
Views
Agregue la espera para la solicitud POST a la API de Slack

Quiero enviar un mensaje a Slack hook usando código JavaScript:

 const slackEndpoint = 'https://hooks.slack.com/services/.........'; axios.post(slackEndpoint, {text: message}) .then(response =>{ return response.statusText}) .catch((error) => console.log(error));

Pero de vez en cuando me dan tiempo fuera. Traté de agregar await así:

 const slackEndpoint = 'https://hooks.slack.com/services/.........'; await axios.post(slackEndpoint, {text: message}) .then(response =>{ return response.statusText}) .catch((error) => console.log(error));

Pero cuando envío un mensaje no pasa nada. ¿Sabes cuál puede ser el problema?

about 4 years ago · Juan Pablo Isaza
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!