Hi everyone!
I am trying to run the following Lambda code, but it returns the error as described in the title. Is this not possible, or am I doing something wrong? I believe that the Axios library is included in Xano.
const axios = require('axios');
const chessUrl = 'https://api.chess.com/pub';const user = input.username;
axios.get(`${chessUrl}/player/${user}/games/archives`)Â .then(response => Promise.all(response.data.archives.map(url => axios.get(url))))Â .then(responses => {Â Â const games = responses.flatMap(response => response.data.games);Â Â console.log(JSON.stringify(games));Â })Â .catch(error => {Â Â console.error(`Error: ${error.message}`);Â });
Thanks for checking!
Kind regards,
Robert