-
Notifications
You must be signed in to change notification settings - Fork 727
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
Tried all the things but it always shows the null in the terminal after the post signUp is completed. #77
Comments
Hey @pantboi2703! The error What we can try is debug it, could you share:
I'm no expert myself but maybe we can figure this out. If by any chance you already found the source of your issue, it would be useful to share it here for anyone else that might have the same issue. Regardless of whether you want to share the solution. if you don't have the issue anymore feel free to close this issue as resolved! |
This is my appwrite.ts file code:- 'use server'; import { ID } from "node-appwrite"; export const signIn = async ({ email, password}:
} export const signUp = async (userData: SignUpParams) => {
} // ... your initilization functions export async function getLoggedInUser() {
} export const logoutAccount = async () => {
} |
This seems more like the user.actions.ts file. I'll post my appwrite.ts, perhaps you could get lucky with a copy and paste if the issue lies within the appwrite.ts
|
Hey @mr-andrej can you please show me your user.actions.ts file |
Same thing happening to me |
now I got Server Error: User (role: guests) missing scope (account) |
@pantboi2703 My user.actions.ts (you can find all my files on my GitHub, though some of the code will differ from what Adrian showed):
|
@tskxz Off the top of my head I could think of a few fixes for that error:
Make sure to review the video tutorial around the moment when things stopped working, trying to get a sense of what could have gone wrong. |
GET /sign-up 200 in 164ms
Error: No session
at createSessionClient (webpack-internal:///(rsc)/./lib/appwrite.ts:21:15)
at getLoggedInUser (webpack-internal:///(rsc)/./lib/actions/user.actions.ts:58:97)
at SignUp (webpack-internal:///(rsc)/./app/(auth)/sign-up/page.tsx:16:106)
at e_ (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:263963)
at e (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:268095)
at eF (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:268583)
at eq (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:274547)
at ej (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:264791)
at e_ (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:263833)
at e (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:268095)
at eF (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:268583)
at /home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:265814
at Array.toJSON (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:266278)
at stringify ()
at eq (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:274646)
at eJ (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:275164)
at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14)
at Timeout._onTimeout (/home/mayank/banking/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:35:283159)
at listOnTimeout (node:internal/timers:594:17)
at process.processTimers (node:internal/timers:529:7)
null
POST /sign-up 200 in 1468ms
The text was updated successfully, but these errors were encountered: