From 8be2a58641bfeb9c491c63a375c52c09520590c4 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 8 Nov 2025 03:33:15 +0000 Subject: [PATCH] completionId: cgen-81221e5ef98e4769ab459632081379d5 cgen-81221e5ef98e4769ab459632081379d5 --- client/pages/DiscordActivity.tsx | 60 ++++++++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 7 deletions(-) diff --git a/client/pages/DiscordActivity.tsx b/client/pages/DiscordActivity.tsx index f082de1a..67f87c2d 100644 --- a/client/pages/DiscordActivity.tsx +++ b/client/pages/DiscordActivity.tsx @@ -50,14 +50,60 @@ export default function DiscordActivity() { }, []); if (error) { + const isCloudflareError = error.includes('Direct IP access') || error.includes('Error 1003'); + const isSDKError = error.includes('Discord SDK'); + return ( -
-
-

Discord Activity Error

-

{error}

-

- Make sure you're running this as a Discord Activity within a Discord server. -

+
+
+
+

Connection Error

+

+ Unable to initialize Discord Activity +

+
+ +
+

{error}

+ + {isCloudflareError && ( +
+

🌐 Cloudflare Blocking Access

+

+ This error occurs when accessing AeThex via an IP address. Please access through the proper domain: +

+ + https://aethex.dev/discord + +
+ )} + + {isSDKError && ( +
+

🎮 Discord SDK Issue

+

+ Make sure you're opening this as a Discord Activity within a Discord server, not as a standalone website. +

+
+ )} +
+ +
+

Troubleshooting steps:

+
    +
  • Access via domain: aethex.dev/discord
  • +
  • Open in Discord Activity, not as regular website
  • +
  • Ensure Discord server has AeThex Activity installed
  • +
  • Try refreshing the Discord window
  • +
+
+ +
);