kasunkv / slack-notification

Slack Notification task with advanced slack message customization for Visual Studio Team Services
MIT License
20 stars 9 forks source link

Unexpected Token Error #6

Open WillM05 opened 6 years ago

WillM05 commented 6 years ago

I receive the following error when running Version 2.2.5 of this task on TFS 2017 Update 1 RTM: ##[error]Unhandled: Unexpected token ...

I also ran in debug mode but did not receive any additional information.

I am able to use another TFS extension and was able to successfully post a message to the same space, channel and API token.

I have also confirmed that the token I'm using is XOXP and the Slack app has chat:write:user and chat:write:bot scopes.

HolisticDeveloper commented 5 years ago

I believe this is because the agent in TFS 2015.2 through TFS 2017.1 only uses Node v5.10.1. Not sure that there is an easy fix for that, though.