darkalfx / requestrr

Requestrr is a chatbot used to simplify using services like Sonarr/Radarr/Ombi via the use of chat. Current platform is Discord only, but the bot was built around the ideology of quick adaptation for new features as well as new platforms.
MIT License
876 stars 102 forks source link

Requestrr will not connect to discord #79

Open thefuzzylimpets opened 3 years ago

thefuzzylimpets commented 3 years ago

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 commented 3 years ago

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

NiNiyas commented 3 years ago

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.``
Failead0r commented 3 years ago

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
Sariden342 commented 3 years ago

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.

darkalfx commented 3 years ago

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

BioHazard2000 commented 3 years ago

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?

darkalfx commented 3 years ago

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 !

BioHazard2000 commented 3 years ago

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