spdermn02 / TouchPortal_Discord_Plugin

Touch Portal Plugin to Interact with Discord
GNU General Public License v3.0
62 stars 23 forks source link

Authorization does not pop up #53

Closed ninjapenugin closed 2 years ago

ninjapenugin commented 2 years ago

I have followed all of the instructions to install/set up the plugin for use; however, after step 22, Discord does not have a pop up that asks me to authorize the application. I did open up the tpdiscord.exe application that can be found in the touchportal appdata folder, and when the cmd prompt pops up, it says there is a login error, and the error is that it could not connect. I have deleted the application in the Discord Developer portal, and recreated it, but that still does not work. Any ideas on next steps that I could take to figure out what is wrong, so I can get this fixed?

ninjapenugin commented 2 years ago

When looking at the plugin settings, Looking at the Plugin Connected section, it says that it is Disconnected. The plugin is running. I am running version 4201

spdermn02 commented 2 years ago

I've had issues where discord needs to be fully restarted itself due to the api interface that is used being broken somehow. I suggest full shutdown of touch portal and discord from system tray, start discord after it is up and running start touch portal.

ninjapenugin commented 2 years ago

Restarted both, and started in the order recommended: no pop up. After waiting a few minutes, I even tried restarting the plugin via the TP settings, nothing there either.

spdermn02 commented 2 years ago

Typically that is due to incorrect user who created the client/secret (like if you have multiple discord logins). Or that the redirect url is not http://localhost

But could you click include plug-in logs on the Logs tab and then restart touch portal. After a minute send me the log.txt from %APPDATA%\TouchPortal

ninjapenugin commented 2 years ago

log.txt

spdermn02 commented 2 years ago

Thanks I'll review today and see if I can determine the issue

spdermn02 commented 2 years ago

okay 20:34:18.853 - [LOG] (Plugin Instance) 2022-04-17T00:34:18.853Z : TPDiscord :ERROR: login error Error: Could not connect is the problem here double check to make sure the user you have logged into the browser is the same user your client has logged in. If they are different, you will need to login properly in the browser to the developer portal, and create an application again

also double check that http://localhost is redirect url you input, as https://localhost will not work properly.

If everything is correct, we may need to do a screen share chat via discord, you can find me as spdermn02 on the Touch Portal discord.

spdermn02 commented 2 years ago

resolved through discord dm

discord was running as Admin mode, so Touch Portal also needed to run as Admin mode in order to have access to the message queue used for the communication to the Discord App.