[Vuejs]-Axios calls api, but does not return data to client

0👍

You should put a try catch around the axios call let response = await axios.get('groups/' + params.id) line to see whats wrong.

try {
     let response = await axios.get('groups/' + params.id);
    } catch (err) {
      console.error("Error response:");
      console.error(err.response.data); // ***
      console.error(err.response.status); // ***
      console.error(err.response.headers); // ***
    }

Leave a comment