Mission: SERVERLESS 101
Task: Invoke the API Service using generated client SDK
Please, describe your problem here.
i have downloaded the sdk from the business logic section and also the aditional files from the task objective. And as the video mentions i have unzipped them to the same location.
Not the problem comes. The problem is that i dont get any response when i clink on any link buttons that the task says to click on and instead i get a uncaught error and other times some other error.
controller.js:2 Uncaught TypeError: Cannot read property ‘getInstructions’ of undefined
at getInstructions (controller.js:2)
and the same thong with the quoted text different is shown to me on everypress
Hi. Provide, please, your appId.
Your are working with backendless application. Each app has its own identifier – application id.
We need to know what is the application-id of your app to help you.
the app would be the “codelessshoppingcartservice”
The name of your app is
try this one:
now i have been getting this
GET file://api.backendless.com/sdk/js/latest/backendless.min.js net::ERR_FILE_NOT_FOUND
Uncaught ReferenceError: Backendless is not defined
please send me the archive you downloaded
CodelessShoppingCartService.rar (1.6 MB)
there might be some non essential lines of code as i was trying to figure out the problem…
I can reproduce the issue, and I just created an internal ticket BKNDLSS-22389 to fix it.
as a workaround I can propose you the following:
replace body in your index.html file with this:
const appId = 'YOUR_APP_ID';
const apiKey = 'YOUR_API_KEY';
When you have time pls update auto generated SDK files, issue is still there. Applied your solution and worked like a charm! Thanks!
Thanks for your report, we are working on it.