Olyno / SkEmail

Skript addon to send emails
8 stars 3 forks source link

Content of email can't be viewed #44

Closed HC-Emro closed 4 years ago

HC-Emro commented 4 years ago

Versions:

I'm using a minecraft server 1.15.2 PaperMC build 368 I'm using skript version 2.5-alpha3 I'm using SkEmail version 1.7

About the issue:

I got a java error:

.... [22:39:09 ERROR]: #!#!
.... [22:39:09 ERROR]: #!#! [Skript] Severe Error:
.... [22:39:09 ERROR]: #!#!
.... [22:39:09 ERROR]: #!#! Something went horribly wrong with Skript.
.... [22:39:09 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
.... [22:39:09 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
.... [22:39:09 ERROR]: #!#! Here is full list of them:
.... [22:39:09 ERROR]: #!#! skRayFall v1.9.20 (https://sk.rayfall.net/) Vixio v2.0.4 (http://vixio.space) TuSKe v1.8.2-Pikachu-Patch-3 (github.com/Tuke-Nuke/TuSKe) ThatPacketAddon v1.0-BETA.3 (tlatoani.us/thatpacketaddon) Skacket v1.0.2 Skellett v1.9.8 (https://forums.skunity.com/resources/skellett.24/) Skore v1.0.1 SharpSK v1.6.3 Skent v1.9 RandomSk v2.7.2 skript-mirror v2.0.0-SNAPSHOT (https://github.com/btk5h/skript-mirror) skUtilities v0.9.2 (https://tim740.github.io/) SkBee v1.3.0 SkQuery v3.6.5 SkEmail v1.7
.... [22:39:09 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
.... [22:39:09 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
.... [22:39:09 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
.... [22:39:09 ERROR]: #!#! In that case, you will be given instruction on how should you report it.
.... [22:39:09 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
.... [22:39:09 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
.... [22:39:09 ERROR]: #!#!
.... [22:39:09 ERROR]: #!#! Stack trace:
.... [22:39:09 ERROR]: #!#! java.lang.ClassCastException: com.sun.mail.imap.IMAPInputStream cannot be cast to javax.mail.internet.MimeMultipart
.... [22:39:09 ERROR]: #!#! at com.olyno.skemail.Utils.getTextFromMessage(Utils.java:16)
.... [22:39:09 ERROR]: #!#! at com.olyno.skemail.expressions.ExprBodyOfEmail.convert(ExprBodyOfEmail.java:39)
.... [22:39:09 ERROR]: #!#! at com.olyno.skemail.expressions.ExprBodyOfEmail.convert(ExprBodyOfEmail.java:21)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.registrations.Converters.convert(Converters.java:391)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.registrations.Converters.convertUnsafe(Converters.java:382)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:104)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.expressions.base.SimplePropertyExpression.get(SimplePropertyExpression.java:55)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:75)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:102)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.VariableString.toString(VariableString.java:477)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.VariableString.getArray(VariableString.java:726)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.VariableString.getArray(VariableString.java:1)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.effects.EffBroadcast.execute(EffBroadcast.java:66)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.events.EvtPeriodical.execute(EvtPeriodical.java:96)
.... [22:39:09 ERROR]: #!#! at ch.njol.skript.events.EvtPeriodical$1.run(EvtPeriodical.java:110)
.... [22:39:09 ERROR]: #!#! at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:99)
.... [22:39:09 ERROR]: #!#! at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
.... [22:39:09 ERROR]: #!#! at java.lang.Thread.run(Thread.java:748)
.... [22:39:09 ERROR]: #!#!
.... [22:39:09 ERROR]: #!#! Version Information:
.... [22:39:09 ERROR]: #!#! Skript: 2.5-alpha3 (latest)
.... [22:39:09 ERROR]: #!#! Flavor: skriptlang-github
.... [22:39:09 ERROR]: #!#! Date: 2020-03-28
.... [22:39:09 ERROR]: #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT
.... [22:39:09 ERROR]: #!#! Minecraft: 1.15.2
.... [22:39:09 ERROR]: #!#! OS: Linux amd64 4.9.0-12-amd64
.... [22:39:09 ERROR]: #!#!
.... [22:39:09 ERROR]: #!#!
.... [22:39:09 ERROR]: #!#! Current node: null
.... [22:39:09 ERROR]: #!#! Current item: broadcast "The content of last email is %the body of {_mails::1}(as javax.mail.Message)%"
.... [22:39:09 ERROR]: #!#! Current trigger: Every 10 second (every 10 seconds) (.secu.sk, line 1)
.... [22:39:09 ERROR]: #!#!
.... [22:39:09 ERROR]: #!#!
.... [22:39:09 ERROR]: #!#! Language: english
.... [22:39:09 ERROR]: #!#! Link parse mode: LENIENT
.... [22:39:09 ERROR]: #!#!
.... [22:39:09 ERROR]: #!#! End of Error.
.... [22:39:09 ERROR]: #!#!

My code is:

Every 10 second:
  set {_mails::*} to last 2 mails
    broadcast "The content of %body of {_mails::1}%"

I think the problem comes from I don't know, the expression should work. Thanks for the help !

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.82. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Olyno commented 4 years ago

I can't reproduce your issue. What looks like your email? Do you have any attachment to it? (You should blur the text of your email if it's a confidential email when sending me the screenshot)

HC-Emro commented 4 years ago

image

HC-Emro commented 4 years ago

.... [19:51:52 ERROR]: #!#! .... [19:51:52 ERROR]: #!#! [Skript] Severe Error: .... [19:51:52 ERROR]: #!#! .... [19:51:52 ERROR]: #!#! Something went horribly wrong with Skript. .... [19:51:52 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either. .... [19:51:52 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons). .... [19:51:52 ERROR]: #!#! Here is full list of them: .... [19:51:52 ERROR]: #!#! skRayFall v1.9.20 (https://sk.rayfall.net/) Vixio v2.0.4 (http://vixio.space) TuSKe v1.8.2-Pikachu-Patch-3 (github.com/Tuke-Nuke/TuSKe) ThatPacketAddon v1.0-BETA.3 (tlatoani.us/thatpacketaddon) Skacket v1.0.2 Skellett v1.9.8 (https://forums.skunity.com/resources/skellett.24/) Skore v1.0.1 SharpSK v1.6.3 Skent v1.9 RandomSk v2.7.2 skript-mirror v2.0.0-SNAPSHOT (https://github.com/btk5h/skript-mirror) skUtilities v0.9.2 (https://tim740.github.io/) SkBee v1.3.0 SkQuery v3.6.5 SkEmail v1.7 .... [19:51:52 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue. .... [19:51:52 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it. .... [19:51:52 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue. .... [19:51:52 ERROR]: #!#! In that case, you will be given instruction on how should you report it. .... [19:51:52 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin. .... [19:51:52 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker. .... [19:51:52 ERROR]: #!#! .... [19:51:52 ERROR]: #!#! Stack trace: .... [19:51:52 ERROR]: #!#! java.lang.NullPointerException .... [19:51:52 ERROR]: #!#! at java.nio.file.Files.provider(Files.java:97) .... [19:51:52 ERROR]: #!#! at java.nio.file.Files.exists(Files.java:2385) .... [19:51:52 ERROR]: #!#! at com.olyno.skent.skript.expressions.ExprContent.get(ExprContent.java:57) .... [19:51:52 ERROR]: #!#! at com.olyno.skent.skript.expressions.ExprContent.get(ExprContent.java:24) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:102) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.lang.VariableString.toString(VariableString.java:477) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.lang.VariableString.getArray(VariableString.java:726) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.lang.VariableString.getArray(VariableString.java:1) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.effects.EffBroadcast.execute(EffBroadcast.java:66) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:57) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:292) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:251) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:251) .... [19:51:52 ERROR]: #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:168) .... [19:51:52 ERROR]: #!#! at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37) .... [19:51:52 ERROR]: #!#! at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) .... [19:51:52 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) .... [19:51:52 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) .... [19:51:52 ERROR]: #!#! at java.lang.Thread.run(Thread.java:748) .... [19:51:52 ERROR]: #!#! .... [19:51:52 ERROR]: #!#! Version Information: .... [19:51:52 ERROR]: #!#! Skript: 2.5-alpha3 (latest) .... [19:51:52 ERROR]: #!#! Flavor: skriptlang-github .... [19:51:52 ERROR]: #!#! Date: 2020-03-28 .... [19:51:52 ERROR]: #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT .... [19:51:52 ERROR]: #!#! Minecraft: 1.15.2 .... [19:51:52 ERROR]: #!#! OS: Linux amd64 4.9.0-12-amd64 .... [19:51:52 ERROR]: #!#! .... [19:51:52 ERROR]: #!#! .... [19:51:52 ERROR]: #!#! Current node: null .... [19:51:52 ERROR]: #!#! Current item: broadcast "The content of last email is %content of {_mails::1}(as java.nio.file.Path)%" .... [19:51:52 ERROR]: #!#! Current trigger: command /read (simple event) (.secu.sk, line -1) .... [19:51:52 ERROR]: #!#! .... [19:51:52 ERROR]: #!#! .... [19:51:52 ERROR]: #!#! Language: english .... [19:51:52 ERROR]: #!#! Link parse mode: LENIENT .... [19:51:52 ERROR]: #!#! .... [19:51:52 ERROR]: #!#! End of Error. .... [19:51:52 ERROR]: #!#!

The Same error with this email:

image

Olyno commented 4 years ago

The 2nd error you gave me is not related to SkEmail, but it is related to Skent, please don't shuffle both addons

Edit: This error comes from a conflict between Skent and SkEmail. It still an issue that I created here

HC-Emro commented 4 years ago

Ok, I changed the "content" to "body", now it gives me that error:

.... [20:48:42 ERROR]: #!#! .... [20:48:42 ERROR]: #!#! [Skript] Severe Error: .... [20:48:42 ERROR]: #!#! .... [20:48:42 ERROR]: #!#! Something went horribly wrong with Skript. .... [20:48:42 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either. .... [20:48:42 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons). .... [20:48:42 ERROR]: #!#! Here is full list of them: .... [20:48:42 ERROR]: #!#! skRayFall v1.9.20 (https://sk.rayfall.net/) Vixio v2.0.4 (http://vixio.space) TuSKe v1.8.2-Pikachu-Patch-3 (github.com/Tuke-Nuke/TuSKe) ThatPacketAddon v1.0-BETA.3 (tlatoani.us/thatpacketaddon) Skacket v1.0.2 Skellett v1.9.8 (https://forums.skunity.com/resources/skellett.24/) Skore v1.0.1 SharpSK v1.6.3 Skent v1.9 RandomSk v2.7.2 skript-mirror v2.0.0-SNAPSHOT (https://github.com/btk5h/skript-mirror) skUtilities v0.9.2 (https://tim740.github.io/) SkBee v1.3.0 SkQuery v3.6.5 SkEmail v1.7 .... [20:48:42 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue. .... [20:48:42 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it. .... [20:48:42 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue. .... [20:48:42 ERROR]: #!#! In that case, you will be given instruction on how should you report it. .... [20:48:42 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin. .... [20:48:42 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker. .... [20:48:42 ERROR]: #!#! .... [20:48:42 ERROR]: #!#! Stack trace: .... [20:48:42 ERROR]: #!#! java.lang.ClassCastException: com.sun.mail.imap.IMAPInputStream cannot be cast to javax.mail.internet.MimeMultipart .... [20:48:42 ERROR]: #!#! at com.olyno.skemail.Utils.getTextFromMessage(Utils.java:16) .... [20:48:42 ERROR]: #!#! at com.olyno.skemail.expressions.ExprBodyOfEmail.convert(ExprBodyOfEmail.java:39) .... [20:48:42 ERROR]: #!#! at com.olyno.skemail.expressions.ExprBodyOfEmail.convert(ExprBodyOfEmail.java:21) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.registrations.Converters.convert(Converters.java:391) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.registrations.Converters.convertUnsafe(Converters.java:382) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:104) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.expressions.base.SimplePropertyExpression.get(SimplePropertyExpression.java:55) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:75) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:102) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.lang.VariableString.toString(VariableString.java:477) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.lang.VariableString.getArray(VariableString.java:726) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.lang.VariableString.getArray(VariableString.java:1) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.effects.EffBroadcast.execute(EffBroadcast.java:66) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:57) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:292) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:251) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:251) .... [20:48:42 ERROR]: #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:168) .... [20:48:42 ERROR]: #!#! at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37) .... [20:48:42 ERROR]: #!#! at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) .... [20:48:42 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) .... [20:48:42 ERROR]: #!#! at java.lang.Thread.run(Thread.java:748) .... [20:48:42 ERROR]: #!#! .... [20:48:42 ERROR]: #!#! Version Information: .... [20:48:42 ERROR]: #!#! Skript: 2.5-alpha3 (latest) .... [20:48:42 ERROR]: #!#! Flavor: skriptlang-github .... [20:48:42 ERROR]: #!#! Date: 2020-03-28 .... [20:48:42 ERROR]: #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT .... [20:48:42 ERROR]: #!#! Minecraft: 1.15.2 .... [20:48:42 ERROR]: #!#! OS: Linux amd64 4.9.0-12-amd64 .... [20:48:42 ERROR]: #!#! .... [20:48:42 ERROR]: #!#! .... [20:48:42 ERROR]: #!#! Current node: null .... [20:48:42 ERROR]: #!#! Current item: broadcast "The content of last email is %the body of {_mails::1}(as javax.mail.Message)%" .... [20:48:42 ERROR]: #!#! Current trigger: command /read (simple event) (.secu.sk, line -1) .... [20:48:42 ERROR]: #!#! .... [20:48:42 ERROR]: #!#! .... [20:48:42 ERROR]: #!#! Language: english .... [20:48:42 ERROR]: #!#! Link parse mode: LENIENT .... [20:48:42 ERROR]: #!#! .... [20:48:42 ERROR]: #!#! End of Error. .... [20:48:42 ERROR]: #!#!

Code:

command /read: trigger: set {_mails::*} to last 2 mails broadcast "The content of last email is %body of {_mails::1}%"

HC-Emro commented 4 years ago

UP ! Do you have a solution for this or not ?

Olyno commented 4 years ago

Needn't any "up". It's an issue. So while your issue is open, it means the issue is not fixed, so please be patient and wait any news from me.

HC-Emro commented 4 years ago

I can pay you if you want, I really need to read mails for my own shop api. Here is my discord if you want: ! HC™ Emro#0001