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

341
Views
Error de referencia: el cliente no está definido

Estoy creando una llamada API REST en jira usando el siguiente código: -

var loginArgs = {

 data: { "username": "singhharwinder@seasiainfotech.com", "password": "Seasia@123" }, headers: { "Content-Type": "application/json" }

};

cliente.post(" http://jira.atlassian.com/rest/auth/1/session ",

loginArgs, función (datos, respuesta) {

 if (response.statusCode == 200) { console.log('succesfully logged in, session:', data.session); var session = data.session; var searchArgs = { headers: { cookie: session.name + '=' + session.value, "Content-Type": "application/json" }, data: { jql: "type=Bug AND status=Closed" } }; client.post("http://jira.atlassian.com/rest/api/2/search", searchArgs, function (searchResult, response) { console.log('status code:', response.statusCode); console.log('search result:', searchResult); }); } else { throw "Login failed :("; }

});

Me está dando "Error de referencia: el cliente no está definido". Por favor, ayúdame .

over 4 years ago · Santiago Trujillo
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!