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

224
Views
Obtenga 401 cuando use una llamada ajax para recuperar datos de couchdb

Intento usar la llamada ajax en el archivo js para recuperar datos de couchdb.

Pero recibí el error 401: Error al cargar el recurso: el servidor respondió con un estado de 401 (No autorizado)

Aquí está mi código js:

 var locate_data = $.ajax({ url: 'http://admin:mypassword@localhost:5984/database_name', type:'GET', dataType: "json", success: function(data){ console.log("successfully loaded."), alert(data); }, error: function(xhr) { console.log("error"), alert(xhr.statusText) } })

Puedo usar 'curl GET' para obtener los datos de couchdb usando la terminal.

¿Cuál es el problema? y como puedo solucionarlo?

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!