随机色图插件
-
@死亡孤独 应该是被风控了,站内有专门的帖子说明
-
发送“来张图 setu”指令,ssh显示正确获取了图片链接,但消息发不出来,其他接口可以正常发送
-
@okatu-loli 用的是最新版本吗
-
@ycituss 是
-
@okatu-loli 有详细的输出吗,我这测试挺正常的
2021-11-17 18:01:53 V/Bot.1613926941: [实验一(966348161)] Ycitus(2799282971) -> gkd setu 2021-11-17 18:02:01 I/stdout: {"error":"","data":[{"pid":86827729,"p":0,"uid":16034374,"title":"无题","author":"绊","r18":false,"width":5871,"height":4175,"tags":["フィッシュル(原神)","菲谢尔(原神)","原神","Genshin Impact","足?","脚底","フィッシュル·ヴォン·ルフシュロス·ナフィ?ドット","菲谢尔?冯?露弗施洛斯?那菲多特"],"ext":"jpg","uploadDate":1609776499000,"urls":{"small":"https://i.pixiv.cat/c/540x540_70/img-master/img/2021/01/05/01/08/19/86827729_p0_master1200.jpg"}}]} 2021-11-17 18:02:06 V/Bot.1613926941: Group(966348161) <- [mirai:image:{EC9DB0B9-96F2-B731-4C75-9419F5E0758C}.jpg] > 2021-11-17 18:09:21 V/Bot.1613926941: [实验一(966348161)] Ycitus(2799282971) -> gkd setu 2021-11-17 18:09:27 I/stdout: {"error":"","data":[{"pid":93407513,"p":0,"r18":false,"uid":12671635,"title":"手?りタイガ?","author":"John_ZeroWB","tags":["とらドラ!","龙与虎","逢坂大河","taiga aisaka","裸足"," 赤脚","足指","脚指","足?","脚底"],"width":7572,"height":5354,"ext":"jpg","uploadDate":1634050807000,"urls":{"small":"https://i.pixiv.cat/c/540x540_70/img-master/img/2021/10/13/00/00/07/93407513_p0_master1200.jpg"}}]} 2021-11-17 18:09:31 V/Bot.1613926941: Group(966348161) <- [mirai:image:{327DD933-56A9-E46C-CF54-683E6D4BAAF1}.jpg]
-
emmm
我这似乎被风控了,群消息全部都发不出来了,私聊有回复 -
-
此回复已被删除! -
如图,控制台有输出,但群内未出现图片
-
这个错误是什么意思?发送gkd后台就报错,几率为50%
2021-11-25 22:38:41 W/stderr: java.io.IOException: Server returned HTTP response code: 525 for URL: https://img.4ce.cn/star3/origin/6f5517d809d157110054da49f27d6a69.png 2021-11-25 22:38:41 W/stderr: at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1985) 2021-11-25 22:38:41 W/stderr: at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1577) 2021-11-25 22:38:41 W/stderr: at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224) 2021-11-25 22:38:41 W/stderr: at com.ycitus.command.commands.RandomImagesCommand.httpRequest(RandomImagesCommand.java:294) 2021-11-25 22:38:41 W/stderr: at com.ycitus.command.commands.RandomImagesCommand.sendImage(RandomImagesCommand.java:109) 2021-11-25 22:38:41 W/stderr: at com.ycitus.command.commands.RandomImagesCommand.runCommand(RandomImagesCommand.java:67) 2021-11-25 22:38:41 W/stderr: at com.ycitus.command.RobotCommandManager.receiveMessage(RobotCommandManager.java:69) 2021-11-25 22:38:41 W/stderr: at com.ycitus.PluginMain.lambda$onEnable$0(PluginMain.java:69) 2021-11-25 22:38:41 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:551) 2021-11-25 22:38:41 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:551) 2021-11-25 22:38:41 W/stderr: at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:46) 2021-11-25 22:38:41 W/stderr: at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1) 2021-11-25 22:38:41 W/stderr: at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:38) 2021-11-25 22:38:41 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) 2021-11-25 22:38:41 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 2021-11-25 22:38:41 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)2021-11-25 22:38:41 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) 2021-11-25 22:38:41 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) 2021-11-25 22:38:41 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
-
-
启动时爆红,启动后完全用不了,(思绪混乱)
2021-11-27 17:15:04 E/Setu: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
at com.google.gson.Gson.fromJson(Gson.java:932)
at com.google.gson.Gson.fromJson(Gson.java:870)
at com.ycitus.files.ConfigFile.loadFile(ConfigFile.java:187)
at com.ycitus.files.ConfigFile.init(ConfigFile.java:151)
at com.ycitus.files.FileManager.init(FileManager.java:42)
at com.ycitus.files.FileManager.<init>(FileManager.java:21)
at com.ycitus.files.FileManager.getSingleInstance(FileManager.java:13)
at com.ycitus.PluginMain.onEnable(PluginMain.java:55)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:113)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:122)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:36)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:129)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:172)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:208)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:276)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:152)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:151)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:47)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.itxtech.mcl.Utility.bootMirai(Utility.java:84)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:138)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:226)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1692)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107)
at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(InterfaceAdapter.java:155)
at org.mozilla.javascript.InterfaceAdapter.lambda$invoke$0(InterfaceAdapter.java:105)
at org.mozilla.javascript.Context.call(Context.java:554)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:522)
at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdapter.java:105)
at org.mozilla.javascript.jdk18.VMBridge_jdk18$1.invoke(VMBridge_jdk18.java:126)
at com.sun.proxy.$Proxy4.run(Unknown Source)
at org.itxtech.mcl.script.ScriptManager.phaseBoot(ScriptManager.java:101)
at org.itxtech.mcl.Loader.start(Loader.java:128)
at org.itxtech.mcl.Loader.main(Loader.java:53)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:386)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)
... 47 more -
@vaeropertis 检查一下是否给了
./config
文件夹的完全读写权限,这样的报错很大概率是配置文件初始化失败造成的 -
@vaeropertis 检查一下是否给了
./config
文件夹的完全读写权限,这样的报错很大概率是配置文件初始化失败造成的 -
@ycituss 完全读写权限已经有了,但仍然报错:(
-
@vaeropertis 如果还是同样的报错的话,发一下配置文件的详细内容。
如果是不同的报错,发一下新的报错信息。 -
从昨天开始发不出图了,以下是报错
2021-11-30 09:13:09 W/stderr: java.net.SocketTimeoutException: Connect timed out
2021-11-30 09:13:09 W/stderr: at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:546)
2021-11-30 09:13:09 W/stderr: at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
2021-11-30 09:13:09 W/stderr: at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:339)
2021-11-30 09:13:09 W/stderr: at java.base/java.net.Socket.connect(Socket.java:603)
2021-11-30 09:13:09 W/stderr: at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:290)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:265)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:177)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:163)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.http.HttpURLConnection.followRedirect0(HttpURLConnection.java:2778)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.java:2690)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1849)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
2021-11-30 09:13:09 W/stderr: at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
2021-11-30 09:13:09 W/stderr: at com.ycitus.command.commands.RandomImagesCommand.httpRequest(RandomImagesCommand.java:294)
2021-11-30 09:13:09 W/stderr: at com.ycitus.command.commands.RandomImagesCommand.sendImage(RandomImagesCommand.java:109)
2021-11-30 09:13:09 W/stderr: at com.ycitus.command.commands.RandomImagesCommand.runCommand(RandomImagesCommand.java:67)
2021-11-30 09:13:09 W/stderr: at com.ycitus.command.RobotCommandManager.receiveMessage(RobotCommandManager.java:69)
2021-11-30 09:13:09 W/stderr: at com.ycitus.PluginMain.lambda$onEnable$0(PluginMain.java:69)
2021-11-30 09:13:09 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:512)
2021-11-30 09:13:09 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$2$1.invoke(EventChannel.kt:512)
2021-11-30 09:13:09 W/stderr: at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:46)
2021-11-30 09:13:09 W/stderr: at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
2021-11-30 09:13:09 W/stderr: at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:38)
2021-11-30 09:13:09 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2021-11-30 09:13:09 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2021-11-30 09:13:09 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
2021-11-30 09:13:09 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2021-11-30 09:13:09 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2021-11-30 09:13:09 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) -
@niconiconi 这是网络问题吧
-
为什么只有控制台有输出,而群里面没有?
-
发送图片一直显示“获取图片失败”怎么办?