Questions tagged [appwrite]

Secure Open-Source Backend Server for Web, Mobile & Flutter Developers Appwrite is a self-hosted backend-as-a-service platform that provides developers with all the core APIs required to build any application. https://appwrite.io/

Secure Open-Source Backend Server for Web, Mobile & Flutter Developers Appwrite is a self-hosted backend-as-a-service platform that provides developers with all the core APIs required to build any application. https://appwrite.io/

130 questions
1
vote
1 answer

How to map JSON data to object in forEach - vue.js

I get a JSON Object as input in my function (pImageArray). I loop over this object, read data from a storage and get a new JSON object back (see image attached). Now and want to map one field "href" in a new object (data). I get the error "Uncaught…
Ralf Bordé
  • 333
  • 4
  • 18
1
vote
1 answer

Caching images (thumbnails) in Listview

I made a simple application where in listview I display a list of items by ListView.builder. Each item is a widget where by FutureBuilder I build a CircleAvatar with a picture taken in initState () via Api. I'm using the AppWrite API. The method…
1
vote
1 answer

Appwrite - JWT doesn't allow to access documents

I'm unable to make a request to my backend using a JWT created when the user logs in in the frontend. Everytime I try, even if the access to the collection is set to role:all, I get this error from the backend: { "statusCode": 500, "code":…
1
vote
2 answers

Appwrite Local Storage Session Issue

Appwrite is installed in the subdomain. While the site is working in the main domain, it does not save session to localstorage when I login. But if I run it in a different domain, the problem is solved. It works when Appwrite and my app are in…
BZC
  • 456
  • 6
  • 15
1
vote
5 answers

Appwrite function returning permissions error

I have a question related to the appwrite functions, I made one function following the example in the tutorial.I deployed the function and running in the appwrite console works just fine. But I did a web app to test the function, installed the sdk…
Gabriela Mendes
  • 191
  • 1
  • 4
  • 14
1
vote
2 answers

appwrite list users search params

I am trying to use appwrite server sdk list users to get userid from an email. The documentation says there is a search: option that can be used but no where does it say what the format of that String? is. What is the format of the search: String?…
1
vote
1 answer

Getter Issue in Flutter and Appwrite

I'm having a situation with the account.get mapping into my user model for a getUser function Future getUser() async { final res = await account.get(); return User.fromMap(res.data); } the res.data is error and says getter is not…
1
vote
1 answer

How to listDocuments() as a Stream of data from an Appwrite database with Flutter?

I am using a StreamBuilder to build my widget. But database.listDocuments() only returns a Future. Is there a way to get a stream of documents which automatically triggers a widget rebuild on a database update just as with Firebase's snapshots()…
Noodles
  • 3,888
  • 2
  • 20
  • 31
1
vote
1 answer

FastAPI + Appwrite.io in docker-compose prod/dev setup?

Found out about appwrite.io and I really like the features appwrite offers. It's similar to the Firebase, but open source. I'm trying to make appwrite work with Python/FastAPI. Bellow it the folder structure of the project. Folder api will contain…
Alin Climente
  • 117
  • 1
  • 2
  • 14
0
votes
2 answers

`window not defined` error in nextjs middleware

Stack I'm using: Appwrite (Backend) Next.js I'm using Next.js middleware to implement some protected routes. In the middleware.ts file, I've added a method that checks whether the user is logged in. After adding that, it's showing the window is…
Pratik Dev
  • 304
  • 2
  • 8
0
votes
2 answers

Can you spot why my state variable is not updating in this auth flow?

I have been working on this authentication for weeks now, and finally throwing in the towel as it has become a beast that is untamable. From my code below, I want the Sign Out and Sign In | Register links to change state if user is not…
Xhris
  • 55
  • 7
0
votes
0 answers

How to get Tweets in Appwrite using flutter

Currently working with Appwrite, and I'm trying to simulate my app to Twitter App where users can follow and unfollow each other. At the moment, users can create tweet, like tweet, comment on tweet, follow and unfollow each other but I want to be…
Zionnite
  • 291
  • 4
  • 13
0
votes
0 answers

appwrite type String is not a subtype of type 'Map'

Sorry if the title is not descriptive enough, I've managed to self host an appwrite on a private cloud, on a container, which incoming traffic is managed by Nginx Proxy Manager I can connect to the appwrite SDK with flutter, I can use…
vontdeux
  • 107
  • 1
  • 2
  • 10
0
votes
0 answers

AppwriteException: Failed to fetch

ERROR COMES ON WHEN TRYING TO CREATE A NEW DOCUMENT IN APPWRITE COLLECTION USING JavaScript function addReminder() { var date = new window.Date(); const promise = databases.createDocument( "64cc8530ed6zdfjzdfjk", …
iamrishan
  • 94
  • 6
0
votes
1 answer

'userId' is declared but its value is never read

import conf from "@/conf/config"; import { Client, Databases, Account, ID } from "appwrite"; import appwriteService from "@/appwrite/config"; type createProject = { name: string, description: string, logo: string, url: string, …
Ayush Parui
  • 13
  • 1
  • 4
1
2
3
8 9