Skip to content
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

##[error]Failed to parse: /home/vsts/work/1/b/publish_output/remote.settings.json, Unexpected token  in JSON at position 0 #550

Closed
ArmandoPitotti opened this issue Sep 11, 2021 · 5 comments

Comments

@ArmandoPitotti
Copy link

I am trying to use 'Azure App Configuration Push' in my pipeline, but I get the error:
Failed to parse: /home/vsts/work/1/b/publish_output/remote.settings.json, Unexpected token  in JSON at position 0

My very simple json:

{
"FirstKey":"FirstValue"
}

My task in pipeline for Configuration Push:

  • task: AzureAppConfigurationPush@1
    inputs:
    azureSubscription: 'ServConnection-AzureSubscription'
    ConfigstoreName: 'crmtest-appconfig'
    ConfigurationFile: '$(Build.BinariesDirectory)/publish_output/remote.settings.json'
    Separator: ','
    Strict: false

I hope you can help me, Thanks.

@MaryanneNjeri
Copy link
Contributor

Hello @ArmandoPitotti, sorry for the delayed response. Am working on reproducing the issue you are currently facing.

@MaryanneNjeri
Copy link
Contributor

MaryanneNjeri commented Sep 14, 2021

@ArmandoPitotti I have been able to reproduce the error you are experiencing, kindly check the encoding format of the remote.settings.json file, if the encoding format is UTF-8-BOM kindly update to UTF-8. Please let me know if this helps :) .
Thanks,
Maryanne

@ArmandoPitotti
Copy link
Author

@MaryanneNjeri It seems to work now. Thanks

@zhenlan
Copy link
Contributor

zhenlan commented Sep 16, 2021

@MaryanneNjeri, any chance we can either detect the file format or give a better error message so users can confirm their file format?

@MaryanneNjeri
Copy link
Contributor

@zhenlan we can detect file format and give a better error message. Let me work on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants