So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By kaleun96
#58866 Hey guys,
I'm getting an Exception(3) error in serial when running a GetNextEventChoreo from Temboo to retrieve a Google Calendar event. I've spent hours looking but can't find someone with a similar issue. I've nailed the issue down to the GetNextEventChoreo.read(); command but don't know why it produces the error. Perhaps something to do with running out of memory?
I can run other scripts fine, such as the create event choreo (except for the part where it runs GetNextEventChoreo.read() to output the event it created).

Serial output and stack trace:
https://i.imgur.com/s81Z03p.jpg
NodeMCU ESP8266 ESP-12E:
http://www.banggood.com/Geekcreit-Doit- ... 85891.html
Temboo Choreo:
https://temboo.com/library/Library/Goog ... NextEvent/
Code:
Code: Select all#include <SPI.h>
//#include <WiFi.h>
#include <WiFiClient.h>
#include <Temboo.h>
#include "TembooAccount.h" // Contains Temboo account information
#include "ESP8266WiFi.h"
WiFiClient client;

int numRuns = 1;   // Execution count, so this doesn't run forever
int maxRuns = 10;   // Maximum number of times the Choreo should be executed


void setup() {
Serial.begin(9600);
//  WiFi.persist(false);
//  WiFi.disable(true);
  WiFi.begin(WIFI_SSID, WPA_PASSWORD);
  while (WiFi.status() != WL_CONNECTED) {
      delay(50);
  }
Serial.println(WiFi.localIP());
}

void loop() {
  if (numRuns <= maxRuns) {
    Serial.println("Running GetNextEvent - Run #" + String(numRuns++));

    TembooChoreo GetNextEventChoreo(client);

    // Invoke the Temboo client
    GetNextEventChoreo.begin();

    // Set Temboo account credentials
    GetNextEventChoreo.setAccountName(TEMBOO_ACCOUNT);
    GetNextEventChoreo.setAppKeyName(TEMBOO_APP_KEY_NAME);
    GetNextEventChoreo.setAppKey(TEMBOO_APP_KEY);

    // Set Choreo inputs
    String RefreshTokenValue = "";
    GetNextEventChoreo.addInput("RefreshToken", RefreshTokenValue);
    String ClientSecretValue = "";
    GetNextEventChoreo.addInput("ClientSecret", ClientSecretValue);
    String CalendarIDValue = "";
    GetNextEventChoreo.addInput("CalendarID", CalendarIDValue);
    String ClientIDValue = "";
    GetNextEventChoreo.addInput("ClientID", ClientIDValue);

    // Identify the Choreo to run
    GetNextEventChoreo.setChoreo("/Library/Google/Calendar/GetNextEvent");

        // Run the Choreo; when results are available, print them to serial
    GetNextEventChoreo.run();
    while(GetNextEventChoreo.available()) {
      int c = GetNextEventChoreo.read();
      Serial.println(c);
      delay(50);
    }
    GetNextEventChoreo.close();
  }
  Serial.println("\nWaiting...\n");
  delay(5000); // wait 30 seconds between GetNextEvent calls
}