Skip to content

Discord: fetch failed on gateway connection despite discord policy preset applied (Linux/Ubuntu) #585

@EliFebres

Description

@EliFebres

Description

Discord channel consistently fails to connect with fetch failed errors after logged in to discord succeeds. The bot authenticates with the token successfully but the follow-up REST calls to Discord's API are blocked by the OpenShell proxy despite the discord policy preset being applied and active. This is reproducible on Ubuntu Linux. A similar issue (#481) was filed for macOS — this confirms the bug is not platform-specific.

Reproduction Steps

  1. Install NemoClaw on Ubuntu 22.04 via curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
  2. Run nemoclaw onboard — create sandbox, select Nemotron 3 Super, apply pypi + npm presets
  3. Run nemoclaw policy-add discord — confirm discord shows as active in policy-list
  4. Connect to sandbox: nemoclaw connect
  5. Run openclaw onboard — configure Anthropic API key, select Discord, set Open channel access, paste bot token
  6. Observe in openclaw logs --follow:
    • "logged in to discord" (token auth succeeds)
    • "Failed to get gateway information from Discord: fetch failed"
    • "discord: failed to deploy native commands: fetch failed"
    • "discord: failed to fetch bot identity: TypeError: fetch failed"
    • Health monitor restarts Discord channel every 5 minutes, same result each time

Environment

OS: Ubuntu 22.04 LTS (Linux)
NemoClaw: latest (installed via nvidia.com/nemoclaw.sh, March 2026)
OpenClaw: 2026.3.11 (29dc654)
OpenShell: 0.0.12
Docker: running
GPU: none (cloud inference)
Discord policy: applied and confirmed active via policy-list

Debug Output

Logs

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    Integration: DiscordUse this label to identify Discord bot integration issues with NemoClaw.Platform: UbuntuSupport for Linux UbuntubugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions