     json: true
   if response.statusCode == 200
     senkaList = JSON.stringify(body)
-    fs.ensureDirSync(path.join(APPDATA_PATH, 'akashic-records', "#{memberId}", 'senkaList', "#{serverId}", '500'))
-    fs.appendFile(path.join(APPDATA_PATH, 'akashic-records', "#{memberId}", 'senkaList', "#{serverId}", '500', time), "#{senkaList}", 'utf8', (err)->
-      error "Write senkaList file error!" if err)
+    try
+      fs.ensureDirSync path.join(APPDATA_PATH, 'akashic-records', "#{memberId}", 'senkaList', "#{serverId}", '500')
+      fs.writeFileSync path.join(APPDATA_PATH, 'akashic-records', "#{memberId}", 'senkaList', "#{serverId}", '500', time), "#{senkaList}", 'utf8'
+    catch e
+      error "Write senkaList file error!#{e}"
     log "save server:#{serverId} senkaList(500) from senkame[#{time}]"
   else
     log response.statusCode

        tableData: list["list"]
        server: list["name"]
        date: dateStringFormat(list["date"])

  shouldComponentUpdate: (nextProps, nextState) ->
    refreshFlag = false

#    if @state.tableData.length < 10 and @props.memberId > 0
#      @updateSenkaList @state.showAmount, @state.serverId

  componentWillMount: () ->
    @updateSenkaList @state.showAmount, @state.serverId, @state.serverSelectedVersion

  componentWillReceiveProps: (nextProps) ->
    time = dateToString()
    if @props.memberId > 0 and @state.tableData.length < 10
      @updateSenkaList @state.showAmount, @state.serverId, @state.serverSelectedVersion

  handleCustomClick: ->
    showAmount = 500
    if not @state.downloadingFlag
      @updateSenkaList showAmount, @state.serverId, @state.serverSelectedVersion
      @setState
        showAmount: showAmount
      config.set "plugin.Akashic.senka.table.showAmount", showAmount
  handleMoreClick: ->
    showAmount = 990
    if not @state.downloadingFlag
      @updateSenkaList showAmount, @state.serverId, @state.serverSelectedVersion
      @setState
        showAmount: showAmount
      config.set "plugin.Akashic.senka.table.showAmount", showAmount

  handleFilterSelect: (e) ->
    serverId = parseInt e.target.value
    {serverSelectedVersion} = @state
    serverSelectedVersion += 1
    @updateSenkaList @state.showAmount, serverId, serverSelectedVersion
    @setState
      serverId: serverId
      serverSelectedVersion: serverSelectedVersion
    config.set "plugin.Akashic.senka.serverId", serverId

  render: ->
