Jump to content
Sign in to follow this  
MrSmilliamson

EmailReadMessages() ERROR

Recommended Posts

Having changed nothing on my server or script that has been functioning fine for several months, I'm now getting an error when trying to fetch messages via the EmailReadMessages() function.

“java.lang.NumberFormatException: For input string: “null””

The log file says:

Jun 26, 2019 2:49:10 PM com.prosc.fmkit.Plugin setLastError
SEVERE: PluginFunction PluginFunction{name='EmailReadMessages', minArgs=0, maxArgs=-1} got an error with converted args [[uid=null, mailbox=INBOX, readonly=false, attachmentsAll=true, max=5, progress=true]]

I am passing the uid via a $uid variable, and if I Show Custom Dialog in a script step, the $uid variable is indeed set.

Thank you,

  - Justin

360Works_Email_FMAdvanced.log

Share this post


Link to post
Share on other sites

In case anyone else gets this particular situation:

For some reason, the IMAP server that I’m connected to must have passed, literally, “null” as a message id (strange). Then, when we went to find all messages with an id greater than “null”, we had a problem.
 
I’ve cleared that field, made my script so that it won’t write null into the uid field, and all seems to be well.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    2 members have viewed this topic:
    mvoogt  rwoods 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.