New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to parse JSON file in (JSON variable substitution) #4884
Comments
Which task? This issue has a few characters from a log with no context. |
Oh sorry, here is detais. Task Deploy Azure App Service v3.0* When using File Transforms & Variable Substitution Options --> JSON variable substitution with a json file that contains any inline comments (ie //bla bla bla) The task will fail with ##[error]Error: Unable to parse JSON file: PATH . Error: SyntaxError: Unexpected token / in JSON at position 63 |
We have the same issue with a comment in json file |
@etharreef , @elvirdolic thanks for your feedback. |
When will that work in VSTS ? |
@ericbrunner , we have the story in our backlog and will be taken based on the priority. |
is the fix implemented ? |
@shibinchandra it is not fixed. We just ran into this today. |
not fixed :( |
Getting same issue today e.g. // style comments break VSTS Build (using Task Azure Resource Group Deployment, rather than Appservice - please comment if I should raise a new separate incident?) 2018-01-07T22:13:06.4942880Z Resource Group created successfully. |
@rswe , please open a separate thread for this issue. |
@rswe can you specify the version of the Azure Resource Group Deployment task where you are seeing this behavior? |
@sachinma @vincentdass Azure Resource Group Deployment task version 2.* |
The Issue is resolved and the fix will be available in upcoming deployment. |
Just ran into this on VSTS as of 3/30/2018. I had a comment in my appsettings.json. removed and now it works. offending comment was a line that was removed from appsettings.json 2018-03-30T17:40:37.7647836Z ##[section]Starting: IIS Web App Deploy |
Having the same issiue. |
The task will fail with error ##[error]Error: Unable to parse JSON file: PATH . Error: SyntaxError: Unexpected token / in JSON at position 63
We resolved the issue by removing comments from the JSON file any // was removed to fix the issue, the task should remove any comments before parsing.
The text was updated successfully, but these errors were encountered: