Why HTTP_UPDATE_FAILD Error during OTA updation?

0


I have try to OTA updation   in ESP8266  Using my server https domain name.
domain name work quit normal.

But HTTP_UPDATE_FAILD Error  is come.

why this happen?

i am added,   update fucntion(i am using )  and arduino serial window during HTTPS UPDATE …

// Check for a firmware update
  LOG("Checking for firmware, same URL.\r\n");
  Result = ESPhttpUpdate.update(HTTPSURL,Fingerprint);

  // if successful, ESP will restart
  LOG("Oh noes, update failed!\r\nResult:");
  LOG(Result);
  LOG("\r\n");

  switch(Result) {
    case HTTP_UPDATE_FAILED:
        sprintf((char *)Buffer, "Update failed, error %d: %s\r\n", ESPhttpUpdate.getLastError(), ESPhttpUpdate.getLastErrorString().c_str());
        LOG((char *)Buffer);
        break;
    case HTTP_UPDATE_NO_UPDATES:
        LOG("No update available.\r\n");
        break;
    case HTTP_UPDATE_OK:
        LOG("You shouldn't see this message because I should be rebooting :)\r\n");
        break;
  }


note :LOG is #defined serial.println ()