Blank Page and 403 Error on Game Accounts and Server Selection in Portal Site #1204

Open
opened 2024-12-15 21:56:20 +01:00 by CookieMonster · 0 comments

Describe the bug

When visiting Game Accounts, a blank page is displayed. The issue seems to be caused by a failed API request to:
This request returns a 403 Forbidden error. /api/srv/undefined/accounts/@me

The same issue occurs under Server Selection:

  • Clicking Server Selection > Select Your Server > Accounts results in no action (page does not change).
  • Navigating directly to Server Accounts results in a 403 Forbidden error.
  • Clicking on Game Accounts from the top-right dropdown menu also results in a blank screen with no content loaded, and the same 403 error appears for /api/srv/undefined/accounts/@me.

To Reproduce

  1. Open a browser and go to Game Accounts.
  2. Observe that a blank page is displayed.
  3. Open browser dev tools (F12) and check the Network tab.
  4. Notice the request to: /api/srv/undefined/accounts/@me
    This request fails with a 403 Forbidden error.
  5. Go to Server Accounts directly via the URL.
  6. Observe the 403 Forbidden response.
  7. Click Server Selection > Select Your Server > Accounts.
  8. Notice that clicking Accounts does not load any content.
  9. Click on Game Accounts from the dropdown menu at the top-right of the page.
  10. Notice the same blank screen and 403 Forbidden error for /api/srv/undefined/accounts/@me.

Expected behavior

When visiting Game Accounts or Server Accounts, the page should display the user's account data if the user is logged in. Clicking on Accounts from Server Selection or from the top-right Game Accounts menu should load the account data properly. No 403 Forbidden errors should be present, and API calls should be made to properly defined URLs, not to /undefined/ paths.

### Describe the bug When visiting **[Game Accounts](https://portal.project-rk.com/user/gameAccounts)**, a blank page is displayed. The issue seems to be caused by a failed API request to: This request returns a **403 Forbidden** error. `/api/srv/undefined/accounts/@me` The same issue occurs under **Server Selection**: - Clicking **Server Selection** > **Select Your Server** > **Accounts** results in no action (page does not change). - Navigating directly to **[Server Accounts](https://portal.project-rk.com/srv/ERGO/accounts)** results in a **403 Forbidden** error. - Clicking on **Game Accounts** from the top-right dropdown menu also results in a blank screen with no content loaded, and the same **403** error appears for `/api/srv/undefined/accounts/@me`. --- ### **To Reproduce** 1. Open a browser and go to **[Game Accounts](https://portal.project-rk.com/user/gameAccounts)**. 2. Observe that a blank page is displayed. 3. Open browser dev tools (F12) and check the **Network** tab. 4. Notice the request to: `/api/srv/undefined/accounts/@me` This request fails with a **403 Forbidden** error. 5. Go to **[Server Accounts](https://portal.project-rk.com/srv/ERGO/accounts)** directly via the URL. 6. Observe the **403 Forbidden** response. 7. Click **Server Selection** > **Select Your Server** > **Accounts**. 8. Notice that clicking **Accounts** does not load any content. 9. Click on **Game Accounts** from the dropdown menu at the top-right of the page. 10. Notice the same blank screen and **403 Forbidden** error for `/api/srv/undefined/accounts/@me`. --- ### **Expected behavior** When visiting **Game Accounts** or **Server Accounts**, the page should display the user's account data if the user is logged in. Clicking on **Accounts** from **Server Selection** or from the top-right **Game Accounts** menu should load the account data properly. No **403 Forbidden** errors should be present, and API calls should be made to properly defined URLs, not to `/undefined/` paths.
kajori added the
area
portal
type
bug
labels 2024-12-15 22:14:36 +01:00
kajori added this to the Season 2 Launch project 2024-12-15 22:15:47 +01:00
drake added the
state
fixed
label 2025-01-05 23:11:48 +01:00
TinkeringIdiot was assigned by drake 2025-01-05 23:11:52 +01:00
drake self-assigned this 2025-01-05 23:12:00 +01:00
TinkeringIdiot was unassigned by drake 2025-01-05 23:12:00 +01:00
drake removed the
state
fixed
label 2025-01-05 23:12:07 +01:00
drake moved this to In Progress in Season 2 Launch on 2025-01-15 17:13:40 +01:00
TinkeringIdiot moved this to In Progress in Season 2 Launch on 2025-01-15 19:51:55 +01:00
TinkeringIdiot moved this to In Progress in Season 2 Launch on 2025-01-16 04:32:51 +01:00
drake moved this to In Progress in Season 2 Launch on 2025-01-17 08:05:39 +01:00
drake moved this to In Progress in Season 2 Launch on 2025-01-17 08:05:41 +01:00
TinkeringIdiot moved this to In Progress in Season 2 Launch on 2025-02-05 08:15:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: prk/issues#1204
No description provided.