Olyno / SkEmail

Skript addon to send emails
8 stars 3 forks source link

Gmail login issue #81

Closed dominikd1977 closed 1 year ago

dominikd1977 commented 2 years ago

<--! To make sure you have all the keys in hand to be able to help you, I invite you to fill out the form as proposed below, including information about your server. Are you ready to go? Let's do it! (just delete wrong informations) -->

Versions:

I'm using a minecraft server This server is running CraftBukkit version 3486-Spigot-b6d12d1-f3c7a6a (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) I'm using skript version Skript version 2.6.1 I'm using SkEmail version SkEmail version 1.7

About the issue:

I got a [java|skript] error:

>
[14:31:09] [Server thread/ERROR]: #!#! [Skript] Severe Error:
>
[14:31:09] [Server thread/ERROR]: #!#! Could not load auth.sk
>
[14:31:09] [Server thread/ERROR]: #!#!
>
[14:31:09] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
>
[14:31:09] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
>
[14:31:09] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
>
[14:31:09] [Server thread/ERROR]: #!#! Here is full list of them:
>
[14:31:09] [Server thread/ERROR]: #!#! skript-placeholders v1.5.2 (https://github.com/APickledWalrus/skript-placeholders) skRayFall v1.9.27 (https://sk.rayfall.net/) Vixio v2.0.9-pre4 (http://vixio.space) SkBee v1.15.3 (https://github.com/ShaneBeee/SkBee) Skungee v2.0.0-BETA-3 Skacket v1.0.9 Skellett v2.0.3 (https://forums.skunity.com/resources/skellett.24/) Reqn v1.2.1 Ticker v1.0.0 Skent v3.1.0 skript-db v1.3.6 RandomSk v2.7.2 skript-reflect v2.3 (https://github.com/TPGamesNL/skript-reflect) Skript-Packet v2.0.1 (www.github.com/Anarchick/skript-packet) skript-yaml v1.3.2 SkQuery v4.1.6 SkEmail v1.7
>
[14:31:09] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
>
[14:31:09] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
>
[14:31:09] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
>
[14:31:09] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
>
[14:31:09] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
>
[14:31:09] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
>
[14:31:09] [Server thread/ERROR]: #!#!
>
[14:31:09] [Server thread/ERROR]: #!#! Stack trace:
>
[14:31:09] [Server thread/ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for citizen
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:263)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.patterns.TypePatternElement.fromString(TypePatternElement.java:92)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:132)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.patterns.PatternCompiler.compile(PatternCompiler.java:48)
>
[14:31:09] [Server thread/ERROR]: #!#!     at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1301)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:226)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Statement.parse(Statement.java:61)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1113)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:752)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$loadScripts$4(ScriptLoader.java:525)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:417)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:433)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:524)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.ScriptLoader.reloadScript(ScriptLoader.java:1060)
>
[14:31:09] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:171)
>
[14:31:09] [Server thread/ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
>
[14:31:09] [Server thread/ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149)
>
[14:31:09] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchCommand(CraftServer.java:826)
>
[14:31:09] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_18_R2.CraftServer.dispatchServerCommand(CraftServer.java:811)
>
[14:31:09] [Server thread/ERROR]: #!#!     at net.minecraft.server.dedicated.DedicatedServer.be(DedicatedServer.java:454)
>
[14:31:09] [Server thread/ERROR]: #!#!     at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:430)
>
[14:31:09] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1237)
>
[14:31:09] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1047)
>
[14:31:09] [Server thread/ERROR]: #!#!     at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:304)
>
[14:31:09] [Server thread/ERROR]: #!#!     at java.base/java.lang.Thread.run(Thread.java:833)
>
[14:31:09] [Server thread/ERROR]: #!#!
>
[14:31:09] [Server thread/ERROR]: #!#! Version Information:
>
[14:31:09] [Server thread/ERROR]: #!#!   Skript: 2.6.1 (latest)
>
[14:31:09] [Server thread/ERROR]: #!#!     Flavor: skriptlang-github
>
[14:31:09] [Server thread/ERROR]: #!#!     Date: 22:18:42.554713200
>
[14:31:09] [Server thread/ERROR]: #!#!   Bukkit: 1.18.2-R0.1-SNAPSHOT
>
[14:31:09] [Server thread/ERROR]: #!#!   Minecraft: 1.18.2
>
[14:31:09] [Server thread/ERROR]: #!#!   Java: 17.0.2 (OpenJDK 64-Bit Server VM 17.0.2+8-Debian-1deb11u1)
>
[14:31:09] [Server thread/ERROR]: #!#!   OS: Linux amd64 5.10.8-xanmod1
>
[14:31:09] [Server thread/ERROR]: #!#!
>
[14:31:09] [Server thread/ERROR]: #!#! Server platform: Spigot
>
[14:31:09] [Server thread/ERROR]: #!#!
>
[14:31:09] [Server thread/ERROR]: #!#! Current node: login to gmail service from mail "funclub.hu@gmail.com" and password "asd" (auth.sk, line 3)
>
[14:31:09] [Server thread/ERROR]: #!#! Current item: null
>
[14:31:09] [Server thread/ERROR]: #!#!
>
[14:31:09] [Server thread/ERROR]: #!#! Thread: Server thread
>
[14:31:09] [Server thread/ERROR]: #!#!
>
[14:31:09] [Server thread/ERROR]: #!#! Language: english
>
[14:31:09] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
>
[14:31:09] [Server thread/ERROR]: #!#!
>
[14:31:09] [Server thread/ERROR]: #!#! End of Error.

My code is:

[put your code here]

I think the problem comes from I dont have an idea..

Olyno commented 2 years ago

Hi 👋🏻 Thanks you for your report. Can you try to downgrade your Skript version and your server version to check if it comes from an incompatible version of SkEmail?

dominikd1977 commented 2 years ago

Hey. I just tried doing that, I use skript dev37c and minecraft spigot 1.12.2 and latest skemail. The error disappeard but now I have a different problem. I basically used the example code from you but its just not logging in. I did everything step by step in the account, enabled unsafe apps to login and enabled Imap access but when I run the code I just get this error "[15:32:39 INFO]: [SkEmail] You must to be login to a mail account before send an email." Even tho there is the login in the on load event. Iam using gmail as my email provider. Also I wanted to try using it on the latest version since there was someone else in issues that had a problem on the same version, 1.18 and latest skript but he just messed up the login.

Olyno commented 2 years ago

Alright, first you can update Skript to the version 2.5.3, it should work without the first error you got. After that, be sure you followed the disclaimer. Think to check your mails because sometimes Google ask you to confirm the connection.

dominikd1977 commented 2 years ago

Changed skript to version 2.5.3, followed disclaimer. Somehow still getting the same error message. image

on load:
    login to gmail service from mail "funclub.hu@gmail.com" and password "*************"

on email connected:
    broadcast "Siker"

command send:
    trigger:
        make new email:
            set object of email to "Test email"
            set body of email to "Look my beautiful email my friend!"
            set receiver of email to "demkodominik1@gmail.com"
        send last email created
Olyno commented 2 years ago

Because of Discord webhooks, we got your password. Please change your password fast (editing a github message doesn't delete the old one). Also, did you try all disclaimer steps?

dominikd1977 commented 2 years ago

Yes I tried all of them, and the error remains. Btw thanks for letting me know.

Olyno commented 2 years ago

Unfortunately, i have no idea why you still have this error. I will investigate this issue as soon as possible. Hopefully the next release will fix that.

dominikd1977 commented 2 years ago

If you want to I can send you my exact server file, so you can try it yourself there. Also I found this in the google account settings, does this mean that gmail wont be supported after may 30?

image

Olyno commented 2 years ago

Indeed, after may 30th you will need to setup an "email password". You can find more information here

dominikd1977 commented 2 years ago

Okay, after a bit of trying around my friend got it working in a weird way, on a 1.8.8 spigot server with a very outdated skript (cant remember the version have to ask him) skemail works, when running the command for it it returns an unknown command message like the command didnt exist, I think thats because of the skript version but the same time the email gets send, also he said he used a way older version of skemail. Not sure if this information can help you anything. I can ask for exact version numbers if that would be better. Also thanks for helping me with my issue.

Olyno commented 2 years ago

Sure! It would be really useful for me to know which versions he used

dominikd1977 commented 2 years ago

The versions he used: skemail: 1.5, minecraft: 1.8.8, skript: 2.1.1

Olyno commented 1 year ago

I'm closing this issue due to the latest version. Please try again with the latest version. If it still not work, feel free to comment with new informations, and i will reopen the issue.