skip to Main Content

Redis TimeoutException

I'm pushing some data to a Redis instance from a console app every few seconds. This is roughly how I'm doing it: int foo = GetFoo(); BigObject bar = GetBigObject(); _cache.StringSet("Foo", JsonConvert.SerializeObject(foo)); _cache.StringSet("Bar", JsonConvert.SerializeObject(bar)); but after a while I get…

VIEW QUESTION

sendDocument via Telegram bot – Telegram API

sendDocument requires multipart/form-data. $path = 'C:file.txt' $userId = 12345 $token = "ABC123" $url = "https://api.telegram.org/-/sendDocument?chat_id=+" [net.servicepointmanager]::securityprotocol = 'ssl3,tls,tls11,tls12' $url = $url.Replace("-",$token).Replace("+",$userId) $Response = Iwr -Uri $url -Method Post -InFile $path -ContentType "multipart/form-data" $Response.Content But i got Error:400. How to properly…

VIEW QUESTION
Back To Top
Search