Dear Mark and team,
I haven't yet started using AutoSetupAuthKey - however i did (as per the recommendation at LCM startup) download updated SDKs and now cannot connect to cloud data.
as previously, i get the messages:
but then I also get two new messages:
The last error occurs on trying to read cloud data after initialisation and auth. It's probably worth noting that gCDBAuthKey is empty at the end of this...
the InitialiseCanelaDB script is in the mainstack's script and is called from the on preOpenStack on the 1st card of the mainstack - the app is not currently built as a stand-alone.
Does this relate to autoSetupAuthKey?
The code use to work just fine previously...
----------------
EDIT 1: I'm not sure i understand where exactly i'm supposed to call autoSetupAuthKey as, as opposed the comments in the example, i haven't ever used cdb_SDK(). But calling this as per the example in documentation (moving the initialisation script to a script only stack etc) didn't fix my issues.
EDIT 2: I was able to resolve this by reverting to an older version of the SDK and script. It's probably something i'm not doing right, but using the newer SDK/script does't work for me (i can always auth() but can never read data - i just get an unhelpful message saying 'Error reading cloud records' which goes away when i use older version of the SDK/script.
I haven't yet started using AutoSetupAuthKey - however i did (as per the recommendation at LCM startup) download updated SDKs and now cannot connect to cloud data.
as previously, i get the messages:
Code:
(2021-06-03 20:40:49.519): Local authentication unsure: no local data to verify
(2021-06-03 20:40:52.105): Cloud authentication - received nonse value
(2021-06-03 20:40:53.962): Cloud authentication - received apiKey
(2021-06-03 20:40:53.962): Cloud authentication passed
but then I also get two new messages:
Code:
(2021-06-03 20:40:53.962): The authentication key changed. Successfully requested a new API authentication key
(2021-06-03 20:40:53.963): Error reading cloud records.
The last error occurs on trying to read cloud data after initialisation and auth. It's probably worth noting that gCDBAuthKey is empty at the end of this...
the InitialiseCanelaDB script is in the mainstack's script and is called from the on preOpenStack on the 1st card of the mainstack - the app is not currently built as a stand-alone.
Does this relate to autoSetupAuthKey?
The code use to work just fine previously...
----------------
EDIT 1: I'm not sure i understand where exactly i'm supposed to call autoSetupAuthKey as, as opposed the comments in the example, i haven't ever used cdb_SDK(). But calling this as per the example in documentation (moving the initialisation script to a script only stack etc) didn't fix my issues.
EDIT 2: I was able to resolve this by reverting to an older version of the SDK and script. It's probably something i'm not doing right, but using the newer SDK/script does't work for me (i can always auth() but can never read data - i just get an unhelpful message saying 'Error reading cloud records' which goes away when i use older version of the SDK/script.