url.URL 不是构造函数类型错误:url.URL 不是构造函数

问题描述

sendMessage(business){
    const accountSid = 'yyyyyyyyyyyyyyyyyyyyyyy';
    const authToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
    const client = new Twilio(accountSid,authToken);
    client.messages
      .create({
         body: 'Hello sir/Madam,Please be notified that your business has been successfuly Registerred on Imuka Online platform,login with your email and phone number as password,http://app.imuka.co/#/login ',from: '+15017122661',statusCallback: 'http://postb.in/1234abcd',to:business.phone
       })
      .then(message => console.log(message.sid));
  
  
   }

url.URL 不是构造函数类型错误:url.URL 不是构造函数是我得到的错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)