[Bug] 星穹鐵道國際服帳號紀錄無法拉取
Checklist
- [X] My issue was not mentioned by others, and it is not a duplicate issue.
Description
Starward 內初次導入帳號紀錄,依照 APP 指示操作會出現錯誤訊息。
miHoYoApiException - Input URL
Something went wrong … please retry later (-502)
此問題與 #1011 相關,該問題的遊戲服為 hkrpg_cn,在 0.12.2 Preview 3 被修復,此問題的遊戲服為 hkrpg_global
Reproduction Steps
- 在遊戲內使用問題回報,導向到瀏覽器的問題回報首頁
- 複製完整 URL,貼到 Starward 裡
- 重現 Bug
Expected Behavior
No response
Screenshots
輸入 URL 後出現錯誤警示
在瀏覽器進入自助查詢頁面,功能正常
Starward Version
0.13.1
Windows Version
22631.4037
Log
[17:19:37.358] [INFO] Starward.Pages.MainPage
Change game region to hkrpg_global
[17:19:37.358] [INFO] Starward.Pages.MainPage
Navigate to "GameLauncherPage" with param hkrpg_global
[17:19:37.411] [INFO] Starward.Pages.GameLauncherPage
Game install path of hkrpg_global: "X:\Program Files\Star Rail\Games"
[17:19:37.440] [INFO] Starward.Pages.GameLauncherPage
Acutal version and gamebiz of hkrpg_global is "2.4.0".
[17:21:10.819] [INFO] Starward.Pages.MainPage
Navigate to "SelfQueryPage" with param hkrpg_global
[17:21:16.530] [EROR] Starward.Pages.SelfQueryPage
Input url
Starward.Core.miHoYoApiException: Something went wrong...please retry later (-502)
at Starward.Core.SelfQuery.SelfQueryClient.CommonGetAsync[T](String url, CancellationToken cancellationToken) in D:\a\Starward\Starward\src\Starward.Core\SelfQuery\SelfQueryClient.cs:line 41
at Starward.Core.SelfQuery.SelfQueryClient.GetStarRailUserInfoAsync(CancellationToken cancellationToken) in D:\a\Starward\Starward\src\Starward.Core\SelfQuery\SelfQueryClient.cs:line 209
at Starward.Core.SelfQuery.SelfQueryClient.InitializeAsync(String url, GameBiz gameBiz, CancellationToken cancellationToken) in D:\a\Starward\Starward\src\Starward.Core\SelfQuery\SelfQueryClient.cs:line 104
at Starward.Services.SelfQueryService.InitializeAsync(String url, GameBiz gameBiz) in D:\a\Starward\Starward\src\Starward\Services\SelfQueryService.cs:line 40
at Starward.Pages.SelfQueryPage.InputURLAsync() in D:\a\Starward\Starward\src\Starward\Pages\SelfQueryPage.xaml.cs:line 340
Additional Context
No response
#1077
問題回報 URL會進行重新導向 只有重新導向前URL可用
@Scighost
成功複現 若取得 未重新導向URL -> 正常取得帳號紀錄 (點擊問題回報按鈕後 彈出瀏覽器時立即斷網複製URL可取得 或點擊返回舊版 )
https://cs.hoyoverse.com/csc-service-center-fe/index.html? 開頭 若取得 已重新導向URL -> 報措 https://cs.hoyoverse.com/static/hoyoverse-new-csc-service-hall-fe/index.html? 開頭
"返回舊版" 位於網頁右上方 也能取得 cs.hoyoverse.com/csc-service-center-fe/index.html
成功複現 若取得 未重新導向URL -> 正常取得帳號紀錄 (點擊問題回報按鈕後 彈出瀏覽器時立即斷網複製URL可取得 或點擊返回舊版 )
https://cs.hoyoverse.com/csc-service-center-fe/index.html? 開頭 若取得 已重新導向URL -> 報措 https://cs.hoyoverse.com/static/hoyoverse-new-csc-service-hall-fe/index.html? 開頭
"返回舊版" 位於網頁右上方 也能取得 cs.hoyoverse.com/csc-service-center-fe/index.html
使用 返回舊版 後的 URL,成功獲取帳號紀錄,感謝 @SSB-ARFCN 大大
Starward Version: 0.13.2