From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1741448808; bh=hJuhUOYnrh/D38WhaC+1lgTzQQ2o8gyDvzfSlqD5nA8=; h=Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:Message-ID:Date:From:Reply-To:Subject:To: Cc:In-Reply-To:References:Resent-Date:Resent-From:Resent-To: Resent-Cc:User-Agent:Content-Type:Content-Transfer-Encoding; b=bj9wy5kHy3n1BrY1EdInI1dbsorSHDt2tiuAPuT1AwNU4rMHnXVkrzRaHxtWvLmT0 9IWpjLs93ChZlKONiSuCDdUhYanTSCGDZZV9A7qwvC6DXLox/wiefdpCbzhOu2pvXX 6PfZVA+YLDH/LLmvf1HqRN2TdYMuHDUBAyob0Cvvxs9XOMxsoXw02drQ6HtQYF3T28 Uv8uqMHOXb0j6Yvy98JarSliunqMZBkxUb+DQU/BlD3JxsLys/bWZnOdsrfKuxvq6p tE2wMgfVmiQWe8BqJvUoHZjGfcZX04PLsZ2dvV7M/kZqSUECmU0x2EGNuA/mcE5sLV waCE6yMkf33oQ== Received: from [192.168.1.8] (unknown [101.128.125.112]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id 0F25820B4921; Sat, 8 Mar 2025 15:46:46 +0000 (UTC) Message-ID: <72ad00bc-2fb2-475a-a8a2-1ced32961242@gnuweeb.org> Date: Sat, 8 Mar 2025 22:46:38 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 00/10] Relative Path, Delete Avatar, Sidebar, Toast To: Ammar Faizi Cc: Alviro Iskandar Setiawan , GNU/Weeb Mailing List , Muhammad Rizki References: <20250307192622.1172-1-kiizuha@gnuweeb.org> <9ff81469-404e-475d-a4e7-ad198c271078@gnuweeb.org> <175df483-52a4-4bc1-91e2-43ea2e2619c4@gnuweeb.org> Content-Language: en-US From: Muhammad Rizki In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: On 08/03/2025 22:28, Ammar Faizi wrote: > On Sat, Mar 08, 2025 at 10:21:09PM +0700, Muhammad Rizki wrote: >> can you try to clear the localStorage? > > As already explained, it works if I clear the localStorage manually. > >> it could be because of previous state >> of user_info is not synchronized with current API structure. > > No. After clearing the localStorage, I tried to relogin and purposely > invalidate gwm_token by doing: > > localStorage.setItem("gwm_token", "aaaaaa") > > I expect I get logged out immediately after reload. But no, it throws > "500 Internal Error" on invalid token. > > Invalid or expired token should not trap user in "500 Internal Error" > page. > > And whatever the user throws at you, you are not allowed to crash. You > must recover from unexpected scenario. > what I'm trying to say is: the `null` value is because of API structure changes, but yeah good catch there, if user manually set the state it should throw user to login page, I will try to patch that issue, thanks.