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

1K
Views
Axios Obtener solicitud con Looker API

Estoy tratando de crear un lookerbot. Quiero que mi aplicación de nodo llegue al observador, pero sigo recibiendo este error:

 node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise */); ^ [UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "AxiosError: Request failed with status code 401".] { code: 'ERR_UNHANDLED_REJECTION' } Node.js v17.9.0 error Command failed with exit code 1.

Este es mi código:

 const axios = require('axios'); const qs = require('qs'); const SLACK_KEY = 'xoxb-1234'; const LOOKER_URL = 'https://xyz.abc.looker.com:19999/api/3.0/'; const LOOKER_CLIENT_ID = 'mnbv'; const LOOKER_CLIENT_SECRET = 'lkjh' axios.get(LOOKER_URL, { params: { 'clientId': LOOKER_CLIENT_ID, 'clientSecret': LOOKER_CLIENT_SECRET } }) .then(function (res) { console.log(res); })

No estoy seguro de cuál es mi error y cómo hacer que mi aplicación de nodo llegue a mi instancia de búsqueda.

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!