tsdm_client icon indicating copy to clipboard operation
tsdm_client copied to clipboard

[BUG] 关于加载失败的新测试结果

Open Qing-Novel opened this issue 1 month ago • 3 comments

描述问题

现在出现一个比较诡异的情况。有的时候。这个有的时候是指我打开软件。或者是关掉梯子之后。目前没搞清楚有什么规律。也还是会出现之前那种加载不了的情况,但是持续的时间不会很长,一般不会超过一分钟,它就能够正常加载的。

复现方法

复现问题的步骤:

  1. ...

期望的行为

清晰准确地说明你期待的效果

实际的行为

清晰准确地说明实际效果

截图

https://github.com/user-attachments/assets/1749fed4-a737-47eb-8131-c3352a9ec24f

日志

打开设置 > 调试 > 复制日志 或 导出日志后再上传


环境

平台

根据实际情况勾选

  • [x] Android
  • [ ] iOS
  • [ ] Linux
  • [ ] macOS
  • [ ] Windows

系统版本

写上系统版本

应用信息

点击设置 -> 关于 -> 右上角按钮后,讲剪切板的内容复制到这里

备注

log_1764073307803.txt

Qing-Novel avatar Nov 25 '25 12:11 Qing-Novel

应该还是跟代理配置有关系,反应比较慢,目前没有改成每一个网络请求都探测一次代理,那样恐怕影响性能。

还是建议重启软件吧,一般也不会频繁切换网络环境。

realth000 avatar Nov 25 '25 17:11 realth000

反正至少一会儿就能恢复,比之前好多了

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2025年11月26日 01:42 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [realth000/tsdm_client] [BUG] 关于加载失败的新测试结果 (Issue #339) | realth000 left a comment (realth000/tsdm_client#339)

应该还是跟代理配置有关系,反应比较慢,目前没有改成每一个网络请求都探测一次代理,那样恐怕影响性能。

还是建议重启软件吧,一般也不会频繁切换网络环境。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Qing-Novel avatar Nov 25 '25 23:11 Qing-Novel

长期无法恢复,重启应用也没用

[debug] | 13:14:36 847ms | ------------------- start app -------------------
[debug] | 13:14:36 849ms | connect to database
[debug] | 13:14:36 849ms | init database file at /data/user/0/kzs.th000.tsdm_clienu/files/db/mainV2.db
[debug] | 13:14:36 863ms | load cookie from database with login user uid: ****734
[debug] | 13:14:36 863ms | build no-cookie with cookie: null
[debug] | 13:14:36 871ms | InitCubit: deleting outdated image, outdateTime=2025-11-19 13:14:36.871051
[debug] | 13:14:36 886ms | InitCubit: deleted outdated image cache count 0
[debug] | 13:14:36 946ms | RootLocationCubit: enter page /homepage
[debug] | 13:14:36 947ms | ForumHomeRepository: fetch home page
[debug] | 13:14:36 947ms | build cookie with user info: null
[debug] | 13:14:36 948ms | ProfileRepository: fetch profile page v2
[debug] | 13:14:36 948ms | build cookie with user info: null
[exception] | 13:14:36 988ms | [KtHttp] GET failed on https://www.tsdm39.com/forum.php?mobile=no
PlatformException(KT_HTTP_ERROR, failed to perform http GET, Unable to resolve host "www.tsdm39.com": No address associated with hostname, null)
StackTrace: #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:367)
<asynchronous suspension>
#2      _AndroidHttpMethodChannel._get (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:21)
<asynchronous suspension>
#3      KotlinHttpClient._get (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:131)
<asynchronous suspension>
#4      KotlinHttpClientAdapter.fetch (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:186)
<asynchronous suspension>
#5      CancelableCompleter.complete.<anonymous closure> (package:async/src/cancelable_operation.dart:433)
<asynchronous suspension>
}
[exception] | 13:14:36 989ms | [KtHttp] GET failed on https://www.tsdm39.com/home.php?mobile=yes&tsdmapp=1&mod=space
PlatformException(KT_HTTP_ERROR, failed to perform http GET, Unable to resolve host "www.tsdm39.com": No address associated with hostname, null)
StackTrace: #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:367)
<asynchronous suspension>
#2      _AndroidHttpMethodChannel._get (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:21)
<asynchronous suspension>
#3      KotlinHttpClient._get (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:131)
<asynchronous suspension>
#4      KotlinHttpClientAdapter.fetch (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:186)
<asynchronous suspension>
#5      CancelableCompleter.complete.<anonymous closure> (package:async/src/cancelable_operation.dart:433)
<asynchronous suspension>
}
[error] | 13:14:36 989ms | _ErrorHandler: https://www.tsdm39.com/home.php?mobile=yes&tsdmapp=1&mod=space DioExceptionType.unknown: error: ClientException: null raw response, status code: null
[error] | 13:14:36 989ms | _ErrorHandler: https://www.tsdm39.com/forum.php?mobile=no DioExceptionType.unknown: error: ClientException: null raw response, status code: null
[exception] | 13:14:36 989ms | HomepageBloc: handle error: 
HttpHandshakeFailedException(message: <unknown error>, statusCode: null, headers: null, stackTrace: #0      new AppException (package:tsdm_client/exceptions/exceptions.dart:78)
#1      new _HttpHandshakeFailedException&AppException&HttpHandshakeFailedExceptionMappable (package:tsdm_client/exceptions/exceptions.dart)
#2      new HttpHandshakeFailedException (package:tsdm_client/exceptions/exceptions.dart:109)
#3      mapException (package:tsdm_client/shared/providers/net_client_provider/net_client_provider.dart:25)
#4      new TaskEither.tryCatch.<anonymous closure> (package:fpdart/src/task_either.dart:286)
<asynchronous suspension>
#5      ProfileRepository.fetchProfileV2.<anonymous closure> (package:tsdm_client/features/profile/repository/profile_repository.dart:135)
<asynchronous suspension>
#6      TaskEither.flatMap.<anonymous closure>.<anonymous closure> (package:fpdart/src/task_either.dart:61)
<asynchronous suspension>
#7      TaskEither.mapLeft.<anonymous closure> (package:fpdart/src/task_either.dart:111)
<asynchronous suspension>
#8      Future.wait.<anonymous closure> (dart:async/future.dart:546)
<asynchronous suspension>
#9      HomepageBloc._onHomepageLoadRequested (package:tsdm_client/features/homepage/bloc/homepage_bloc.dart:168)
<asynchronous suspension>
#10     Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:226)
<asynchronous suspension>
)
StackTrace: #0      new AppException (package:tsdm_client/exceptions/exceptions.dart:78)
#1      new _HttpHandshakeFailedException&AppException&HttpHandshakeFailedExceptionMappable (package:tsdm_client/exceptions/exceptions.dart)
#2      new HttpHandshakeFailedException (package:tsdm_client/exceptions/exceptions.dart:109)
#3      mapException (package:tsdm_client/shared/providers/net_client_provider/net_client_provider.dart:25)
#4      new TaskEither.tryCatch.<anonymous closure> (package:fpdart/src/task_either.dart:286)
<asynchronous suspension>
#5      ProfileRepository.fetchProfileV2.<anonymous closure> (package:tsdm_client/features/profile/repository/profile_repository.dart:135)
<asynchronous suspension>
#6      TaskEither.flatMap.<anonymous closure>.<anonymous closure> (package:fpdart/src/task_either.dart:61)
<asynchronous suspension>
#7      TaskEither.mapLeft.<anonymous closure> (package:fpdart/src/task_either.dart:111)
<asynchronous suspension>
#8      Future.wait.<anonymous closure> (dart:async/future.dart:546)
<asynchronous suspension>
#9      HomepageBloc._onHomepageLoadRequested (package:tsdm_client/features/homepage/bloc/homepage_bloc.dart:168)
<asynchronous suspension>
#10     Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:226)
<asynchronous suspension>
}
[debug] | 13:14:37 872ms | build cookie with user info: null
[info] | 13:14:37 873ms | _GzipEncodingChecker: removing gzip encoding in request
[exception] | 13:14:37 875ms | [KtHttp] GET failed on https://www.tsdm39.com/forum.php?mod=redirect&goto=findpost&ptid=1233425&pid=75311834&mobile=no
PlatformException(KT_HTTP_ERROR, failed to perform http GET, Unable to resolve host "www.tsdm39.com": No address associated with hostname, null)
StackTrace: #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:367)
<asynchronous suspension>
#2      _AndroidHttpMethodChannel._get (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:21)
<asynchronous suspension>
#3      KotlinHttpClient._get (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:131)
<asynchronous suspension>
#4      KotlinHttpClientAdapter.fetch (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:186)
<asynchronous suspension>
#5      CancelableCompleter.complete.<anonymous closure> (package:async/src/cancelable_operation.dart:433)
<asynchronous suspension>
}
[error] | 13:14:37 875ms | _ErrorHandler: https://www.tsdm39.com/forum.php?mod=redirect&goto=findpost&ptid=1233425&pid=75311834&mobile=no DioExceptionType.unknown: error: ClientException: null raw response, status code: null
[error] | 13:14:37 876ms | UpdateCubit: failed to check latest version: HttpHandshakeFailedException(message: <unknown error>, statusCode: null, headers: null, stackTrace: #0      new AppException (package:tsdm_client/exceptions/exceptions.dart:78)
#1      new _HttpHandshakeFailedException&AppException&HttpHandshakeFailedExceptionMappable (package:tsdm_client/exceptions/exceptions.dart)
#2      new HttpHandshakeFailedException (package:tsdm_client/exceptions/exceptions.dart:109)
#3      mapException (package:tsdm_client/shared/providers/net_client_provider/net_client_provider.dart:25)
#4      new TaskEither.tryCatch.<anonymous closure> (package:fpdart/src/task_either.dart:286)
<asynchronous suspension>
#5      FPHttpExt.mapHttp.<anonymous closure> (package:tsdm_client/exceptions/exceptions.dart:56)
<asynchronous suspension>
#6      TaskEither.flatMap.<anonymous closure>.<anonymous closure> (package:fpdart/src/task_either.dart:61)
<asynchronous suspension>
#7      FPFutureExt.handle (package:tsdm_client/exceptions/exceptions.dart:41)
<asynchronous suspension>
#8      UpdateCubit.checkUpdate (package:tsdm_client/features/update/cubit/update_cubit.dart:49)
<asynchronous suspension>
)
[error] | 13:14:37 876ms | _AppState: failed to check update state
[debug] | 13:15:28 538ms | ForumHomeRepository: fetch home page
[debug] | 13:15:28 539ms | build cookie with user info: null
[exception] | 13:15:28 549ms | [KtHttp] GET failed on https://www.tsdm39.com/forum.php?mobile=no
PlatformException(KT_HTTP_ERROR, failed to perform http GET, Unable to resolve host "www.tsdm39.com": No address associated with hostname, null)
StackTrace: #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:367)
<asynchronous suspension>
#2      _AndroidHttpMethodChannel._get (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:21)
<asynchronous suspension>
#3      KotlinHttpClient._get (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:131)
<asynchronous suspension>
#4      KotlinHttpClientAdapter.fetch (package:tsdm_client/shared/providers/net_client_provider/net_client_provider_android.dart:186)
<asynchronous suspension>
#5      CancelableCompleter.complete.<anonymous closure> (package:async/src/cancelable_operation.dart:433)
<asynchronous suspension>
}
[error] | 13:15:28 553ms | _ErrorHandler: https://www.tsdm39.com/forum.php?mobile=no DioExceptionType.unknown: error: ClientException: null raw response, status code: null
[exception] | 13:15:28 553ms | HomepageBloc: handle error: 
HttpHandshakeFailedException(message: <unknown error>, statusCode: null, headers: null, stackTrace: #0      new AppException (package:tsdm_client/exceptions/exceptions.dart:78)
#1      new _HttpHandshakeFailedException&AppException&HttpHandshakeFailedExceptionMappable (package:tsdm_client/exceptions/exceptions.dart)
#2      new HttpHandshakeFailedException (package:tsdm_client/exceptions/exceptions.dart:109)
#3      mapException (package:tsdm_client/shared/providers/net_client_provider/net_client_provider.dart:25)
#4      new TaskEither.tryCatch.<anonymous closure> (package:fpdart/src/task_either.dart:286)
<asynchronous suspension>
#5      FPHttpExt.mapHttp.<anonymous closure> (package:tsdm_client/exceptions/exceptions.dart:56)
<asynchronous suspension>
#6      ForumHomeRepository.fetchHomePage.<anonymous closure> (package:tsdm_client/shared/repositories/forum_home_repository/forum_home_repository.dart:30)
<asynchronous suspension>
#7      HomepageBloc._onHomepageRefreshRequested (package:tsdm_client/features/homepage/bloc/homepage_bloc.dart:210)
<asynchronous suspension>
#8      Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:226)
<asynchronous suspension>
)
StackTrace: #0      new AppException (package:tsdm_client/exceptions/exceptions.dart:78)
#1      new _HttpHandshakeFailedException&AppException&HttpHandshakeFailedExceptionMappable (package:tsdm_client/exceptions/exceptions.dart)
#2      new HttpHandshakeFailedException (package:tsdm_client/exceptions/exceptions.dart:109)
#3      mapException (package:tsdm_client/shared/providers/net_client_provider/net_client_provider.dart:25)
#4      new TaskEither.tryCatch.<anonymous closure> (package:fpdart/src/task_either.dart:286)
<asynchronous suspension>
#5      FPHttpExt.mapHttp.<anonymous closure> (package:tsdm_client/exceptions/exceptions.dart:56)
<asynchronous suspension>
#6      ForumHomeRepository.fetchHomePage.<anonymous closure> (package:tsdm_client/shared/repositories/forum_home_repository/forum_home_repository.dart:30)
<asynchronous suspension>
#7      HomepageBloc._onHomepageRefreshRequested (package:tsdm_client/features/homepage/bloc/homepage_bloc.dart:210)
<asynchronous suspension>
#8      Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:226)
<asynchronous suspension>
}
[debug] | 13:15:28 553ms | HomepageBloc: failed to fetch dom: HttpHandshakeFailedException(message: <unknown error>, statusCode: null, headers: null, stackTrace: #0      new AppException (package:tsdm_client/exceptions/exceptions.dart:78)
#1      new _HttpHandshakeFailedException&AppException&HttpHandshakeFailedExceptionMappable (package:tsdm_client/exceptions/exceptions.dart)
#2      new HttpHandshakeFailedException (package:tsdm_client/exceptions/exceptions.dart:109)
#3      mapException (package:tsdm_client/shared/providers/net_client_provider/net_client_provider.dart:25)
#4      new TaskEither.tryCatch.<anonymous closure> (package:fpdart/src/task_either.dart:286)
<asynchronous suspension>
#5      FPHttpExt.mapHttp.<anonymous closure> (package:tsdm_client/exceptions/exceptions.dart:56)
<asynchronous suspension>
#6      ForumHomeRepository.fetchHomePage.<anonymous closure> (package:tsdm_client/shared/repositories/forum_home_repository/forum_home_repository.dart:30)
<asynchronous suspension>
#7      HomepageBloc._onHomepageRefreshRequested (package:tsdm_client/features/homepage/bloc/homepage_bloc.dart:210)
<asynchronous suspension>
#8      Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:226)
<asynchronous suspension>
)
[debug] | 13:15:33 100ms | RootLocationCubit: enter page /settings
[debug] | 13:15:37 464ms | RootLocationCubit: enter page /debugLog

Qing-Novel avatar Nov 26 '25 05:11 Qing-Novel