Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documnet Modal file is missing #1

Closed
sheikhsuleman123 opened this issue Aug 29, 2023 · 11 comments
Closed

Documnet Modal file is missing #1

sheikhsuleman123 opened this issue Aug 29, 2023 · 11 comments

Comments

@sheikhsuleman123
Copy link

I am unable to find the document.dart modal file

@Snehasis4321
Copy link
Owner

I have not written any document.dart file ,
I have use Document Model which is a part of appwrite .
import 'package:appwrite/models.dart';
import this package will solve you error.

@sheikhsuleman123
Copy link
Author

sheikhsuleman123 commented Aug 29, 2023 via email

@Snehasis4321
Copy link
Owner

paste the screenshot here. i will try to figure whats your problem.

@sheikhsuleman123
Copy link
Author

image

i am unable to import this

@Snehasis4321
Copy link
Owner

Line 11 final client= Client(); is wrong

till will be something like this

Client client = Client() .setEndpoint('YOUR_APPWRITE_ENDPOINT') //Replace with your appwrite endpoin .setProject('YOUR_PROJECT_ID') //Replace with your projectID .setSelfSigned( status: true);

In my case i have imported it from auth.dart

image
image

I hope you got it.

@sheikhsuleman123
Copy link
Author

Dear Brother I am using the Getx and this is my code I get an error from Appwrite

image

@Snehasis4321
Copy link
Owner

look like a backend error, just check and verify all the endpoints and project id are correct according to appwrite console.

@sheikhsuleman123
Copy link
Author

login and signup functionality is working ok but I am facing error in the database only , is there any solution or suggestion for this

@Snehasis4321
Copy link
Owner

I will suggest you check the permissions of your database collection in you appwrite console,are READ WRITE permission are given or not.

@sheikhsuleman123
Copy link
Author

Brother I cross-check everything login signup is working perfectly now when I add the todo also same error occur

image

@sheikhsuleman123
Copy link
Author

solved
I am proceeding your videos next If I have any issue can I ask you ?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants