Hi, try renaming the file (remove space) or apply the following encoding testimage+2.jpg
.
--- *kindly accept answer if the information provided helps, this helps the community find answers faster.*
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have deployed a custom vision model and it works when passing a request to an endpoint:
https://southeastasia.api.cognitive.microsoft.com/customvision/v3.1/Prediction/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/detect/iterations/project-name/url
the result is fine and I get a response as expected.
However, if the url has a space in it denoted by a "%20" example: https://ozcorp.sharepoint.com/sites/Teams/testimage%202.jpg
I get the following response:
{
"code": "BadRequestImageUrl",
"message": "Invalid url: https://ozcorp.sharepoint.com/sites/Teams/testimage 2.jpg"
}
it seems to me that the problem is with custom vision not being able to parse this url.
i have also tried passing https://ozcorp.sharepoint.com/sites/Teams/testimage 2.jpg for the image url but it fails too.
the spaces are part of the url and cannot be removed, how can i resolve this?
Hi, try renaming the file (remove space) or apply the following encoding testimage+2.jpg
.
--- *kindly accept answer if the information provided helps, this helps the community find answers faster.*
Hi, afraid I cannot do that.
Also, I think I misconstructed the problem. I could be facing authentication issues when trying to link the custom vision endpoint to a file saved using forms.