Socioboard-5.0 icon indicating copy to clipboard operation
Socioboard-5.0 copied to clipboard

undefined error when creating account

Open Yao228 opened this issue 4 years ago • 8 comments

Hi how can provoque this issue : undefined, when I create account after installation.?

Yao228 avatar Aug 08 '21 14:08 Yao228

HI @Yao228

Can you give a little more information about your issue, so that it would be easy to assist you ...

sureshbabu1995 avatar Aug 09 '21 05:08 sureshbabu1995

HI @sureshbabu1995 This is my laravel .env configuration. I dont know if its correct but when I want to signup I get undefined error.

APP_NAME="EASY SOCIALBOARD" APP_ENV=local APP_KEY=base64:VcvhmmqMm7fcBd/5D/JjUHqp1oy6TZBvmDUu4b4XsSA= APP_DEBUG=true

All these should end with /

APP_URL=https://easysocialboard.com WEBSITE_TITLE="EASY SOCIALBOARD" API_URL=http://3.143.218.195:3000 API_URL_FEEDS=http://3.143.218.195:3001 API_URL_PUBLISH=http://3.143.218.195:3002 API_URL_UPDATE=http://3.143.218.195:3003 API_VERSION=v1

LOG_CHANNEL=stack LOG_LEVEL=debug

BROADCAST_DRIVER=log CACHE_DRIVER=file QUEUE_CONNECTION=sync SESSION_DRIVER=file SESSION_LIFETIME=120

YOUTUBE_TRENDS_KEYWORD=bitcoin TWITTER_TRENDS_KEYWORD=bitcoin RSS_TRENDS_KEYWORD=https://timesofindia.indiatimes.com/rssfeeds/54829575.cms

Yao228 avatar Aug 21 '21 17:08 Yao228

Hi, @Yao228

Please use env like this

APP_URL=https://easysocialboard.com/ WEBSITE_TITLE="EASY SOCIALBOARD" API_URL=http://3.143.218.195:3000/ API_URL_FEEDS=http://3.143.218.195:3001/ API_URL_PUBLISH=http://3.143.218.195:3002/ API_URL_UPDATE=http://3.143.218.195:3003/ API_VERSION=v1

Added / at the end

and if you still have any queries, please drop a mail we'll discuss there to solve it quickly with any continuous conversation source.

My mail ID: [email protected]

sureshbabu1995 avatar Aug 27 '21 08:08 sureshbabu1995

I am having the same issues as Yao228, the .env file has the trailing / at the end. Socioboard-5.0 on self-hosted ubuntu server. did anyone come up with a solution for this?

TheBitcoinBay avatar Jul 22 '22 20:07 TheBitcoinBay

@TheBitcoinBay make sure everything can resolve correctly. Undefined error means the api could not be reached from your browser and/or the application.

vaughngx4 avatar Jul 23 '22 07:07 vaughngx4

@vaughngx4 , I have checked and it looks like I am not able to get the micro-services or npm run swagger running. swagger err -> Swagger-autogen: Failed nodemon err:

node:internal/errors:465 ErrorCaptureStackTrace(err); ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/var/www/socioboard/socioboard-api/User/core/unauthorized/unauthorized.routes.js' imported from /var/www/socioboard/socioboard-api/User/resources/routes/public.routes.js at new NodeError (node:internal/errors:372:5) at finalizeResolution (node:internal/modules/esm/resolve:413:11) at moduleResolve (node:internal/modules/esm/resolve:972:10) at defaultResolve (node:internal/modules/esm/resolve:1181:11) at ESMLoader.resolve (node:internal/modules/esm/loader:580:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18) at ModuleWrap. (node:internal/modules/esm/module_job:80:40) at link (node:internal/modules/esm/module_job:78:36) { code: 'ERR_MODULE_NOT_FOUND' }

and it hangs from there.

TheBitcoinBay avatar Jul 27 '22 15:07 TheBitcoinBay

@TheBitcoinBay it seems you are either missing some source code or some permissions are messed up in /var/www.

The error above states it cannot find the file /var/www/socioboard/socioboard-api/User/core/unauthorized/unauthorized.routes.js

If it is a permissions error I'd suggest creating a socioboard user and group and chown -R the /var/www/socioboard directory.

vaughngx4 avatar Jul 27 '22 15:07 vaughngx4

@vaughngx4 thx... i will try that

TheBitcoinBay avatar Jul 27 '22 20:07 TheBitcoinBay