requestrr icon indicating copy to clipboard operation
requestrr copied to clipboard

Requestrr will not connect to discord

Open thefuzzylimpets opened this issue 3 years ago • 8 comments

I installed it and got everything working fine, and then decided to change the location of the requestrr bot on my pc. After moving, I cannot get it to connect to discord at all anymore. test settings says everything is working, but I keep getting this when starting : warn: Requestrr.WebApi.RequestrrBot.ChatBot[0] Bot configuration changed/not connected to Discord: restarting bot Hosting environment: Production Content root path: C:\Users\Nis_ASty\Documents\requestrr-win-x64 Now listening on: http://[::]:4545 Application started. Press Ctrl+C to shut down. warn: Requestrr.WebApi.RequestrrBot.ChatBot[0] Bot has been restarted. warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect. I have tried deleting requestrr, as well as my discord application and nothing is working.

thefuzzylimpets avatar Mar 22 '21 19:03 thefuzzylimpets

*Also forgot to mention that I am not using reverse proxy or https, nor are they reflected in the settings

thefuzzylimpets avatar Mar 22 '21 19:03 thefuzzylimpets

Experiencing the same issue. I am on docker using hotio's latest image.

Application started. Press Ctrl+C to shut down.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot configuration changed/not connected to Discord: restarting bot
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot has been restarted.
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
      Failed to determine the https port for redirect.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      [Discord] 
      Discord.WebSocket.GatewayReconnectException: Server requested a reconnect
         at Discord.ConnectionManager.<>c__DisplayClass29_0.<<StartAsync>b__0>d.MoveNext()
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      [Discord] Disconnecting from Discord due to error
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot configuration changed/not connected to Discord: restarting bot
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot has been restarted.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      [Discord] Failed to resume previous session
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      [Discord] 
      System.Exception: WebSocket connection was closed
       ---> System.Net.WebSockets.WebSocketException (0x80004005): The remote party closed the WebSocket connection without completing the close handshake.
         at System.Net.WebSockets.ManagedWebSocket.ThrowIfEOFUnexpected(Boolean throwOnPrematureClosure)
         at System.Net.WebSockets.ManagedWebSocket.EnsureBufferContainsAsync(Int32 minimumRequiredBytes, CancellationToken cancellationToken, Boolean throwOnPrematureClosure)
         at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TWebSocketReceiveResultGetter,TWebSocketReceiveResult](Memory`1 payloadBuffer, CancellationToken cancellationToken, TWebSocketReceiveResultGetter resultGetter)
         at Discord.Net.WebSockets.DefaultWebSocketClient.RunAsync(CancellationToken cancelToken)
         --- End of inner exception stack trace ---
         at Discord.ConnectionManager.<>c__DisplayClass29_0.<<StartAsync>b__0>d.MoveNext()
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      [Discord] Disconnecting from Discord due to error
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot configuration changed/not connected to Discord: restarting bot
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot has been restarted.``

NiNiyas avatar Apr 07 '21 14:04 NiNiyas

Same here.

warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      [Discord] Disconnecting from Discord due to error
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot configuration changed/not connected to Discord: restarting bot
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot has been restarted.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Restarting bot due to incorrect automatic reconnection.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot configuration changed/not connected to Discord: restarting bot
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      Bot has been restarted.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
      [Discord] Failed to resume previous session

Failead0r avatar Apr 20 '21 01:04 Failead0r

Same problem for me. Running on Windows Server 2016 VM. The bot shows as active in my discord but I can't successfully !ping it.

Hosting environment: Production Content root path: C:\Requestrr Now listening on: http://[::]:4545 Application started. Press Ctrl+C to shut down. warn: Requestrr.WebApi.RequestrrBot.ChatBot[0] Bot configuration changed/not connected to Discord: restarting bot warn: Requestrr.WebApi.RequestrrBot.ChatBot[0] Bot has been restarted. warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect.

Sariden342 avatar May 10 '21 13:05 Sariden342

Use the official image and report the bug to linuxserver, I don't maintain that image.

darkalfx avatar May 17 '21 12:05 darkalfx

I am getting the same errors using your image on a Synology box. The errors started on the 25th.

warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
Bot configuration changed: restarting bot
Hosting environment: Production
Content root path: /root
Now listening on: http://[::]:4545
Application started. Press Ctrl+C to shut down.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
Bot has been restarted.
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
Bot configuration changed: restarting bot
warn: Requestrr.WebApi.RequestrrBot.ChatBot[0]
Bot has been restarted.

My Discord bot doesn't talk to anything anymore but all the settings test fine.

What else can I give you to help diagnose this issue?

BioHazard2000 avatar Sep 29 '21 19:09 BioHazard2000

Those logs look normal to me.

The bot was upgraded to use slash commands, so you'll probably have to kick and re-invite your bot with the new link in the web portal of Requestrr.

Then the new commands work by typing / instead of !

darkalfx avatar Sep 30 '21 17:09 darkalfx

Worked like a charm.

Thanks for your help and good work with this app. It’s very friendly and these new /commands are slick!

From: darkalfx @.> Sent: September 30, 2021 11:29 AM To: darkalfx/requestrr @.> Cc: BioHazard2000 @.>; Comment @.> Subject: Re: [darkalfx/requestrr] Requestrr will not connect to discord (#79)

Those logs look normal to me.

The bot was upgraded to use slash commands, so you'll probably have to kick and re-invite your bot with the new link in the web portal of Requestrr.

Then the new commands work by typing /

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/darkalfx/requestrr/issues/79#issuecomment-931521198 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AGG5CONP3YADFB3XQQWSA6LUESM5LANCNFSM4ZTYYJSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/AGG5CONCQDVCZA4BA363MA3UESM5LA5CNFSM4ZTYYJSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG6C6FLQ.gif

BioHazard2000 avatar Sep 30 '21 18:09 BioHazard2000