toddkitta / adventureworkstravel Goto Github PK
View Code? Open in Web Editor NEWDeploys the AdventureWorks Travel app that is part of the Cortana Intelligence Suite Workshop.
Deploys the AdventureWorks Travel app that is part of the Cortana Intelligence Suite Workshop.
I was running through the lab, and stumbled when trying to consume the ML web service. The application kept throwing an exception:
"Prediction did not succeed. Check the Settings for mlWorkspaceId, mlServiceId, and mlApiKey."
Each of the settings was correct (checked, checked, and triple checked) so I downloaded the repo and debugged locally to find that the call to the ML service was continuously throwing 401 unauthorized
errors.
The problem ended up being that the code is expecting the web service URI to be of this format:
"https://{0}.services.azureml.net/subscriptions/{1}/services/{2}/execute?api-version=2.0&details=true";
But the actual URI was of this format:
"https://{0}.services.azureml.net/workspaces/{1}/services/{2}/execute?api-version=2.0&details=true";
I'm not sure if this was a misstep for me somewhere along the line or not, others in the workshop did not have this issue. Either way, it might be worthwhile to consider changing the /subscriptions/
to be parameterized as well? Or maybe changing the template creation to just ask for the Request-Response URL directly and parse out the portions you need elsewhere?
edit: Just noticed that the URI actually used to be /workspaces/
until commit 827e970. Is it possible I received the old URI because I had signed up with a machine learning account prior to today?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.