Weird error

Mission: SERVERLESS 101
Task: Invoke the API Service using generated client SDK

Hi guys,

I’ve deployed the local app per the mission, using IntelliJ and all, but something weird is going on trying to invoke the API - it goes to the wrong place and gets a 404…

I think my configuration is correct, unless I’m missing something obvious.

My AppID is 8AB4C82A-6C80-4209-B823-920CD6A1A708

Hi Elad,

It looks like the code is missing app initialization logic. Make sure to include the following line of code as the very first line in controller.js:

Backendless.initApp( application-Id, api-key )

The application-Id and api-key comes from Backendless Console, you can find them on the main dashboard screen.

Regards,
Mark

Cheers Mark - working now and makes complete sense :grinning: