manucabral / RichPresencePlus

A Discord Rich Presence (Discord RPC) application manager for custom desktop or web services statuses.
https://www.richpresenceplus.xyz/
GNU General Public License v3.0
14 stars 0 forks source link

Runtime not connected | Brave | Unable to Connect #25

Open roy-cse opened 3 days ago

roy-cse commented 3 days ago

Steps to reproduce

  1. Download Brave
  2. Start Brave
  3. Open Rich Presence Plus App
  4. Click on Connect
  5. Error "Runtime not connected"
    image

Expected behavior

The issue occurs when I try to connect normally. If I start Brave using debug mode and specifying the port number as one of the flag, I am able to connect it. Here's the command to start Brave in Debug mode: "C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" --remote-debugging-port=9222

App version

v0.1.0

Default Browser

Brave Version 1.73.91 Chromium: 131.0.6778.85

Operating System

Windows 10

Screenshots

No response

Additional comments

No response

App log

2024-11-28 22:59:25,424 - Runtime - WARNING - Could not connect to browser
2024-11-28 22:59:25,426 - Manager - WARNING - Skipping runtime thread, not connected.
2024-11-28 22:59:25,429 - Interface - INFO - Runtime disconnected. Resetting presences.
2024-11-28 22:59:53,081 - Runtime - WARNING - Could not connect to browser
2024-11-28 22:59:55,095 - Runtime - WARNING - Could not connect to browser
2024-11-28 22:59:55,097 - Manager - WARNING - Skipping runtime thread, not connected.
manucabral commented 2 days ago

Hi, try the following:

brave

also If you're opening the browser manually for debugging mode, you'll need to add one more parameter: --remote-allow-origins=http://localhost:9222

The full command should look like this: "C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" --remote-debugging-port=9222 --remote-allow-origins=http://localhost:9222

If localhost doesn't work, try replacing it with 127.0.0.1. Another thing to keep in mind: you need to close all instances of Brave before running the command.