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

171
Views
TypeError no capturado: no se pueden leer las propiedades de nulo (leyendo 'variaciones')

Tengo mis errores de lista de extensiones de Chrome en la pestaña de extensiones, pero no está completando el código que estoy usando try/catch.

En este código, si el texto de respuesta no contiene variaciones de hormigas, Chrome muestra el TypeError no capturado, pero NO ejecuta el archivo catch console.log

 try{ $price_test =http.responseText; var txt = http.response; var obj = JSON.parse(txt); var prueba = obj.result.variations[0]; }catch (error) { console.log('error') }

¿Cómo puedo hacer que Try/catch detecte el error en lugar de que Chrome detenga el código allí?

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!