BiswajitchandaOriginal post
Rank 1: Thread
Trying to rad data from database getting tihis error
TypeError: Failed to construct 'URL': Invalid URL
at Databases. (appwrite.js?v=9f5e979b:2187:19)
at Generator.next ()
at appwrite.js?v=9f5e979b:524:67
at new Promise ()
at __awaiter (appwrite.js?v=9f5e979b:506:10)
at Databases.listDocuments (appwrite.js?v=9f5e979b:2175:12)
at DatabaseService.getProducts (database.js:19:44)
at addSpecialOfferProd (main.js:108:37)
Summary
The user is receiving an error when trying to read data from a database. The error message states that there is an invalid URL being used. To resolve this, the user should verify the value passed to `client.setEndpoint()` and ensure it is a valid URL.