#sign up / sign in issue on Store It

57 messages · Page 1 of 1 (latest)

vapid hinge
#

Hi, i leave some screenshots to understand better, when i try to create an account, i can't ... can someone tell me why? And how to fix it? I've made all what he did in video. Thanks!!

vapid hinge
#

Can someone help me?

blazing blade
#

Hi! If you share some code, perhaps we can help you further.

#

(or share the GH repo would be even better...)

vapid hinge
#

Which part of code do you want to share?

vapid hinge
vapid hinge
#

So is someone to help me?

blazing blade
#

Gonna try to reproduce here and will let you know if I have any success..

vapid hinge
#

ok, waiting

blazing blade
#

Is this project from a tutorial somewhere?

vapid hinge
#

Yes

#

Build a Professional and Production-ready Storage Management Platform inspired by giants like Google Drive, Dropbox, and OneDrive, used by billions of users.

⭐ Get $50 free Appwrite Pro credits: https://apwr.dev/JSM050
🌟 WebStorm: https://jb.gg/JSMastery

📙 Get your FREE 218-page Ultimate Next.js eBook - https://resource.jsmastery.pro/nextjs-eb...

▶ Play video
blazing blade
#

Well... I built the project locally (after setting up all the prereqs on appwrite) and was able to create an account. Could you paste the error you're getting in text here, since it's not readable on your print?

My bet, as of now, would be that something was setup wrong on your appwrite account.

vapid hinge
#

I can't send u all error here, but i can send you .txt with error

blazing blade
#

Did you add the user collection id (it looks like appwrite calls tables "collections") to the .env.loca file on property NEXT_PUBLIC_APPWRITE_FILES_COLLECTION?

#

Something like this... Obviously those ids are fake (not mine ones)

vapid hinge
#

and how exactly i need to change?

#

or what i need to add

blazing blade
#

Did you add the file collection ID to the property NEXT_PUBLIC_APPWRITE_FILES_COLLECTION on your .env.local file?

vapid hinge
#

yes

blazing blade
#

Also: did you create the attributes on your users collection exactly like instructed on the video? Could you paste a screenshot of the attributes for the users collection? My one looks like this:

#

Note the email attribute type is email...

vapid hinge
#

same here

blazing blade
#

Also: I assume you generated an API key, right?

vapid hinge
#

yes

#

i've made all steps

#

i really don't know how to fix it

blazing blade
#

Yeah... I'm puzzled too...

#

Did you add the role any on the users collection?

vapid hinge
#

yes

blazing blade
#

Well... Your code worked perfectly for me. The only thing I need to change was to add the .env.local file. There can only be something wrong on your appwrite project setup. Can't think of anything else. I suggest you delete your project and recreate following carefully the steps.

vapid hinge
#

oh.. ok bro, thanks a lot for your time

blazing blade
#

No problem. Sorry if I couldn't help any further. Feel free to DM me if you need help with anything else.

vapid hinge
#

Thanks a lot!

#

and when i open localhost, i get this issue.

#

so this time not for sign up

vapid hinge
#

So?

vapid hinge
#

??!

formal stirrup
#

dude is the set key function is working??

#

its not working for me like adrian and the package is not like "node-appwrite" its now called appwrite am i right?

vapid hinge
#

Idk bro.

#

Make me understand, what I need to change?

vapid hinge
# formal stirrup its not working for me like adrian and the package is not like "node-appwrite" i...

GET /sign-up 200 in 260ms
⨯ AppwriteException: Missing required parameter: "collectionId"
at Databases.listDocuments (D:\StoreIt.next\server\chunks\ssr\node_modules_node-appwrite_dist_61e1da..js:3270:19)
at getUserByEmail (D:\StoreIt.next\server\chunks\ssr[root of the server]__d3aee0.
.js:926:36)
at async createAccount (D:\StoreIt.next\server\chunks\ssr[root of the server]__d3aee0._.js:947:26)
digest: "3437059974"
POST /sign-up 500 in 68ms

blazing blade
vapid hinge
#

Na, I’ll remake the application again.. unfortunately

blazing blade
#

It doesn't seem to be a problem with your code (I've used your code from github and it worked perfectly). It might be some "garbage" on your project folder or something wrong with your setup on appwire. Try download your own github code on a new folder and running it.

#

If that doesn't work, the suspicion grows on your appwire setup.

vapid hinge
#

I’m more than sure is appwrite.. but idk now what.. what I need to change or fix

blazing blade
#

I would delete the project and recreate on appwrite. I set it up in less than 10 minutes.

vapid hinge
#

I succeded... guess what was the real issue?

#

missing letter S.... i wrote user, insted of users...

wispy wasp
#

bro I am getting same issue

#

tell me how you resolce this

vapid hinge
#

On my side was easy.. I just think told above.. just missing a letter

#

In env.local I wrote USER instead of USERS