Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 12 online users. » 0 Member(s) | 10 Guest(s) Bing, Google
|
Latest Threads |
using cdb_auth with Live...
Forum: General
Last Post: JereMiami
12-19-2024, 01:58 AM
» Replies: 0
» Views: 16
|
BLOBs - not possible to a...
Forum: General
Last Post: stamatis
10-06-2024, 06:28 PM
» Replies: 0
» Views: 259
|
Allow users to change the...
Forum: General
Last Post: mark_talluto
01-18-2024, 01:09 AM
» Replies: 8
» Views: 11,439
|
cdb_sendEmail
Forum: General
Last Post: mark_talluto
11-07-2023, 09:57 PM
» Replies: 0
» Views: 688
|
cdb_sync & cdb_lookupvalu...
Forum: General
Last Post: mark_talluto
11-07-2023, 09:45 PM
» Replies: 1
» Views: 1,241
|
cdb cdb_sendEmail
Forum: Bug Reports
Last Post: JereMiami
10-05-2023, 01:57 PM
» Replies: 0
» Views: 1,770
|
LCM: "Please inform Canel...
Forum: General
Last Post: mark_talluto
07-12-2023, 07:58 PM
» Replies: 24
» Views: 23,241
|
San Franciso Region Outag...
Forum: Announcements
Last Post: mark_talluto
05-09-2023, 03:31 AM
» Replies: 1
» Views: 2,880
|
Error, CDB_Header checksu...
Forum: General
Last Post: cpuandnet
02-01-2023, 05:00 AM
» Replies: 4
» Views: 3,933
|
CDBCache sync from local ...
Forum: General
Last Post: Hendricus
01-29-2023, 09:39 PM
» Replies: 2
» Views: 2,779
|
|
|
using cdb_auth with Livecode Server |
Posted by: JereMiami - 12-19-2024, 01:58 AM - Forum: General
- No Replies
|
|
So I got a little creative with this thread (https://forums.livecloud.io/showthread.p...ight=hostm), integrating livecloud with Livecode Server. I am successful in getting the local auth verified.
Here is the log (it stops after local data verified and does not send to, and thus does not receive, from the cloud):
---
- - - - - - - - - - - - - - - - - - - - -
Wed, 18 Dec 2024 22:59:15 +0000
Local authentication passed: local data verified
- - - - - - - - - - - - - - - - - - - - -
---
But, it stops there and does not auth the cloud data (no send/no receive). The script gets through cdb_setLogMode and cdb loadTable "cdbCache," but stops midway through cdb_auth and stops the handler in its tracks after verifying local data. Of course, I am successful getting an auth from the cloud in the IDE and all other standalones (android & iOS). My question is then: What is the most likely culprit preventing getting a cloud auth when cdb_auth is sent from a /home/public_html folder with a server (here. Livecode Server)?
Code: on initializeCanelaDB
wait 0 milliseconds with messages
put "[authkey]" into gCDBAuthKey
set itemdel to slash
put item 1 to -2 of (the effective fileName of this stack) into tServerPath
put "/CanelaDB/libraries/" after tServerPath
try
start using stack (tServerPath & "CDB_Header.lib")
start using stack (tServerPath & "CDB_Starter.lib")
catch tError
answer "caught error :)..."
exit to top
end try
cdb_SetLogMode "disk"
cdb_loadTable "cdbCache"
get cdb_auth("[login]","[password]","developer")
cdb_loadTable "*"
end initializeCanelaDB
|
|
|
BLOBs - not possible to add filename/metadata? |
Posted by: stamatis - 10-06-2024, 06:28 PM - Forum: General
- No Replies
|
|
Hi Mark and Team
I was wondering if I could have some guidance on to how to use the BLOBs function.
I can upload all the BLOBs I want - but the database does not seem contain any reference to the file name or allow embedding any metadata relating what the BLOB is. So all I can access is a bunch of BLOBs with a cdbRecordID and type, but nothing else, which means there is no way to search for the BLOBs that are relevant to a particular operation.
In my specific use case, I want to upload 10 medical cases that contain 10 videos each. No problem at all uploading them all as BLOBs (as a sidenote, the upload seems to be deferred to the background as a non-blocking action, is there a callback option to notify completion?).
The question is: How am I meant to know which BLOB is which video? The only way I can see is to keep a separate database linking the cdbRecordID to a specific case, which introduces an unnecessary level of complexity. The key HBID seems pointless as it only contains boilerplate text.
I would have thought that since the file name is passed as part of the create blob process this should be a key in the cdbBlobs table... or am I missing something?
How is this envisioned to be used in cases where batch uploads are performed as a standalone step?
Seems likely I'm missing something, so really grateful for guidance on this
Many thanks
Stam
|
|
|
cdb_sendEmail |
Posted by: mark_talluto - 11-07-2023, 09:57 PM - Forum: General
- No Replies
|
|
Hi folks,
This API, as it has been designed, will no longer serve anyone outside of Canela. Our email provider, SendGrid, requires customers to update our profiles for security reasons. The changes broke our use of the API as well.
One future solution is for us to allow all of you to use your own SendGird API key. I am sorry for any inconvenience this may cause.
-Mark
|
|
|
cdb_sync & cdb_lookupvalue |
Posted by: JereMiami - 10-26-2023, 04:01 PM - Forum: General
- Replies (1)
|
|
Are these not working? San Francisco.
lookupvalue: "Error: There was a problem getting a response from the server for cdb_lookUpValueCloud."
sync gives me: "Error: Can not get cloud sync index. We appear to be offline."
|
|
|
cdb cdb_sendEmail |
Posted by: JereMiami - 10-05-2023, 01:57 PM - Forum: Bug Reports
- No Replies
|
|
Q: Does cdb cdb_sendEmail work? I can't seem to send an email with this command, even using just the first three inputs (to, from, subject).
cdb_result("response") just returns "FALSE."
An email is sent to verify a new account. So that works. Just I can't get this command to send one.
|
|
|
San Franciso Region Outage |
Posted by: mark_talluto - 05-09-2023, 12:22 AM - Forum: Announcements
- Replies (1)
|
|
Hello everyone. We are experiencing an outage in the San Francisco region. We believe the issue is due to our cloud provider being unable to resolve DNS requests. They are working on the issue.
https://status.digitalocean.com/
We will monitor the situation closely and update you when there is a resolution to the problem.
No other regions have been affected by this issue.
-Mark Talluto
|
|
|
Error, CDB_Header checksum did not match. |
Posted by: cpuandnet - 01-28-2023, 09:49 PM - Forum: General
- Replies (4)
|
|
Is anyone else also getting error CDB_Header checksum did not match using the latest LiveCloud toolkit (2.7.8). I've even tried creating a blank test project from LCM and opening it in LiveCode without any modifications and I still get the error. I'm using LiveCode Win 9.6.8.
Thank you,
Tim
|
|
|
CDBCache sync from local to cloud |
Posted by: Hendricus - 01-27-2023, 06:15 PM - Forum: General
- Replies (2)
|
|
Dear LiveCloud users,
I am a bit confused about how the CDBCache should be working. I may have the wrong understanding from the documentation and what I get with the code. Maybe someone can point me in the right direction.
My application starts after the login with checking to start with syncing updated records if authentication status with the cloud succeeds and then go into the first card, or just straight go to the first card if authentication status with the local database succeeds.
Code: get cdb_auth(tEmail,tPassWord,"User")
put cdb_authStatus() into tAuthStatusA
if tAuthStatusA["cloud"] then
cdb_loadTable
...
else
if tAuthStatusA["local"] then
cdb_loadTable
...
end if
end if
...
The user can update records and these are applied to the local database first, and then synced to the cloud using cdb_batchSync(tInputA).
All have been working just fine when there is an internet connection, passing the cloud authentication at the start. I can use different devices and their local database is always synced via the cloud database. But when I put my laptop in airplane mode (no internet) it passes the local authentication and the call to cdb_batchSync isn't being processed. (This is testing in the development environment, working from within the LiveCode IDE.) I assumed from the documentation that the missed transactions, to sync the cloud database with the local changes (as the source), will be cached. When the application would start the next time, my laptop not being in airplane mode (so WITH an internet connection), the cached data update would then be applied to the cloud database. This never happens though.
Is there a different way I should work with this, keeping database content synced via the cloud across different devices (when sometimes a device is being used without an internet connection)? Any help to understand this better I would appreciate very much.
|
|
|
All regions receiving updated libraries |
Posted by: mark_talluto - 12-01-2022, 12:29 AM - Forum: Announcements
- Replies (1)
|
|
Hi Folks,
I want update you that we are in the process of updating all the regions with updated libraries.
The main change is that emails for new developer and user accounts will now store emails with all characters store in lowercase.
We have received feedback that people could not remember their email casing. This caused frustration.
To be clear, we are still supporting full case sentivity for passwords. Nothing is changing there.
We also changed how authKeys work. We no longer update the initializeCanelaDB handler in your apps. This model has been deprecated. This change alone will prevent the errors related to not being able to decrypt your config file. In the past, the key used for encryption was changing based on the last signed in user in your app. This could make it difficult to recover from.
What else are we working on for the near future?
We are reworking our APIkey system. The update will prevent sign-ins from different apps that use LiveCloud on the same computer from changing the API key forcing authorization again.
The downtime should be minimal with most of your clients not even noticing.
Please respond here if you have any questions.
-Mark
|
|
|
|