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

180
Views
Obteniendo el error de autenticación "No se pueden encontrar las credenciales en la solicitud" cuando realizo una solicitud POST en la automatización de Cypress

Estoy haciendo una solicitud POST en Cypress Automation pero sigo recibiendo un error de autenticación. El punto final requiere autenticación básica.

 "error": "AuthenticationError", "text": "Unable to find credentials in request". Here is my request: cy.request({ url: 'TEST ENDPOINT', method : 'POST', auth: { username: 'test@test.com', password: 'test1' }, body: { "firstname": "Bruce", "lastname": "lee" }); });

Cuando llego al mismo punto final en POSTMAN, funciona como se esperaba. No estoy seguro de lo que está mal con mi solicitud.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No hay una clave llamada "autorización", debe usar el encabezado para pasar su token o la clave de autenticación.

 method: 'POST', url: url, headers: { 'content-type': 'application/json', 'Accept': 'application/json', 'Authorization':'Bearer '+token }, body: JSON.stringify(body)
about 4 years ago · Juan Pablo Isaza 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!