freman | 2020-10-06 00:04:42 UTC | #1
So we want to add a flow for inbound email called Route to Spam-All with the intent of updating all our inbound emails to route spam to this flow.
So far we've had a really good run with Archy but it is falling over with this one task
- ERROR! session startup initialization for startWithClientIdAndSecret complete. Caught unhandled exception waiting for callback function returned promise to resolve. - ERROR! ArchSession.startWithClientIdAndSecret - Caught unhandled exception during callback function execution. Ending session. Exception info: TypeError: undefined is not a function - ERROR! ending the Session. Setting the exit code to 99.
I'm not sure why we're getting an "undefined is not a function", I've run a refresh and everything
inboundEmail: defaultLanguage: en-au name: Route to Spam-All startUpRef: ./tasks/task[handleSpam] tasks:
name: "Handle spam" refId: handleSpam actions:
targetQueue: lit: name: Spam-All
name: "Disconnect"
freman | 2020-10-06 00:11:52 UTC | #2
Figured it out, emails are like chats, they have state not tasks?
inboundEmail: defaultLanguage: en-au name: 'Route to Spam-All' startUpRef: ./states/state[initialState] states:
name: Initial State refId: initialState actions:
targetQueue: lit: name: Spam-All
name: "Disconnect"
Prolly need a warning or something when one does it backwards
jon.vansteen | 2020-10-06 11:45:34 UTC | #3
Hi freman,
I'll definitely look into better handling for this. Thanks for reporting this issue!
Thanks, Jon
system | 2020-11-05 11:54:18 UTC | #4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 8980