twitter.wait() is hanging for 4 mins in NeoCat's Twitter for Arduino library

Hello. I use NeoCat's Twitter for Arduino library. I just updated the Twitter library to fix the December 5, 2018 403 error.

The 403 error is fixed but now I have a new problem: twitter.wait() is hanging for 4 minutes before returning 200 (tweet successful).

Below is the portion of my code where the issue occurs. I added several "Serial.print"'s before and after "status = twitter.wait();". The serial output is below the code:

boolean sendTweet(char* hashtag, char* tag, boolean open){ 
  if(open){
    delay(500);                                                  
    strcpy(tweet, msg_OPEN);                  
    strcat(tweet, hashtag);
    strcat(tweet, msg_asOf);
    if (hour12 > 9)                                                                  
      strcat(tweet, " ");  
    strcat(tweet, timestamp);  
    strcat(tweet, tag);
  } else {
    delay(500);                                                  
    strcpy(tweet, hashtag);
    strcat(tweet, msg_asOf);
    if (hour12 > 9)
      strcat(tweet, " ");
    strcat(tweet, timestamp);
    strcat(tweet, tag);
  }
  
  lcd.clear();                                                                         
  
  if (twitter.post(tweet)) {

    Serial.println("Tweet sent");
    Serial.println("About to check twitter.wait()");

    status = twitter.wait();

    Serial.println("twitter.wait() checked");
    Serial.print("Status: ");
    Serial.println(status);

    if (status == 200) {
      lcd.print("Tweet sent!");

   Serial.println("Tweet sent");

      lcd.setCursor(0,2);                                                                  
      lcd.print(statusString);
      delay(2000);
      return 1;
    } else {
      lcd.clear();
      lcd.print("Failure! Error ");                        
      lcd.print(status);
      delay(2000);                                                                      
      strcpy(statusString, "ERROR Tweet not sent");
      lcd.setCursor(0,2);                                                                        
      lcd.print(statusString);
      lcd.setCursor(0,3);
      lcd.print("Wait 1 min ");                                  
      // one minute required by NeoCat  
      delay(60000);
      
      return 0;
    }
  } else {
    lcd.clear();
    lcd.print("Connection failed.");
    delay(2000);
    strcpy(statusString, "ERROR Tweet not sent");    
    return 0;
  }  
}

Here is the Serial output:

Tweet sent
About to check twitter.wait()
twitter.wait() checked
Status: 200
Tweet sent

The time between "About to check twitter.wait()" and "twitter.wait() checked" appears to be exactly 4 minutes.

Is it a problem with my code or are others experiencing this?

Thank you, Jeremy

Same here! I'm using Arduino alpha 0022 with NeoCat's library for Botanicalls: https://www.botanicalls.com/ from Rob Faludi.

First I was using "Library-Twitter-1.2.2", all worked fine, until Twitter changed things in dec 2018; 403 error occured :-(

Upgraded to "Library-Twitter-1.3" from http://arduino-tweet.appspot.com/, but that didn't do the trick. Had to download twitter.cpp from https://github.com/NeoCat/Arduno-Twitter-library. Now machine tweets are possible again :) It looks like the tweet is done quickly, but the feedback takes a long time...idk...something takes forever in this process. As my code didn't change, the issue is caused somewhere else...