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

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

Open
mwarqee opened this issue Oct 23, 2023 · 1 comment
Open

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

mwarqee opened this issue Oct 23, 2023 · 1 comment

Comments

@mwarqee
Copy link

mwarqee commented Oct 23, 2023

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
Copy link
Contributor

bleroy commented Dec 11, 2023

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)?

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

No branches or pull requests

2 participants