User dropdown and Auth not visible/working upon deployment

Hello, So i have deployed my app using fly.io and neither the user menu dropdown nor authentication is working as it should, i have experienced the same issue when not connectected to the internet but i did not imagine i would come across it in production does anyone know how to fix this?
5 Replies
kapa.ai
kapa.ai4mo ago
Hi @Ertan Köse. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry to hear you're experiencing issues with your user menu dropdown and authentication in your deployed Wasp app. Here are a few steps you can take to troubleshoot the issue: 1. Check Network Requests: Open your browser's developer tools and check the "Network" tab. Look for any requests to your server that are taking a long time or failing. This could indicate a problem with your server or network connection. Source (https://discord.com/channels/686873244791210014/1217941277979574315) 2. Check Server Logs: If you're using a service like Fly.io, go to your server on their platform and check the logs. Look for any errors or signs that the server isn't receiving requests from the client. Source (https://discord.com/channels/686873244791210014/1217941277979574315) 3. Check Your Authentication Configuration: Make sure your authentication configuration is correct. For example, if you're using Google authentication, check your userSignupFields and configFn in your main.wasp file. If these are incorrect or outdated, it could cause issues with authentication. Source (https://discord.com/channels/686873244791210014/1222916615151161374) 4. Redeploy Your App: If all else fails, try redeploying your app. Sometimes, issues can be resolved simply by redeploying. Source (https://discord.com/channels/686873244791210014/1217941277979574315) If you're still experiencing issues after trying these steps, please provide more information about your setup and the exact errors you're seeing so we can better assist you. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Ertan Köse, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Ertan Köse
Ertan KöseOP4mo ago
@kapa.ai here are the logs [email protected] validate-env 2024-08-26T18:21:04.003 app[3d8dd12a9d5368] ams [info] > node -r dotenv/config ./scripts/validate-env.mjs 2024-08-26T18:21:04.093 app[3d8dd12a9d5368] ams [info] 🔍 Validating environment variables... 2024-08-26T18:21:05.203 app[3d8dd12a9d5368] ams [info] 🚀 "Email and password" auth initialized 2024-08-26T18:21:05.239 app[3d8dd12a9d5368] ams [info] node:internal/errors:496 2024-08-26T18:21:05.239 app[3d8dd12a9d5368] ams [info] ErrorCaptureStackTrace(err); 2024-08-26T18:21:05.239 app[3d8dd12a9d5368] ams [info] ^ 2024-08-26T18:21:05.239 app[3d8dd12a9d5368] ams [info] TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined 2024-08-26T18:21:05.239 app[3d8dd12a9d5368] ams [info] at __node_internal_captureLargerStackTrace (node:internal/errors:496:5) 2024-08-26T18:21:05.239 app[3d8dd12a9d5368] ams [info] at new NodeError (node:internal/errors:405:5) 2024-08-26T18:21:05.239 app[3d8dd12a9d5368] ams [info] at Function.from (node:buffer:333:9) 2024-08-26T18:21:05.239 app[3d8dd12a9d5368] ams [info] at <anonymous> (/app/src/server/workers/googleAnalyticsUtils.ts:4:28) 2024-08-26T18:21:05.239 app[3d8dd12a9d5368] ams [info] at ModuleJob.run (node:internal/modules/esm/module_job:194:25) { 2024-08-26T18:21:05.239 app[3d8dd12a9d5368] ams [info] code: 'ERR_INVALID_ARG_TYPE'
kapa.ai
kapa.ai4mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- The error logs you provided indicate that there's a TypeError [ERR_INVALID_ARG_TYPE] being thrown in your application. This error is typically thrown when a function receives an argument of a type it didn't expect. In your case, it seems like the error is originating from the googleAnalyticsUtils.ts file at line 4. The error message suggests that a function in this file is expecting an argument of type string, Buffer, ArrayBuffer, or an Array-like Object, but it received undefined instead. Here's what you can do to troubleshoot this issue: 1. Check the googleAnalyticsUtils.ts file: Open this file and check the function at line 4. Make sure that it's receiving the correct arguments. If this function is expecting a certain environment variable, make sure that this environment variable is defined in your .env file and is being loaded correctly. 2. Validate Environment Variables: The logs show that your app is running a script called validate-env.mjs to validate environment variables. Make sure that all required environment variables are defined and have valid values. If any environment variables are missing or have invalid values, this could cause issues in your app. 3. Check Your Authentication Configuration: The logs also show that your app is initializing "Email and password" authentication. Make sure that your authentication configuration is correct. If your authentication configuration is incorrect or outdated, it could cause issues in your app. If you're still experiencing issues after trying these steps, please provide more information about your setup and the exact errors you're seeing so we can better assist you. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Ertan Köse, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho4mo ago
@Vinny (@Wasp) one more for you 🙂
Ertan Köse
Ertan KöseOP4mo ago
Okey solved... i deployed somethign with errors Xd
Want results from more Discord servers?
Add your server