Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a system to re-send and handle messages that fail to send #26

Open
RoboMWM opened this issue Mar 29, 2019 · 9 comments
Open

Add a system to re-send and handle messages that fail to send #26

RoboMWM opened this issue Mar 29, 2019 · 9 comments
Labels
priority: low Issue has low priority for resolution type: feature New feature or request
Milestone

Comments

@RoboMWM
Copy link
Contributor

RoboMWM commented Mar 29, 2019

Is there a way to have it log to a file? My screen got messed up when I was copying in putty somehow so I took screenshots before I had to end up zapping it with commands outside of it.

It did this for two consecutive messages, the last messages before that were sent (from IRC) a few minutes ago. If my screen didn't get screwed up I would've seen if it could resolve itself. But yea logging to a file would be good unless there's a way to pipe to file and console.

@RoboMWM
Copy link
Contributor Author

RoboMWM commented Mar 29, 2019

One thing to note is that this bot is currently hosted on an Azure instance and if keepalives aren't being sent, a TCP connection will be dropped - at least I've noticed I had to configure ssh to send keepalives to keep my sessions alive when idle. (Although I do notice that keepalives are being established with discord so nvm that.)

@RoboMWM
Copy link
Contributor Author

RoboMWM commented Mar 29, 2019

Running 6eb61c0

@zachbr
Copy link
Owner

zachbr commented Mar 29, 2019

java -jar dis4irc-xxx.jar 2>&1 | tee file-out.txt will output to both places, otherwise you could use a custom log4j config but I run it through systemd so I never added it to the default config.

@RoboMWM
Copy link
Contributor Author

RoboMWM commented Mar 29, 2019

Doesn't work when I run screen -S bridge java -jar Dis4IRC-1.0.3-SNAPSHOT.jar 2>&1 | tee file-out.txt from a bash script (file is created but nothing is piped to it) since I'm a noob at bash stuff so for now I just create the screen manually and run the bridge. Issue happened twice several hours ago during activity, though the other times it happened (with 1.0.2 at least) were during low activity. All the same though with discord API timing out and stuff. Anyways, will now be able to get a proper log for next time, thanks.

@jamierocks
Copy link

Probably needs to be screen -S bridge "java -jar Dis4IRC-1.0.3-SNAPSHOT.jar 2>&1 | tee file-out.txt" - else it would pipe the screen command I think.

@RoboMWM
Copy link
Contributor Author

RoboMWM commented Apr 8, 2019

So I haven't had a time yet recently where I have both dumcord and IRC open, but I decided to take a look in the log and see if I could find it. And I did find one.

So in this case the two messages that never made it to dumcord from IRC were:

RoboMWM: spigot signature
RoboMWM: idk if I put it in about

The last message in this snippet from IRC ("where's ur arenas") did make it though, as well as the dumcord messages -> IRC.

[02:24:04] [default] [DEBUG] - IRC MSG #griefprevention RoboMWM: hmm I could, make a request on the request thread
[02:24:04] [default] [DEBUG] - Message from #griefprevention RoboMWM took 0ms to handle
[02:24:04] [net.dv8tion.jda.core.requests.Requester] [DEBUG] - Received response with following cf-rays: [4c0f582e4dd85170-SJC]
[02:24:13] [default] [DEBUG] - DISCORD MSG griefprevention iZeusi: Where abouts is that bud?
[02:24:13] [default] [DEBUG] - Message from griefprevention iZeusi took 0ms to handle
[02:28:46] [default] [DEBUG] - IRC MSG #griefprevention RoboMWM: spigot signature
[02:28:46] [default] [DEBUG] - Message from #griefprevention RoboMWM took 0ms to handle
[02:28:50] [default] [DEBUG] - IRC MSG #griefprevention RoboMWM: idk if I put it in about
[02:28:50] [default] [DEBUG] - Message from #griefprevention RoboMWM took 0ms to handle
[02:29:06] [net.dv8tion.jda.core.requests.Requester] [ERROR] - Requester timed out while executing a request
java.net.SocketTimeoutException: timeout
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.java:655) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.java:663) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:151) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:137) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:101) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:264) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.RealCall.execute(RealCall.java:93) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:191) [Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:234) [Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:133) [Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:116) [Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.ratelimit.BotRateLimiter$Bucket.run(BotRateLimiter.java:350) [Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:844) [?:?]
[02:29:06] [net.dv8tion.jda.core.requests.RestAction] [ERROR] - RestAction queue returned failure
net.dv8tion.jda.core.exceptions.ErrorResponseException: -1: java.net.SocketTimeoutException
	at net.dv8tion.jda.core.exceptions.ErrorResponseException.create(ErrorResponseException.java:150) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Request.onFailure(Request.java:96) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.restaction.MessageAction.handleResponse(MessageAction.java:689) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Request.handleResponse(Request.java:184) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:236) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:234) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:133) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:116) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.ratelimit.BotRateLimiter$Bucket.run(BotRateLimiter.java:350) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at java.lang.Thread.run(Thread.java:844) ~[?:?]
Caused by: java.net.SocketTimeoutException: timeout
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.java:655) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.java:663) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:151) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:137) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:101) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:264) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.RealCall.execute(RealCall.java:93) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:191) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	... 10 more
[02:29:26] [net.dv8tion.jda.core.requests.Requester] [ERROR] - Requester timed out while executing a request
java.net.SocketTimeoutException: timeout
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.java:655) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.java:663) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:151) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:137) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:101) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:264) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.RealCall.execute(RealCall.java:93) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:191) [Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:234) [Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:133) [Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:116) [Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.ratelimit.BotRateLimiter$Bucket.run(BotRateLimiter.java:350) [Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:844) [?:?]
[02:29:26] [net.dv8tion.jda.core.requests.RestAction] [ERROR] - RestAction queue returned failure
net.dv8tion.jda.core.exceptions.ErrorResponseException: -1: java.net.SocketTimeoutException
	at net.dv8tion.jda.core.exceptions.ErrorResponseException.create(ErrorResponseException.java:150) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Request.onFailure(Request.java:96) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.restaction.MessageAction.handleResponse(MessageAction.java:689) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Request.handleResponse(Request.java:184) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:236) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:234) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:133) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:116) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.ratelimit.BotRateLimiter$Bucket.run(BotRateLimiter.java:350) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at java.lang.Thread.run(Thread.java:844) ~[?:?]
Caused by: java.net.SocketTimeoutException: timeout
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.java:655) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.java:663) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.java:151) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http2.Http2Codec.readResponseHeaders(Http2Codec.java:137) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:101) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:264) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at okhttp3.RealCall.execute(RealCall.java:93) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	at net.dv8tion.jda.core.requests.Requester.execute(Requester.java:191) ~[Dis4IRC-1.0.3-SNAPSHOT.jar:?]
	... 10 more
[02:41:03] [default] [DEBUG] - IRC MSG #MLG RoboMWM: @jenmas where's ur arenas
[02:41:03] [default] [DEBUG] - Message from #MLG RoboMWM took 0ms to handle

@RoboMWM
Copy link
Contributor Author

RoboMWM commented Apr 8, 2019

Config for reference. I'm not using any webhooks.

# Dis4IRC Configuration File

# A list of bridges that Dis4IRC should start up
# Each bridge can bridge multiple channels between a single IRC and Discord Server
bridges {
    # A bridge is a single bridged connection operating in its own space away from all the other bridges
    # Most people will only need this one default bridge
    default {
        announce-joins-and-quits=false
        # Mappings are the channel <-> channel bridging configurations
        channel-mappings {
            "341448913200349203"="#MLG"
            "420114396313026560"="#griefprevention"
            "420118648418467840"="#robomwm"
            "341451241521545218"="#techfortress"
        }
        # Your discord API key you registered your bot with
        discord-api-key="REDACTED"
        # Configuration for connecting to the IRC server
        irc {
            allow-invalid-ssl-certs=false
            anti-ping=true
            # A list of __raw__ irc messages to send
           init-commands-list=[
                "PRIVMSG NICKSERV info",
                "PRIVMSG NICKSERV help"
            ]
            nickname=Dumcord
            # Messages that match this regular expression will be passed to IRC without a user prefix
            no-prefix-regex=null
            port="6697"
            realname=dum
            server="irc.spi.gt"
            use-ssl=true
            username=cord
        }
    }
}
debug-logging=true

@zachbr
Copy link
Owner

zachbr commented Apr 8, 2019

That's just Discord API being garbage. Or your connection to it I suppose. I suppose we can investigate adding some system for making sure messages send and attempting to resend if they fail.

@zachbr zachbr added type: feature New feature or request priority: low Issue has low priority for resolution labels Apr 8, 2019
@RoboMWM
Copy link
Contributor Author

RoboMWM commented Apr 9, 2019

@jamierocks just tried that command now, and that doesn't work because it tries to execute a file that's named as such in the doublequotes.

@zachbr zachbr added this to the 1.2.0 milestone May 3, 2019
@zachbr zachbr changed the title IRC -> dumcord messages fail to send due to dumcord API Add a system to re-send and handle messages that fail to send Jun 3, 2019
@zachbr zachbr modified the milestones: 1.2.0, 2.0.0 Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low Issue has low priority for resolution type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants