Azure-Samples / azure-search-power-skills

A collection of useful functions to be deployed as custom skills for Azure Cognitive Search
MIT License
269 stars 163 forks source link

Could not execute skill because Web Api skill response is invalid. #137

Open mwarqee opened 8 months ago

mwarqee commented 8 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Deploy CNER function via template from https://github.com/Azure-Samples/azure-search-power-skills/tree/main/Text/CustomNER. Test Code inside Azure Portal

Any log messages given by the failure

Could not execute skill because Web Api skill response is invalid. Web Api response has invalid content type 'text/html'. Expected 'application/json'

Expected/desired behavior

No error message, succesfull processing of documents.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

bleroy commented 6 months ago

Did you test the function outside of Azure Search, or try using a debug session to verify that the output of the function is the expected json payload and that the mimetype is set to text/javascript (the .py file does correctly set the mimetype so I'm suspecting the output was a text error message or something else thatn the expected json)?