Sorry, your login session has changed / expired... please try again

I’m using Data API (with Token) to save and change an object from a web page (without authentication → user is not logged in).

I set the privacy roles of the object I want to create/change like this:

And I tested my API Connector request with CURL and it works as a charm.
See the log that confirms that it works also in Bubble here

The problem is that when I trigger the workflow that fires the API call, the object gets changed or saved, BUT on Safari and Chrome Incognito Window I keep on getting this popup and I see an “401 Unauthorized” error in the console.

  • Note 1: when I remove the API call from the workflow I don’t get the popup and the “401 Unauthorized” error in the console (and of course I don’t change/save the object)
  • Note 2: when I set a condition on the API call action (which I’m sure is always false), the popup comes up as if the condition were true, I see an “401 Unauthorized” message in the console BUT the object doesn’t get saved/changed.

Furthermore, If I try to change / save the object with a Workflow API and I set "Ignore privacy rules when … " (see image below) in the action and in the workflow endpoint I get always the warning popup (“Sorry, your login session…”)

Why I keep on seeing that 401 Unauthorized error and that popup? Am I missing something in the setup of the API call / privacy rules? @emmanuel can it be a bug?

1 Like