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

Gateway timeout when registering new user #386

Open
pmgendron opened this issue Jul 15, 2022 · 10 comments
Open

Gateway timeout when registering new user #386

pmgendron opened this issue Jul 15, 2022 · 10 comments

Comments

@pmgendron
Copy link

Hi,

I'm trying to register a new user from the web UI and I keep getting a 504 gateway timeout. The error occurs when I press the register button.

Any help would be greatly appreciated as i'm stomped on this at the moment.

here's a few outputs from files I thought could be relevant. Let me know if you need more.

Happy to jump on a call / move this to email if it works better for you.

thank you very much in advance.

console returns

XHR POST https://socioboard.lan.domain/register
[HTTP/1.1 504 Gateway Time-out 30047ms]

here's the error in laravel.log

[2022-07-14 21:25:41] local.INFO: Exception 210 => Function Name =>  => code =>0 => message =>  cURL error 52: Empty reply from server (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://10.16.14.46:3000/v1/register  
[2022-07-14 21:25:41] local.INFO: Exception 54 => Function Name =>  signUp() {RegistrationController} => code =>0 => message =>  Trying to access array offset on value of type null  

here's the development.json file in User

{
    "user_socioboard": {
      "mail_url": "https://socioboard.lan.domain",
      "host_url": "http://10.16.14.46:3000",
      "port": "3000",
      "host": "10.16.14.46:3000"
    },
    "session": {
      "name": "SBCS",
      "key_1": "somerandomkey",
      "key_2": "somerandomkey"
    },
    "profile_page_invite_redirect_url": "",
    "invite_redirect_url_web": "",
    "swagger_host_url": "10.16.14.46:3000",
    "TIMEZONE": "",
    "profile_add_redirect_url": "https://local.socioboard.com/facebook/callback",
    "profile_page_redirect_url": "https://local.socioboard.com/facebook-page/callback",
    "facebook_api": {
      "app_id": "<< APP ID >>",
      "secret_key": "<< APP SECRET >>",
      "redirect_url": "https://local.socioboard.com/facebook-callback",
      "fbprofile_add_redirect_url": "https://local.socioboard.com/facebook/callback",
      "invite_redirect_url": "",
      "page_scopes": "",
      "group_scopes":"",
      "login_scopes": "",
      "profile_scopes": "",
      "version": "5.0.0"
    },
    "google_api": {
      "client_id": "<< APP CLIENT ID >>",
      "client_secrets": "<< CLIENT SECRET >>",
      "redirect_url": "https://local.socioboard.com/google-callback",
      "youtube_redirect_url": "https://local.socioboard.com/youtube/callback",
      "google_profile_add_redirect_url": "https://local.socioboard.com/youtube/callback",
      "api_key": "<< API KEY >>",
      "dynamic_link": "https://socionode.page.link",
      "youtube_webhook_url": "http://localhost:3002/v1/webhooks/youtube",
      "youtube_insights_metrics": "averageViewDuration,likes,dislikes,comments,shares,subscribersGained,subscribersLost,views",
      "login_scopes": "",
      "google_profile_add_invite_redirect_url": ""
    },
    "github_api": {
      "client_id": "GIT",
      "client_secret": "GIT",
      "redirect_url": "GIT"
    },
    "twitter_api": {
      "api_key": "<< APP KEY >>",
      "secret_key": "<< CLIENT SECRET >>",
      "login_redirect_url": "https://local.socioboard.com/twitter-callback",
      "redirect_url": "https://local.socioboard.com/twitter/callback",
      "invite_redirect_url": "",
      "app_name": "<< APP NAME >>",
      "webhook_url": "https://localhost:3002/v1/webhooks/twitter",
      "webhook_environment": "development",
      "version": "5.0.0"
    },
    "linkedIn_api": {
      "client_id": "<< APP CLIENT ID >>",
      "client_secret": "<< CLIENT SECRET >>",
      "redirect_url": "https://local.socioboard.com/linkedin/callback",
      "redirect_url_page":"https://local.socioboard.com/linkedIn-pages/callback",
      "invite_redirect_url": "",
      "invite_redirect_url_page":"",
      "scope":""
    },
    "instagram_api": {
      "client_id": "<< APP CLIENT ID >>",
      "client_secret": "<< CLIENT SECRET >>",
      "redirect_url": "https://local.socioboard.com/insta-callback",
      "invite_redirect_url": "https://local.socioboard.com/insta-invite/callback"
    },
    "pinterest": {
      "client_id": "<< APP CLIENT ID >>",
      "client_secret": "<< CLIENT SECRET >>",
      "redirect_url": "https://localhost:3000/v1/team/addSocialProfile",
      "scope":""
    },
    "instagram_business_api": {
      "client_id": "<< APP CLIENT ID >>",
      "client_secret": "<< CLIENT SECRET >>",
      "business_redirect_url": "https://local.socioboard.com/instagram-business/callback",
      "business_invite_redirect_url": "",
      "business_account_scopes":""
    },
    "bitly_api": {
      "client_id": "",
      "client_secret": "",
      "redirect_uri": "",
      "access_token":""
      },
   "tiny_link":{
     "api_key":""
    },
  "tumblr_api":{
      "OAuth_consumer_Key":"",
      "OAuth_consumer_secret":"" 
     },
  "test_url": "",
    "jest": {
      "access_token": "<< JEST ACCESS TOKEN >>"
    },
    "mailTitles": {
      "activation_link": "Dev - Activation link",
      "Invitation_user": "Dev - Invitation from SocioBoard to Add Account",
      "forgot_password_request": "Dev - Reset Password",
      "payment_invoice": "Dev - Payment Invoice"
    },
    "mysql": {
      "host": "10.16.10.23",
      "username": "socioboard",
      "database": "socioboard",
      "password": "PASSWORD"
    },
    "mongo": {
      "username": "socioboard",
      "password": "PASSWORD",
      "host": "10.16.10.42",
      "db_name": "socioboard"
    },
    "authorize": {
      "secret": "<< RANDOM SECRET >>",
      "token_secret": "<< RANDOM TOKEN >>",
      "algorithm": "aes-256-cbc",
      "encoding_typeOne": "utf8",
      "encoding_typeTwo": "hex"
    },
    "mailService": {
      "defaultMailOption": "sendgridapi",
      "sendgrid": {
        "username": "ACCOUNTINFO",
        "password": "ACCOUNTPASSWORD",
        "frommail": "from@domain,
        "ccmail": "cc@domain",
        "apiKey": "APIKEY"
      },
      "gmailServices": {
        "email": "<< Google email >>",
        "password": "<< Google email Password >>"
      }
    },
    "socioboardTwitterhandler": "@board_socio",
    "aMember": {
      "key": "<< aMember Key >>",
      "domain": "https://<< DOMAIN >>/amember/api"
    },
    "aMember_enabled": "true",
    "notification_socioboard": {
      "status": "on",
      "host_url": "https://notifyv5.socioboard.com"
    },
    "twilio": {
      "account_sid": "TWILIOACCOUNT",
      "auth_key": "TWILIOKEY,
      "service_id": "TWILIOSERVICE"
    }
  }

Here's my .env in socioboard-web

APP_NAME=SocioBoard
APP_ENV=local
APP_KEY=base64:thzB5om03pEgU6vrcKGM294HYle0df7G3L0EcYSvBtA=
APP_DEBUG=true
#
# All these should end with /
APP_URL=https://socioboard.lan.DOMAIN/
WEBSITE_TITLE="SocioBoard - rv"
API_URL=http://10.16.14.46:3000/
API_URL_FEEDS=http://10.16.14.46:3001/
API_URL_PUBLISH=http://10.16.14.46:3002/
API_URL_UPDATE=http://10.16.14.46:3003/
API_URL_NOTIFICATION=http://10.16.14.46:3004/
#
# Example to the services
# APP_URL=https://local.socioboard.com/
# WEBSITE_TITLE="SocioBoard5.0"
# API_URL= http://localhost:3000/
# API_URL_FEEDS=http://localhost:3001/
# API_URL_PUBLISH=http://localhost:3002/
# API_URL_UPDATE=http://localhost:3003/
# API_URL_NOTIFICATION=http://localhost:3004/
#
#
API_VERSION=v1
#
LOG_CHANNEL=stack
LOG_LEVEL=debug 
#
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
@vaughngx4
Copy link
Contributor

@pmgendron Can you access http://10.16.14.46:3000 from your browser?

@pmgendron
Copy link
Author

pmgendron commented Jul 23, 2022 via email

@vaughngx4
Copy link
Contributor

Not sure if this is expected without swag, but with swag you should get a UI.

@pmgendron
Copy link
Author

pmgendron commented Jul 23, 2022 via email

@vaughngx4
Copy link
Contributor

@pmgendron Are you using a reverse proxy? Or my Docker setup?

@pmgendron
Copy link
Author

pmgendron commented Jul 23, 2022 via email

@vaughngx4
Copy link
Contributor

Not quite sure then friend, hopefully someone else will be able to help.

@pmgendron
Copy link
Author

pmgendron commented Jul 23, 2022 via email

@vaughngx4
Copy link
Contributor

Screenshot_6

@vaughngx4
Copy link
Contributor

You can view the live version at https://notifyv5.socioboard.com/explorer/

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