Encountered Uncaught (in promise) error in Es6 lottery course

in the course of learning "Es6 Lottery Project", I encountered a Uncaught (in promise) error

error pointing to this.getState (). Then. This sentence, moreover, get/state reported 404

interface.js
/**
   * 
   * @param  {string} issue []
   * @return {[type]}       [description]
   */
  getState(issue){
    let self = this;
    return new Promise((resolve, reject) => {
      $.ajax({
        url:"/get/state",
        data:{
          issue:issue
        },
        dataType:"json",
        success:function(res){
          resolve.call(self,res);
        },
        error:function(err){
          reject.call(err);
        }
      })
    })
  }
}
lottery.js
/**
   * [updateState ]
   * @return {[type]} [description]
   */
  updateState(){
    let self=this;
    this.getState().then(function(res){
      self.issue=res.issue;
      self.end_time=res.end_time;
      self.state=res.state;
      $(self.issue_el).text(res.issue);
      self.countdown(res.end_time,function(time){
        $(self.countdown_el).html(time)
      },function(){
        setTimeout(function () {
          self.updateState();
          self.getOmit(self.issue).then(function(res){

          });
          self.getOpenCode(self.issue).then(function(res){

          });
        }, 500);
      })
    })
  }

Please give me some advice if you know why. Thank you.

Mar.28,2021

has been resolved and the code has not been written.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a111-4d881.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a111-4d881.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?