discord.clj
discord.clj copied to clipboard
HTTP 400 randomly
I am getting an HTTP 400 quite randomly when I send some messages. Its reproducible at will though.
20-06-08 16:41:21 gimli ERROR [discord.client:77] - Error sending message:
clojure.lang.ExceptionInfo: clj-http: status 400
{:cached nil, :request-time 472, :repeatable? false,
:protocol-version {:name "HTTP", :major 1, :minor 1},
:streaming? true,
:http-client #object[org.apache.http.impl.client.InternalHttpClient 0x45bff638 "org.apache.http.impl.client.InternalHttpClient@45bff638"],
:chunked? false,
:type :clj-http.client/unexceptional-status,
:reason-phrase "Bad Request",
:headers {"x-envoy-upstream-service-time" "9",
"Server" "cloudflare",
"x-ratelimit-reset-after" "5",
"Via" "1.1 google",
"Content-Type" "application/json",
"Content-Length" "21",
"strict-transport-security" "max-age=31536000; includeSubDomains",
"x-ratelimit-limit" "5",
"x-ratelimit-remaining" "4",
"x-ratelimit-reset" "1591634487",
"x-ratelimit-bucket" "80c17d2f203122d936070c88c8d10f33",
"Connection" "close",
"cf-request-id" "033667e7180000df4b73824200000001",
"Set-Cookie" ["__cfduid=d646323f023029fc337c7d79d9e1eed701591634480; expires=Wed, 08-Jul-20 16:41:20 GMT; path=/; domain=.discordapp.com; HttpOnly; SameSite=Lax" "__cfruid=8b7f57ba621570e90aaa72ecff2886c33d034cd0-1591634481; path=/; domain=.discordapp.com; HttpOnly; Secure; SameSite=None"],
"Expect-CT" "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", "CF-Cache-Status" "DYNAMIC", "CF-RAY" "5a040f51c9dbdf4b-BOM", "Date" "Mon, 08 Jun 2020 16:41:21 GMT"
},
:orig-content-encoding nil,
:status 400,
:length 21,
:body "{\"embed\": [\"fields\"]}", :trace-redirects []
}