aria
aria copied to clipboard
403を返されたときにエラーを吐く
💡 Summary
titleの通りです、優先度的には低そう? 一応pタグは見えてるからギリ分かるかも...
統計やお知らせ等サーバーと通信が必要なところは全て
🥰 Expected Behavior
流石にそのままでなくとも、403を返されたときに何らかのメッセージを表示してほしい。
🤬 Actual Behavior
エラー
DioExceptionType.badResponse
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" ### ### content="width=device-width, initial-scale=1.0">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/combine/npm/[email protected],npm/[email protected]/dist/css/bootstrap.min.css">
<style>
li {
display: block;
}
#chat {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 999;
display: none;
}
#chat>iframe {
width: 100%;
height: 100%;
}
</style>
<title>Error</title>
</head>
<body>
<div class="contaienr text-center">
<img src="https://media.misskeyusercontent.com/misskey/8746aec1-0d1b-4aec-b38e-1d9f1bd3bfac.png" width="250">
<h2>Error</h2>
<p>現在メンテナンスを行っています。</p>
<p><a href="https://status.misskey.io" target="_blank">詳しくはこちら</a>のステータスページをご確認ください。</p>
<p><a href="https://go.misskey.io/discord" target="_blank">こちらから</a>公式Discordにも参加できます。</p>
</div>
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'93badcd608dc268e',t:'MTc0NjU1OTUxNy4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body>
</html>
スタックトレース
#0 ApiService.post (package:misskey_dart/src/services/api_service.dart:51)
<asynchronous suspension>
#1 MisskeyNotes.homeTimeline (package:misskey_dart/src/misskey_note.dart:65)
<asynchronous suspension>
#2 TimelineNotesNotifier._fetchNotes (package:aria/provider/api/timeline_notes_notifier_provider.dart:48)
<asynchronous suspension>
#3 TimelineNotesNotifier.build (package:aria/provider/api/timeline_notes_notifier_provider.dart:22)
<asynchronous suspension>
#4 FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:355)
<asynchronous suspension>
📝 Steps to Reproduce
メンテか鯖落ちの時しか発生しないので、再現は難しそうです .io以外の他のサーバーは、メンテを見たことが無いので分かりません...
💻 Environment
端末1
* Model and OS of the device(s): POCO X7 Pro, Android 15 (HyperOS 2.0.101.0.VOJMIXM)
* Aria: 1.0.3+61
* Server URL: misskey.io
* Misskey: 2024.5.0-io.9g
端末2,3
* Model and OS of the device(s): iPhone 7 Plus, iOS 15.8
* Model and OS of the device(s): iPhone 8, iOS 16.7.10
Do you want to address this bug yourself?
- [ ] Yes, I will patch the bug myself and send a pull request