You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have used the base example in the README and created the .env file with the variables i've got from the developers Trovo page.
When i spin up the application i get redirected correctly to Trovo login page, see all the permissions i need to agree on. But whenever i press "Allow" i get this error in the code in my console:
Express Started
TokenError
at Strategy.OAuth2Strategy.parseErrorResponse (E:\TrovoBot\node_modules\passport-oauth2\lib\strategy.js:358:12)
at Strategy.OAuth2Strategy._createOAuthError (E:\TrovoBot\node_modules\passport-oauth2\lib\strategy.js:405:16)
at E:\TrovoBot\node_modules\passport-oauth2\lib\strategy.js:175:45
at E:\TrovoBot\node_modules\oauth\lib\oauth2.js:191:18
at passBackControl (E:\TrovoBot\node_modules\oauth\lib\oauth2.js:132:9)
at IncomingMessage.<anonymous> (E:\TrovoBot\node_modules\oauth\lib\oauth2.js:157:7)
at IncomingMessage.emit (events.js:322:22)
at endReadableNT (_stream_readable.js:1187:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
The credentials are fine, i double checked them.
Could it be a dependency that has been updated ? These are the ones i have in my project:
Yo @phlare ,
No unfortunately nothing of new knowledge with this project.
I made my bot works by using the Chat Socket at the end, but if there is a way to fix this problem I would still like to know it.
I didn't need my bot to send messages to the chat anyway, and only activate things like lights at home etc.
If you don't need to send chat messages too, I would suggest to do it the same way, or figure a way out to implement OAuth yourself, I simply didn't wanted to waste too much time on the things I needed my bot for. =)
P.s. Dez posted your new emoticons in my Discord Group, they look amazing! :D
Yeah looks like the issue might be with the underlying passport-oauth2 package and not this one. Will see if I can fork both and find a path forward.
Was also trying to not implement the whole flow myself, but may end up having to. Spending the time fixing this instead of just building it myself benefits the community more though so I'll try that first.
I have used the base example in the README and created the .env file with the variables i've got from the developers Trovo page.
When i spin up the application i get redirected correctly to Trovo login page, see all the permissions i need to agree on. But whenever i press "Allow" i get this error in the code in my console:
The credentials are fine, i double checked them.
Could it be a dependency that has been updated ? These are the ones i have in my project:
Thanks for helping,
With kind regards.
The text was updated successfully, but these errors were encountered: