Azure-docs: Importing the sample pizza json file fails

Created on 13 Dec 2019  Â·  13Comments  Â·  Source: MicrosoftDocs/azure-docs

Importing the sample pizza json file fails at this step: https://docs.microsoft.com/en-us/azure/cognitive-services/LUIS/tutorial-machine-learned-entity#import-example-json-to-begin-app

The LUIS portal throws the error "BadArgument: Failed to parse application json. Parameter name: applicationJsonString"


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 cognitive-servicesvc cxp language-understandinsubsvc product-question triaged

Most helpful comment

@paramrsingh Yes - that change is in process - just not out yet. Thank you for working through this.

All 13 comments

@paramrsingh Are you sure you are on the preview portal - preview.luis.ai? How did you download the file to disk? I just tested and it worked for me so we must not be using the same steps or the same portal. #in-progress

I just tried it with the preview portal and got the same error.
Annotation 2019-12-13 123741

@paramrsingh Can you share the f12/dev tools error text from the browser?

preview.luis.ai-1576260347299.log
See attached for log

i was trying to follow this as well.

@GenMaximux13 - you also get an error importing the JSON?

@paramrsingh and @GenMaximus13 did you right click the file with save as? Make sure you get the actual JSON file and not just the entire HTML page, which causes the error you describe above. Find the raw document here: https://raw.githubusercontent.com/Azure-Samples/cognitive-services-language-understanding/master/documentation-samples/tutorials/machine-learned-entity/pizza-intents-only.json

Just loaded that and it works on the preview portal.

Still fails with same error. File attached (zipped for GitHub)
pizza-intents-only.zip

@paramrsingh - the file isn't a JSON file - even though it has the .json extension. Your process to save the JSON from GitHub to your local file system isn't working. Please try this one
pizza-intents-only-github.zip

That file worked @diberry . That's weird, when you right-click and save as on the link it's pulling the whole page. Does the link to the file on the docs page need to be updated to the raw file instead? https://raw.githubusercontent.com/Azure-Samples/cognitive-services-language-understanding/master/documentation-samples/tutorials/machine-learned-entity/pizza-intents-only.json

@paramrsingh Yes - that change is in process - just not out yet. Thank you for working through this.

@diberry @paramrsingh Thanks Dina. Are we good to close this issue?

please-close

Was this page helpful?
0 / 5 - 0 ratings