Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

EmailReadMessages() ERROR

Featured Replies

  • Newbies

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

  • Author
  • Newbies

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.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.