Support Topics Documentation Slack YouTube Blog

Task 2 of Serverless 101 problems

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.
The most common is the uncaughterror. I am new to javascript so i followed the video yet i cant make it work. The error (uncaught error) show this
controller.js:2 Uncaught TypeError: Cannot read property ‘getInstructions’ of undefined
at getInstructions (controller.js:2)
at :1:1

and the same thong with the quoted text different is shown to me on everypress

Hi. Provide, please, your appId.

i couldn’t get you…

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

Hello, @Newrade_CO

try this one:


Regards, Vlad

now i have been getting this
Uncaught ReferenceError: Backendless is not defined
at CodelessShoppingCartService.js:17

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:

    <a href="javascript:getInstructions()">Get Instructions</a>
    <a href="javascript:addItem()">Add Item</a>
    <a href="javascript:getItems()">Get Items</a>
    <a href="javascript:purchase()">Purchase</a>
    <div id="output">

    <script src=""></script>
    <script src="js/services/CodelessShoppingCartService.js"></script>
    <script src="js/controller.js"></script>
<script type="text/javascript">
  const appId = 'YOUR_APP_ID';
  const apiKey = 'YOUR_API_KEY';

  Backendless.initApp(appId, apiKey);

Regards, Vlad

thanks alot