Skip to content
This repository has been archived by the owner on Dec 19, 2020. It is now read-only.

java.lang.IllegalStateException: cannot upload group image, failed on all servers. #27

Open
git-zt opened this issue Dec 13, 2020 · 0 comments

Comments

@git-zt
Copy link

git-zt commented Dec 13, 2020

之前使用一切正常
最近开始无法发送图片,可以发送文字
发送图片时报错如下

2020-12-13 15:20:07 V/Net 3532477954: Send: ImgStore.GroupPicUp
2020-12-13 15:20:07 V/Net 3532477954: Recv: RequireUpload(fileId=2850419775, uKey=[-15, 19, -41, 43, -125, 72, -11, -95, 28, 107, 83, 122, 60, 82, 105, -101, 104, -93, -45, -122, -70, 96, -102, -5, -37, 109, 70, -89, -58, 20, 7, 74, 111, 79, 23, -115, 56, -128, 8, 22, -116, -57, 17, -50, 47, 91, -83, 32, -42, -21, -124, -81, 99, 44, 83, -33, 14, -43, 101, 103, 124, -103, -61, 75, 111, -70, 43, 53, 1, -41, -119, -93, 109, 96, -96, -8, 48, -99, 120, -123, 16, -40, 62, 25, 94, 119, 40, 127, 1, 25, -81, 73, 26, -116, 123, -82, 14, -73, 117, -86, 92, -28, 48, 121, -23, -39, 28, -114, -54, -55, -108, 41, 46, 5, 94, 69, -70, 89, -34, -104, -97, -29, -93, 104, -73, -95, 120, -120])
2020-12-13 15:20:07 V/Net 3532477954: [Highway] Uploading group image to 120.241.186.254:443, size=242 B
2020-12-13 15:20:08 V/Net 3532477954: [Highway] Uploading group image to 113.96.232.87:8080, size=242 B
2020-12-13 15:20:08 V/Net 3532477954: [Highway] Uploading group image to 123.150.76.168:80, size=242 B
2020-12-13 15:20:08 V/Net 3532477954: [Highway] Uploading group image to 157.255.243.94:443, size=242 B
java.lang.IllegalStateException: cannot upload group image, failed on all servers.
        at net.mamoe.mirai.qqandroid.network.highway.HighwayHelper.uploadImageToServers(HighwayHelper.kt:114)
        at net.mamoe.mirai.qqandroid.network.highway.HighwayHelper$uploadImageToServers$2.invokeSuspend(HighwayHelper.kt)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:32)
        at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:113)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
        at kotlinx.coroutines.flow.internal.SafeCollector.invokeSuspend(SafeCollector.kt:37)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
        at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274)
        at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:84)
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
        at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
        at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
        at net.mamoe.mirai.contact.ContactJavaFriendlyAPI$DefaultImpls.uploadImage(ContactJavaFriendlyAPI.kt:379)
        at net.mamoe.mirai.contact.Contact.uploadImage(Contact.kt:38)
        at demo.BlockingTest$2.onGroupMessage(BlockingTest.java:309)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at net.mamoe.mirai.event.internal.EventInternalJvmKt$registerEvent$15$1.invokeSuspend(EventInternalJvm.kt:182)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Caused by: java.lang.IllegalStateException: highway transfer failed, error 82
        at net.mamoe.mirai.qqandroid.network.highway.HighwayHelper$uploadImage$$inlined$use$lambda$1.emit(Collect.kt:149)
        at net.mamoe.mirai.qqandroid.network.highway.HighwayHelper$uploadImage$$inlined$use$lambda$1$1.invokeSuspend(Unknown Source)
        ... 22 more
2020-12-13 15:20:08 E/Bot 3532477954: An exception was thrown under a coroutine of Bot
java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at net.mamoe.mirai.event.internal.EventInternalJvmKt$registerEvent$15$1.invokeSuspend(EventInternalJvm.kt:182)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method net.mamoe.mirai.contact.Contact.sendMessage, parameter message
        at net.mamoe.mirai.contact.Contact.sendMessage(Contact.kt)
        at demo.BlockingTest$2.onGroupMessage(BlockingTest.java:315)
        ... 11 more

请问是怎么回事,如何解决呢?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant