t-pak / issues

2 stars 0 forks source link

Typing to fast in search leads to error #101

Open benzler opened 11 months ago

benzler commented 11 months ago
[2023-11-10T09:03:51.231] [ERROR] default - {
  "error": {
    "message": "request aborted",
    "name": "BadRequestError",
    "status": 400,
    "stack": "BadRequestError: request aborted\n    at IncomingMessage.onAborted (/var/www/virtual/tpak/apps/tpak-prod/20190210_211730/server/node_modules/body-parser/node_modules/raw-body/index.js:231:10)\n    at IncomingMessage.emit (node:events:517:28)\n    at IncomingMessage._destroy (node:_http_incoming:224:10)\n    at _destroy (node:internal/streams/destroy:109:10)\n    at IncomingMessage.destroy (node:internal/streams/destroy:71:5)\n    at abortIncoming (node:_http_server:766:9)\n    at socketOnClose (node:_http_server:760:3)\n    at Socket.emit (node:events:529:35)\n    at TCP.<anonymous> (node:net:350:12)"
  },
  "request": {
    "method": "POST",
    "url": "/users/search",
    "headers": {
      "connection": "close",
      "host": "[www.t-pak.ch](http://www.t-pak.ch/)",
      "x-forwarded-proto": "https",
      "x-forwarded-port": "443",
      "x-forwarded-for": "2a02:aa14:3481:3b80:1c1d:4bbf:d3ff:611f",
      "x-forwarded-for-anon": "2a02:aa14::",
      "content-length": "87",
      "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0",
      "accept": "application/json, text/plain, */*",
      "accept-language": "de,en-US;q=0.7,en;q=0.3",
      "accept-encoding": "gzip, deflate, br",
      "referer": "https://www.t-pak.ch/user/profile/access",
      "x-auth-token": "e8d2776b-473c-40c7-8b8b-06e857c0c02a",
      "content-type": "application/json",
      "origin": "https://www.t-pak.ch/",
      "dnt": "1",
      "sec-fetch-dest": "empty",
      "sec-fetch-mode": "cors",
      "sec-fetch-site": "same-origin"
    },
    "trailers": {},
    "params": {},
    "query": {},
    "body": {},
    "httpVersion": "1.1",
    "protocol": "http",
    "secure": false,
    "xhr": false,
    "hostname": "[www.t-pak.ch](http://www.t-pak.ch/)",
    "originalUrl": "/users/search"
  }
}

This error can be reproduced by visiting the https://www.t-pak.ch/user/profile/access page and then click add friends and then in the opened search field just type very fast.