ERROR 401 when connecting a server action

Hi,
I’m following the example in the documentation


and when executing Step 29, binding the ServerConnect to my ServerAction, I get ERROR 401

You can see it in the pic below:

I’m stuck.
I noticed that if I toggle the AppsConnect mode, the error goes away.
Am I doing something wrong? Or is it that the thunderbolt s/b white instead of blue when I add a serverconnect with an action that loads a security restriction?

Many many thanks in advance,

Alex

PS:
I’m also getting the error below when trying to make a condition on a value of the user Role (read by the ServerConnect_GetUserDetails above. They are likely related but I don’t know how. Also, if I edit the equation from the Data Bindings window (by adding the == “Approver” to the line, I do not get the error.

I’m really tired and increasingly confused. I see the potential power of Wappler but I haven’t been able to make much progress in the last couple of days. Do all the non-programmer + wappler noobs have such a hard time getting it to work?

I think I found the answer in a previous posting. Thank you @Hyperbytes for this gem

1 Like

Hi @aschoijett!

This is a common error when viewing a page in Wappler with the App Connect mode turned on because as you discovered, you are not logged in.

There are a couple things that you can do to handle it.

  1. Ignore it and preview the page in the browser, which should force you to log in.
  2. Turn off Security Login and/or Security Restrict when viewing the page inside Wappler.
  3. Add a login redirect to the page so when you turn preview on inside Wappler, you are redirected to a login page and then can refresh the page after successful login.

Thank you Scott.