On 20 Oct 2017, at 00:26, Michael Davies <Michael.Davies@oceanagold.com> wrote:

Hi Guys,

 

The empty section is an issue, but there’s also the Authorization: Bearer line in the headers, removing that and the empty section gets things to work.

 

Regards,

Michael.


Spotted that when I was looking at this again late last night offline and was going to test this very thing this morning. Good to know that should fix it when we do!

Thanks Michael

 

From: observium [mailto:observium-bounces@observium.org] On Behalf Of Tim Cooper
Sent: Friday, 20 October 2017 5:29 AM
To: Observium <observium@observium.org>
Subject: Re: [Observium] Webhook MS Teams not working

 

 


On 19 Oct 2017, at 16:41, Tim Cooper <lists@coop3r.com> wrote:

 


On 19 Oct 2017, at 14:56, Tom Laermans <tom.laermans@powersource.cx> wrote:

Hi Tim,

I've tested the JSON output against the "Connect Playground" site at MS. Unfortunately I can't really do much more... :-/

You can put an "echo $data_string;" on line  38 of includes/alerting/teams.inc.php and try to curl that, to try and find out what the issue is exactly...

Tom

Tom,

 

There is an empty ‘[ ],’ section in the centre of the facts in the JSON, if I remove this from the test data it works?

 

Commented out line 31 to remove this empty part from the PHP generated JSON output. Curl workspace expected with the out put now, test_alert.php still doesn’t. Will do some more digging.

 

Thanks

This email is intended only for the person to which it is addressed and may contain confidential or legally privileged material. Any dissemination or other use of or taking of any action in reliance upon the content of this email by persons other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the email from any computer. Opinions and other information in this email that do not relate to the business of my employer are not given nor endorsed by it. Unencrypted email is not secure and may not be authentic. If you have any doubts as to the contents please telephone to confirm. Oceana Gold Corporation and its related entities accept no responsibility for changes made to this email or its attachments after transmission from Oceana Gold Corporation and its related entities and do not guarantee that this email or attachments are virus or error free.
_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium