Rank 2: Process
I created a function within appWrite to try to read a document. However, I come across a problem that does not show an error and the script stops working in the get_document query.
What address to access the database, for example, within an AppWrite function?
client = Client()
(client
.set_endpoint('http://127.0.0.1/v1')
.set_project('657da51f0...')
.set_key('cf2c393c430...')
)
documento = databases.get_document('657da5305d...', '657da6499df6...', context.req.body["documentId"])
Error
appwrite.exception.AppwriteException: HTTPConnectionPool(host='127.0.0.1', port=80):