Cannot Fetching wih AXIOS,an i get "code": "ERR_INVALID_ARG_TYPE"

why "code": "ERR_INVALID_ARG_TYPE" ? class JobController { static async showJobs(req, res) { try { let … Read more Cannot Fetching wih AXIOS,an i get "code": "ERR_INVALID_ARG_TYPE"

why "code": "ERR_INVALID_ARG_TYPE" ?

class JobController {
    static async showJobs(req, res) {
      try {
        let url = 'http://dev3.dansmultipro.co.id/api/recruitment/positions.json'
        let job = await axios.get({
        method :'GET',
        url
        });
        res.status(200).json(job);
      } catch (err) {
        res.status(500).json(err);
      }
    }

"code": "ERR_INVALID_ARG_TYPE"

Source: JavaSript – Stack Overflow



Leave a Reply

Your email address will not be published. Required fields are marked *