HackRU / lcs

The backend for HackRU's website. Manages the user system.
http://hackru.org
MIT License
6 stars 5 forks source link

Error on /read with no token #138

Open foltik opened 4 years ago

foltik commented 4 years ago

POST https://api.hackru.org/prod/read with no body returns HTTP 200:

{
  errorMessage: "'token'",
  errorType: 'KeyError',
  stackTrace: [
    [
      '/var/task/src/schemas.py',
      19,
      'wrapt',
      'return util.add_cors_headers(fn(event, context, *extras))'
    ],
    [
      '/var/task/src/schemas.py',
      34,
      'wrapt',
      'token = event[token_key]'
    ]
  ]
}