codic12 / dcord Goto Github PK
View Code? Open in Web Editor NEWA WIP Discord library for D, based on Dscord.
License: zlib License
A WIP Discord library for D, based on Dscord.
License: zlib License
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.