GithubHelp home page GithubHelp logo

dcord's People

Contributors

b1naryth1ef avatar codic12 avatar codic13 avatar wolfiri avatar zerosumgame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dcord's Issues

Cryptic SSL-related errors from vibe-d on reply

Sometimes when my bot sends a message, I get either of the errors below:

object.Exception@../../.dub/packages/vibe-d-0.8.6/vibe-d/http/vibe/http/client.d(615): Second attempt to send HTTP request failed.
----------------
??:? pure @safe bool std.exception.enforce!().enforce!(bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) [0x5572962e77c2]
??:? @safe bool vibe.http.client.HTTPClient.doRequestWithRetry(scope void delegate(vibe.http.client.HTTPClientRequest), bool, out bool, out std.datetime.systime.SysTime) [0x557296251657]
??:? @safe vibe.http.client.HTTPClientResponse vibe.http.client.HTTPClient.request(scope void delegate(vibe.http.client.HTTPClientRequest)) [0x5572962511be]
??:? @safe vibe.http.client.HTTPClientResponse vibe.http.client.requestHTTP(vibe.inet.url.URL, void delegate(scope vibe.http.client.HTTPClientRequest), const(vibe.http.client.HTTPClientSettings)) [0x55729624ed13]
??:? @safe vibe.http.client.HTTPClientResponse vibe.http.client.requestHTTP(immutable(char)[], scope void delegate(scope vibe.http.client.HTTPClientRequest), const(vibe.http.client.HTTPClientSettings)) [0x55729624ebc0]
??:? dcord.api.util.APIResponse dcord.api.client.APIClient.requestJSON(dcord.api.routes.CompiledRoute, immutable(char)[][immutable(char)[]], immutable(char)[]) [0x5572961c3399]
??:? dcord.api.util.APIResponse dcord.api.client.APIClient.requestJSON(dcord.api.routes.CompiledRoute, vibe.data.json.Json) [0x5572961c2e1d]
??:? dcord.types.message.Message dcord.api.client.APIClient.channelsMessagesCreate(ulong, inout(immutable(char)[]), inout(immutable(char)[]), inout(bool), inout(dcord.types.message.MessageEmbed)) [0x5572961c71ba]
??:? dcord.types.message.Message dcord.types.message.Message.reply(dcord.types.message.Sendable) [0x557296207627]
[... private calls ...]
object.Exception@../../.dub/packages/vibe-d-0.8.6/vibe-d/tls/vibe/stream/openssl.d(572): Writing to TLS stream: error:80000001:lib(128):func(0):reason(1) (2147483649)
----------------
??:? @safe void vibe.stream.openssl.throwSSL(immutable(char)[]) [0x55729631639f]
??:? @safe immutable(char)[] vibe.stream.openssl.OpenSSLStream.processSSLError(ulong, immutable(char)[]) [0x557296315c7c]
??:? @safe int vibe.stream.openssl.OpenSSLStream.checkSSLRet(int, immutable(char)[]) [0x5572963157fa]
??:? @safe ulong vibe.stream.openssl.OpenSSLStream.write(in ubyte[], eventcore.driver.IOMode) [0x5572963153dd]
??:? @safe void vibe.internal.interfaceproxy.InterfaceProxy!(vibe.core.stream.Stream).InterfaceProxy.ProxyImpl!(vibe.stream.tls.TLSStream).ProxyImpl.__mixin8.__mixin3.__mixin3.__mixin3.__mixin3.__mixin3.__mixin2.write(void[], const(ubyte[])) [0x55729627487e]
??:? @safe void vibe.stream.wrapper.StreamOutputRange!(vibe.internal.interfaceproxy.InterfaceProxy!(vibe.core.stream.Stream).InterfaceProxy, 1024uL).StreamOutputRange.flush() [0x557296276c33]
??:? @safe void vibe.http.client.HTTPClientRequest.writeHeader() [0x557296254b31]
??:? @property @safe vibe.internal.interfaceproxy.InterfaceProxy!(vibe.core.stream.OutputStream).InterfaceProxy vibe.http.client.HTTPClientRequest.bodyWriter() [0x55729625411a]
??:? void dcord.api.client.APIClient.requestJSON(dcord.api.routes.CompiledRoute, immutable(char)[][immutable(char)[]], immutable(char)[]).__lambda4!(vibe.http.client.HTTPClientRequest).__lambda4(scope vibe.http.client.HTTPClientRequest) [0x5572961c3d9d]
??:? @trusted void vibe.http.client.httpRequesterDg(scope vibe.http.client.HTTPClientRequest, in vibe.inet.url.URL, in vibe.http.client.HTTPClientSettings, void delegate(scope vibe.http.client.HTTPClientRequest)).__lambda5() [0x55729624fc4b]
??:? @safe void vibe.http.client.httpRequesterDg(scope vibe.http.client.HTTPClientRequest, in vibe.inet.url.URL, in vibe.http.client.HTTPClientSettings, void delegate(scope vibe.http.client.HTTPClientRequest)) [0x55729624fbc5]
??:? @safe void vibe.http.client.requestHTTP(vibe.inet.url.URL, void delegate(scope vibe.http.client.HTTPClientRequest), const(vibe.http.client.HTTPClientSettings)).__lambda4!(vibe.http.client.HTTPClientRequest).__lambda4(scope vibe.http.client.HTTPClientRequest) [0x55729624eec2]
??:? @trusted bool vibe.http.client.HTTPClient.doRequest(scope void delegate(vibe.http.client.HTTPClientRequest), ref bool, bool, std.datetime.systime.SysTime).__lambda10() [0x557296252921]
??:? @safe bool vibe.http.client.HTTPClient.doRequest(scope void delegate(vibe.http.client.HTTPClientRequest), ref bool, bool, std.datetime.systime.SysTime) [0x5572962522f1]
??:? @safe bool vibe.http.client.HTTPClient.doRequestWithRetry(scope void delegate(vibe.http.client.HTTPClientRequest), bool, out bool, out std.datetime.systime.SysTime) [0x5572962515aa]
??:? @safe vibe.http.client.HTTPClientResponse vibe.http.client.HTTPClient.request(scope void delegate(vibe.http.client.HTTPClientRequest)) [0x5572962511be]
??:? @safe vibe.http.client.HTTPClientResponse vibe.http.client.requestHTTP(vibe.inet.url.URL, void delegate(scope vibe.http.client.HTTPClientRequest), const(vibe.http.client.HTTPClientSettings)) [0x55729624ed13]
??:? @safe vibe.http.client.HTTPClientResponse vibe.http.client.requestHTTP(immutable(char)[], scope void delegate(scope vibe.http.client.HTTPClientRequest), const(vibe.http.client.HTTPClientSettings)) [0x55729624ebc0]
??:? dcord.api.util.APIResponse dcord.api.client.APIClient.requestJSON(dcord.api.routes.CompiledRoute, immutable(char)[][immutable(char)[]], immutable(char)[]) [0x5572961c3399]
??:? dcord.api.util.APIResponse dcord.api.client.APIClient.requestJSON(dcord.api.routes.CompiledRoute, vibe.data.json.Json) [0x5572961c2e1d]
??:? dcord.types.message.Message dcord.api.client.APIClient.channelsMessagesCreate(ulong, inout(immutable(char)[]), inout(immutable(char)[]), inout(bool), inout(dcord.types.message.MessageEmbed)) [0x5572961c71ba]
??:? dcord.types.message.Message dcord.types.message.Message.reply(dcord.types.message.Sendable) [0x557296207627]
[... private calls ...]

So far, I haven't got the issue when testing locally, but only once deployed to my server. It happens only sometimes and I haven't been able to track when.

The only other place where I have seen that error referenced is dlang/dlang-bot#247. What connects that issue and mine is the VPS provider, Scaleway, so it might be an issue on their side. I could try moving my bot to an orangepi to see if it is true and if so, contact them.

In the meanwhile, I'll try retrying sending the request if such exception is thrown and see if it helps me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.