Backand on-demand action

71 Views Asked by At

In my backand app, I have created an Action that should return a chain of objects. However, I can't seem to get it to work. I keep getting the 404 error:

Action not found, or is not on demand

While:

  • The action does exist in my app
  • The action is an on-demand action

  • It used to work, until I started using the vanilla SDK (which seems to be the new standard at backand, correct me if I'm wrong)

  • I simply copy-pasted the code that Backand provides when you create an action

  • The 'Where' condition on the action is 'true', so it's not the condition holding me back

This is my code:

this.fetchUserFeed = function(userId) {
        return Backand.object.action.get("entities", "fetchUserFeed", {
          "parameters": {
            "user": userId
          }
        }).then(function(res) { console.log(res); }, handleError('Error fetching user feed'));
      }

Anyone an idea to what might cause this?

Thanks in advance!

0

There are 0 best solutions below