Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't log in (CancellationException) #280

Closed
4 tasks done
Bluscream opened this issue Mar 31, 2024 · 4 comments
Closed
4 tasks done

Can't log in (CancellationException) #280

Bluscream opened this issue Mar 31, 2024 · 4 comments
Labels

Comments

@Bluscream
Copy link

Bluscream commented Mar 31, 2024

Checklist

  • I am able to reproduce the bug with the latest debug version (Android, Linux, Windows)
  • I've checked that there is no open or closed issue about this bug.
  • This issue contains only one bug.
  • The title of this issue accurately describes the bug.

Steps to reproduce

  1. Try logging in to youtube
  2. Select account

Expected behavior

Login

Actual behavior

Error popup

Screenshots / recordings

scrcpy_Au7sfNzyh8
scrcpy_TBmHHRM7Zb
scrcpy_USTgiXoQWT

Logs

couldn't get logcat to work, sorry im not a dev

clicking on upload log:

java.lang.IllegalStateException: Fail to prepare request body for sending. 
The body type is: class java.util.Collections$SingletonMap (Kotlin reflection is not available), with Content-Type: null.

If you expect serialized body, please check that you have installed the corresponding plugin(like `ContentNegotiation`) and set `Content-Type` header.
	at io.ktor.client.engine.HttpClientEngine$install$1.invokeSuspend(SourceFile:256)
	at io.ktor.client.engine.HttpClientEngine$install$1.invoke(SourceFile:4)
	at io.ktor.client.engine.HttpClientEngine$install$1.invoke(SourceFile:5)
	at io.ktor.util.pipeline.SuspendFunctionGun.loop(SourceFile:36)
	at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SourceFile:28)
	at io.ktor.util.pipeline.SuspendFunctionGun.proceedWith(SourceFile:8)
	at io.ktor.client.plugins.HttpCallValidator$Companion$install$1.invokeSuspend(SourceFile:161)
	at io.ktor.client.plugins.HttpCallValidator$Companion$install$1.invoke(SourceFile:46)
	at io.ktor.util.pipeline.SuspendFunctionGun.loop(SourceFile:36)
	at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SourceFile:28)
	at io.ktor.client.HttpClient$4.invokeSuspend(SourceFile:197)
	at io.ktor.client.HttpClient$4.invoke(SourceFile:42)
	at io.ktor.util.pipeline.SuspendFunctionGun.loop(SourceFile:36)
	at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SourceFile:28)
	at io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SourceFile:24)
	at io.ktor.util.pipeline.Pipeline.execute(SourceFile:190)
	at io.ktor.client.HttpClient.execute$ktor_client_core(SourceFile:64)
	at io.ktor.client.statement.HttpStatement.executeUnsafe(Unknown Source:64)
	at io.ktor.client.statement.HttpStatement.execute(SourceFile:1)
	at io.ktor.client.statement.HttpStatement.execute(SourceFile:2)
	at com.toasterofbread.spmp.ui.component.ErrorInfoDisplayKt.uploadErrorToPasteEe(SourceFile:341)
	at com.toasterofbread.spmp.ui.component.ErrorInfoDisplayKt.uploadErrorToPasteEe$default(Unknown Source:19)
	at com.toasterofbread.spmp.ui.component.ErrorInfoDisplayKt$ExpandedContent$2$1$1$1$2$1.invokeSuspend(SourceFile:99)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
	at kotlinx.coroutines.DispatchedTask.run(Unknown Source:107)
	at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(SourceFile:7)
	at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.run(SourceFile:3)
	at android.os.Handler.handleCallback(Handler.java:958)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8248)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

SpMp version

0.3.1

SpMp platform

Android

OS version

Android 14 GSI

Additional information

No response

@Bluscream Bluscream added the Bug label Mar 31, 2024
@Bluscream Bluscream changed the title Can't log in or upload logs (CancellationException) Can't log in (CancellationException) Mar 31, 2024
@toasterofbread
Copy link
Owner

Are you certain you've tested this on the latest build? Both of these should be fixed on main.

@Bluscream
Copy link
Author

Bluscream commented Mar 31, 2024

I downloaded the apk yesterday from gh releases, so yeah im sure

Screenshot_2024-03-31_22-07-44.png

@toasterofbread
Copy link
Owner

The Github releases aren't the latest debug builds. Please test the latest build to see if this bug is still present as stated in the issue template.

@Bluscream
Copy link
Author

https://github.com/toasterofbread/spmp/actions/runs/8494126671/artifacts/1371948183 worked. I recommend building a release with the new fixes to resolve unnecessary confusion for end users trying to log in. Thanks for your work and help 👍🏻

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

No branches or pull requests

2 participants