I ran into something interesting that I’d like to get more insight into - hopefully have it resolved. The problem is manifesting in two forms, leading me to thinking it could a database conflict issue.
Enrolled patients appear in the UI, but they don’t seem to be found in the database through this endpoint https://itech-zimbabwe-training.dev.medicmobile.org/medic/3495de5c-b0e3-47f9-ae37-f7377303605f or by directly searching in couchdb.
The instance is not talking to rapidpro, despite having added the rp token to the database - enrolled contacts can’t be found on rp.
I initially thought the instance was talking to a different database. Had to rule out database conflicts as described in this section of the docs, as the endpoint returns an empty list
Are you using an offline user’s account to create the contacts? Did you synchronize?
Offline users are only allowed to upload contacts and reports that they would have access to, so if your form doesn’t generate the correct lineage, then your upload could be blocked.
If you login as one of these users, open dev tools, create a contact, sync, and watch for logs, are there errors reported?
An important detail to add is that the same app is running on two other instances - including local - and it is only this that’s misbehaving. Could it be with how the instance was provisioned?