Back

array to the database

  • 0
  • Databases
  • Web
Biswajitchanda
10 Jan, 2024, 05:47

Trying to rad data from database getting tihis error TypeError: Failed to construct 'URL': Invalid URL at Databases.<anonymous> (appwrite.js?v=9f5e979b:2187:19) at Generator.next (<anonymous>) at appwrite.js?v=9f5e979b:524:67 at new Promise (<anonymous>) 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)

TL;DR
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.
Drake
10 Jan, 2024, 05:53

What did you pass to client.setEndpoint()?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more