c5inco / compose-pokedexer

Pokedex app written in Compose, powered by PokeAPI.co
MIT License
129 stars 11 forks source link

The project cannot be executed. #7

Open jienian opened 3 days ago

jienian commented 3 days ago

The problem is that the project cannot be run successfully:

ATAL EXCEPTION: main (Ask Gemini) Process: des.c5inco.pokedexer.debug, PID: 16890 com.apollographql.apollo3.exception.ApolloHttpException: Http request failed with status code521 at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invokeSuspend(HttpNetworkTransport.kt:67) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:8) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:4) at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:57) at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:226) at kotlinx.coroutines.flow.internal.ChannelFlowOperatorImpl.flowCollect(ChannelFlow.kt:191) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect$suspendImpl(ChannelFlow.kt:163) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect(Unknown Source:0) at kotlinx.coroutines.flow.FlowKt__ReduceKt.single(Reduce.kt:53) at kotlinx.coroutines.flow.FlowKt.single(Unknown Source:1) at com.apollographql.apollo3.ApolloCall.execute(ApolloCall.kt:105) at des.c5inco.pokedexer.data.pokemon.RemotePokemonRepository$getAllPokemon$2.invokeSuspend(RemotePokemonRepository.kt:34) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@b65c501, Dispatchers.Main.immediate] 2024-10-16 10:38:33.836 17051-17051 AndroidRuntime pid-17051 E FATAL EXCEPTION: main (Ask Gemini) Process: des.c5inco.pokedexer.debug, PID: 17051 com.apollographql.apollo3.exception.ApolloHttpException: Http request failed with status code521` at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invokeSuspend(HttpNetworkTransport.kt:67) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:8) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:4) at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:57) at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:226) at kotlinx.coroutines.flow.internal.ChannelFlowOperatorImpl.flowCollect(ChannelFlow.kt:191) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect$suspendImpl(ChannelFlow.kt:163) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect(Unknown Source:0) at kotlinx.coroutines.flow.FlowKt__ReduceKt.single(Reduce.kt:53) at kotlinx.coroutines.flow.FlowKt.single(Unknown Source:1) at com.apollographql.apollo3.ApolloCall.execute(ApolloCall.kt:105) at des.c5inco.pokedexer.data.pokemon.RemotePokemonRepository$getAllPokemon$2.invokeSuspend(RemotePokemonRepository.kt:34) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@114fd15, Dispatchers.Main.immediate] 2024-10-16 10:41:47.200 708-17713 ActivityManager system_server E ANR in com.google.android.youtube PID: 17514 Reason: Timed out while trying to bind ErrorId: d148fb63-e200-45b2-8029-f6171b1210bc Frozen: false Load: 0.0 / 0.0 / 0.0 ----- Output from /proc/pressure/memory ----- some avg10=29.95 avg60=11.84 avg300=3.85 total=86297932 full avg10=6.31 avg60=2.09 avg300=0.82 total=41410702 ----- End output from /proc/pressure/memory ----- ----- Output from /proc/pressure/cpu ----- some avg10=90.62 avg60=68.06 avg300=37.85 total=1475932275 full avg10=0.00 avg60=0.00 avg300=0.00 total=0 ----- End output from /proc/pressure/cpu ----- ----- Output from /proc/pressure/io ----- some avg10=29.30 avg60=13.88 avg300=6.13 total=223021114 full avg10=3.26 avg60=2.00 avg300=1.51 total=120199822 ----- End output from /proc/pressure/io -----

                                                                                                CPU usage from 64ms to 7852ms later (2024-10-16 02:41:39.044 to 2024-10-16 02:41:46.832):
                                                                                                  57% 708/system_server: 0.5% user + 56% kernel / faults: 9275 minor 3349 major
                                                                                                  33% 17514/com.google.android.youtube: 1.2% user + 32% kernel / faults: 10967 minor 480 major
                                                                                                  31% 424/surfaceflinger: 0% user + 31% kernel / faults: 17 minor 138 major
                                                                                                  2.2% 17153/des.c5inco.pokedexer.debug: 0% user + 2.2% kernel / faults: 8863 minor 3218 major
                                                                                                  16% 17226/com.github.metacubex.clash.meta:background: 0% user + 16% kernel / faults: 449 minor 422 major
                                                                                                  14% 3579/com.google.android.as: 0% user + 14% kernel / faults: 574 minor 711 major
                                                                                                  14% 381/android.hardware.sensors-service.multihal: 0% user + 14% kernel / faults: 1 minor 5 major
                                                                                                  13% 1340/com.google.android.apps.nexuslauncher: 0.2% user + 12% kernel / faults: 849 minor 218 major
                                                                                                  11% 1977/com.google.android.googlequicksearchbox:search: 0% user + 11% kernel / faults: 827 minor 1182 major
                                                                                                  11% 17410/com.google.android.apps.messaging: 0.2% user + 10% kernel / faults: 1506 minor 72 major
                                                                                                97% TOTAL: 1.1% user + 84% kernel + 2.2% iowait + 9.8% softirq
                                                                                                CPU usage from 57694539ms to 57694539ms ago (1970-01-01 00:00:00.000 to 1970-01-01 00:00:00.000) with 0% awake:
                                                                                                0% TOTAL: 0% user + 0% kernel

2024-10-16 10:41:58.596 17153-17153 AndroidRuntime pid-17153 E FATAL EXCEPTION: main (Ask Gemini) Process: des.c5inco.pokedexer.debug, PID: 17153 com.apollographql.apollo3.exception.ApolloHttpException: Http request failed with status code 521 at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invokeSuspend(HttpNetworkTransport.kt:67) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:8) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:4) at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:57) at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:226) at kotlinx.coroutines.flow.internal.ChannelFlowOperatorImpl.flowCollect(ChannelFlow.kt:191) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect$suspendImpl(ChannelFlow.kt:163) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect(Unknown Source:0) at kotlinx.coroutines.flow.FlowKtReduceKt.single(Reduce.kt:53) at kotlinx.coroutines.flow.FlowKt.single(Unknown Source:1) at com.apollographql.apollo3.ApolloCall.execute(ApolloCall.kt:105) at des.c5inco.pokedexer.data.pokemon.RemotePokemonRepository$getAllPokemon$2.invokeSuspend(RemotePokemonRepository.kt:34) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@4a655ed, Dispatchers.Main.immediate] 2024-10-16 10:43:07.822 18003-18003 AndroidRuntime pid-18003 E FATAL EXCEPTION: main (Ask Gemini) Process: des.c5inco.pokedexer.debug, PID: 18003 com.apollographql.apollo3.exception.ApolloHttpException: Http request failed with status code 521 at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invokeSuspend(HttpNetworkTransport.kt:67) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:8) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:4) at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:57) at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:226) at kotlinx.coroutines.flow.internal.ChannelFlowOperatorImpl.flowCollect(ChannelFlow.kt:191) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect$suspendImpl(ChannelFlow.kt:163) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect(Unknown Source:0) at kotlinx.coroutines.flow.FlowKtReduceKt.single(Reduce.kt:53) at kotlinx.coroutines.flow.FlowKt.single(Unknown Source:1) at com.apollographql.apollo3.ApolloCall.execute(ApolloCall.kt:105) at des.c5inco.pokedexer.data.pokemon.RemotePokemonRepository$getAllPokemon$2.invokeSuspend(RemotePokemonRepository.kt:34) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@bf46c91, Dispatchers.Main.immediate] 2024-10-16 11:05:42.574 19831-19831 AndroidRuntime pid-19831 E FATAL EXCEPTION: main (Ask Gemini) Process: des.c5inco.pokedexer.debug, PID: 19831 com.apollographql.apollo3.exception.ApolloHttpException: Http request failed with status code 521 at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invokeSuspend(HttpNetworkTransport.kt:67) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:8) at com.apollographql.apollo3.network.http.HttpNetworkTransport$execute$1.invoke(Unknown Source:4) at kotlinx.coroutines.flow.SafeFlow.collectSafely(Builders.kt:57) at kotlinx.coroutines.flow.AbstractFlow.collect(Flow.kt:226) at kotlinx.coroutines.flow.internal.ChannelFlowOperatorImpl.flowCollect(ChannelFlow.kt:191) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect$suspendImpl(ChannelFlow.kt:163) at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collect(Unknown Source:0) at kotlinx.coroutines.flow.FlowKt__ReduceKt.single(Reduce.kt:53) at kotlinx.coroutines.flow.FlowKt.single(Unknown Source:1) at com.apollographql.apollo3.ApolloCall.execute(ApolloCall.kt:105) at des.c5inco.pokedexer.data.pokemon.RemotePokemonRepository$getAllPokemon$2.invokeSuspend(RemotePokemonRepository.kt:34) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@e4a582a, Dispatchers.Main.immediate] `

Error

jienian commented 3 days ago

return ApolloClient.Builder().serverUrl("https://beta.pokeapi.co/graphql/v1beta").build()

I am Deaf, I believe the API from this website is not available. Is there an alternative API you could provide? Thank you, I really need it.)