Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

500 Internal Server Error when trying to contact api-accounts-latest.dev #598

Closed
pdehaan opened this issue Feb 28, 2014 · 4 comments
Closed

Comments

@pdehaan
Copy link
Contributor

pdehaan commented Feb 28, 2014

Not sure if this is related to server issues from #594 CORS error when trying to create a new account on accounts-latest?

Steps to reproduce:

  1. Goto https://accounts-latest.dev.lcip.org/signup and try and create a new account.

Actual results:

POST https://api-accounts-latest.dev.lcip.org/v1/account/create [HTTP/1.1 500 Internal Server Error 204ms]

inspect_network_request_and_firefox_accounts_and_the_next_web

Expected results:

No error, create an account.

How this makes me feel:

cry

@dannycoates
Copy link
Contributor

Here's the log line

{
  "name":"fxa-auth-server",
  "hostname":"ip-10-80-227-43",
  "pid":7514,
  "level":50,
  "op":"request.summary",
  "code":500,
  "errno":999,
  "rid":"1393616459114-7514-60506",
  "path":"/v1/account/create",
  "lang":"en",
  "agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:30.0) Gecko/20100101 Firefox/30.0",
  "remoteAddressChain":[
    "63.245.220.240",
    "127.0.0.1"
  ],
  "t":20,
  "keys":"true",
  "email":"peterdehaan+blanbh@gmail.com",
  "trace":[
    {
      "op":"Account.create",
      "rid":"1393616459114-7514-60506"
    },
    {
      "op":"MySql.emailRecord",
      "email":"peterdehaan+blanbh@gmail.com",
      "rid":"1393616459114-7514-60506"
    },
    {
      "op":"MySql.createAccount",
      "uid":"d63aec1a5dc74137a9a140109b11d71c",
      "email":"peterdehaan+blanbh@gmail.com",
      "rid":"1393616459114-7514-60506"
    },
    {
      "op":"MySql.createSessionToken",
      "uid":"d63aec1a5dc74137a9a140109b11d71c",
      "rid":"1393616459114-7514-60506"
    },
    {
      "op":"SessionToken.create",
      "uid":"d63aec1a5dc74137a9a140109b11d71c",
      "rid":"1393616459114-7514-60506"
    },
    {
      "op":"MySql.createKeyFetchToken",
      "uid":"d63aec1a5dc74137a9a140109b11d71c",
      "rid":"1393616459114-7514-60506"
    },
    {
      "op":"KeyFetchToken.create",
      "uid":"d63aec1a5dc74137a9a140109b11d71c",
      "rid":"1393616459114-7514-60506"
    },
    {
      "op":"keyFetchToken.bundleKeys",
      "id":"31be6be7b21b1db27bf379e317ff3b22c5250f86b402aadbfb8af90127a6c8b6",
      "rid":"1393616459114-7514-60506"
    },
    {
      "op":"Token.bundle",
      "rid":"1393616459114-7514-60506"
    },
    {
      "op":"mailer.sendVerifyCode",
      "email":"peterdehaan+blanbh@gmail.com",
      "uid":"d63aec1a5dc74137a9a140109b11d71c",
      "rid":"1393616459114-7514-60506"
    }
  ],
  "stack":"TypeError: Cannot read property 'subject' of undefined\n    at Mailer.sendVerifyCode (/home/app/code/mailer.js:198:24)\n    at db.emailRecord.then.then.then.done.account (/home/app/code/routes/account.js:136:24)\n    at onSettled (/home/app/code/node_modules/p-promise/p.js:258:10)\n    at onTick (/home/app/code/node_modules/p-promise/p.js:40:4)\n    at process._tickDomainCallback (node.js:459:13)",
  "msg":"Cannot read property 'subject' of undefined",
  "time":"2014-02-28T19:40:59.134Z",
  "v":0
}

I'll make a quick fix soon

@pdehaan
Copy link
Contributor Author

pdehaan commented Feb 28, 2014

Thanks @dannycoates, you are awesome. AWESOME!

@jrgm
Copy link
Contributor

jrgm commented Feb 28, 2014

Other relevant lines at server startup:

{"name":"fxa-auth-server","hostname":"ip-10-80-227-43","pid":7514,"level":30,
 "op":"server.start.1","msg":"",
 "time":"2014-02-28T01:55:04.443Z","v":0},
{"name":"fxa-auth-server","hostname":"ip-10-80-227-43","pid":7514,"level":40,
 "op":"mailer.fetchTemplates","err":"subject/text/html not all given for this language en-AU","msg":"",
 "time":"2014-02-28T01:55:04.551Z","v":0},
{"name":"fxa-auth-server","hostname":"ip-10-80-227-43","pid":7514,"level":40,
 "op":"mailer.fetchTemplates","err":"subject/text/html not all given for this language en","msg":"",
 "time":"2014-02-28T01:55:04.554Z","v":0},
{"name":"fxa-auth-server","hostname":"ip-10-80-227-43","pid":7514,"level":40,
 "op":"mailer.fetchTemplates","err":"subject/text/html not all given for this language it-CH","msg":"",
 "time":"2014-02-28T01:55:04.557Z","v":0},
{"name":"fxa-auth-server","hostname":"ip-10-80-227-43","pid":7514,"level":40,
 "op":"mailer.fetchTemplates","err":"subject/text/html not all given for this language en-AU","msg":"",
 "time":"2014-02-28T01:55:04.559Z","v":0},
{"name":"fxa-auth-server","hostname":"ip-10-80-227-43","pid":7514,"level":40,
 "op":"mailer.fetchTemplates","err":"subject/text/html not all given for this language en","msg":"",
 "time":"2014-02-28T01:55:04.560Z","v":0},
{"name":"fxa-auth-server","hostname":"ip-10-80-227-43","pid":7514,"level":40,
 "op":"mailer.fetchTemplates","err":"subject/text/html not all given for this language it-CH","msg":"",
 "time":"2014-02-28T01:55:04.562Z","v":0},
{"name":"fxa-auth-server","hostname":"ip-10-80-227-43","pid":7514,"level":30,
 "op":"mailer.fetchTemplates","msg":"",
 "time":"2014-02-28T01:55:04.562Z","v":0}

@jrgm
Copy link
Contributor

jrgm commented Feb 28, 2014

Ah, sorry. I left out that on that awsbox there is no local templates directory, so that fails and then the fetches fail.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants