Closed worldspawn closed 6 years ago
Are you sure you have a valid webhook url? Check if you're using this packages versions of:
<package id="FSharp.Core" version="4.0.0.1" targetFramework="net451" />
<package id="FSharp.Data" version="2.3.2" targetFramework="net451" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net451" />
<package id="Serilog" version="2.2.1" targetFramework="net451" />
Just released a new version fixing the package dependencies to have the right version.
Hi the webhook url definately works. I dont think i had newtonsoft 9, working with webapi i usually have only 6.0.8 at the most otherwise i start getting mismatches. I ended up using a fork of another slack sink that I then had to fork myself to get working (i'm not savvy with f#).
I'm going to close this as I im not going to spend more time on it. Thanks anyway.
Ok, at least try it with the other version dependencies:
`
@marcio-azevedo doesn't seem to be working on my system. Any insights on how I might be able to troubleshoot?
I've manually verified that the webhook works and my dependencies match yours. Thanks!
@yohanmishkin my colleague ended up forking a different implementation. we using it currently - https://github.com/APErebus/serilog-sinks-slack. its not on nuget. we using up to commit f601e0fa74f5526da7945352f5d7d325a8b0028b. Recommend ur fork it
Eg: var webhookUrl = settings.SlackWebhookUrl; if (!string.IsNullOrEmpty(webhookUrl)) { loggerConfig .WriteTo.Logger(lc => lc .MinimumLevel.ControlledBy(loggingLevel) .WriteTo.Slack(webhookUrl)); }
Thanks @worldspawn! I actually gave this version a shot it seemed to work.
@yohanmishkin can you post the error? Also ensure that the dependencies have the proper (NuGet package) version installed, namely:
`
Closing this issue. Feel free to re-open if you still have an error.
Hi,
i'm trying to integrate this sink. I've am using a webhook pointing to the room i want and have configured the sink
My error is:
I've modified the hook uri shown here.