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

Error: Request failed with status code 500 #245

Closed
dausruddin opened this issue Dec 14, 2020 · 2 comments
Closed

Error: Request failed with status code 500 #245

dausruddin opened this issue Dec 14, 2020 · 2 comments

Comments

@dausruddin
Copy link

Describe the bug
Getting error when trying to run it. It also display erro in browser

To Reproduce
Steps to reproduce the behavior:

  1. sudo docker-compose up

Expected behavior
Running wihtout error

Screenshots
Screenshot from 2020-12-14 13-42-12

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Firefox
  • Version: 83.0

Additional context

$ cat docker-compose.yml 
version: '3'
services:
  overseerr:
    build:
      context: .
      dockerfile: Dockerfile.local
    ports:
      - 3003
    volumes:
      - .:/app:rw,cached
      - /app/node_modules
      - /app/.next
    network_mode: host
    environment:
      - PORT=3003
overseerr_1  | yarn run v1.22.4
overseerr_1  | $ nodemon -e ts --watch server --watch overseerr-api.yml -e .json,.ts,.yml -x ts-node --files --project server/tsconfig.json server/index.ts
overseerr_1  | [nodemon] 2.0.6
overseerr_1  | [nodemon] to restart at any time, enter `rs`
overseerr_1  | [nodemon] watching path(s): server/**/* overseerr-api.yml
overseerr_1  | [nodemon] watching extensions: json,ts,yml
overseerr_1  | [nodemon] starting `ts-node --files --project server/tsconfig.json server/index.ts`
overseerr_1  | info  - Using external babel configuration from /app/babel.config.js
overseerr_1  | event - compiled successfully
overseerr_1  | 2020-12-14T05:25:30.744Z [info][Notifications]: Registered Notification Agents 
overseerr_1  | 2020-12-14T05:25:30.750Z [info][Jobs]: Scheduled jobs loaded 
overseerr_1  | Mon, 14 Dec 2020 05:25:30 GMT express-session deprecated req.secret; provide secret option at server/index.ts:64:49
overseerr_1  | $ref: keywords ignored in schema at path "#/properties/requestedBy"
overseerr_1  | 2020-12-14T05:25:31.024Z [info][SERVER]: Server ready on port 3003 
overseerr_1  | event - build page: /
overseerr_1  | wait  - compiling...
overseerr_1  | event - compiled successfully
overseerr_1  | Error: Request failed with status code 500
overseerr_1  |     at createError (/app/node_modules/axios/lib/core/createError.js:16:15)
overseerr_1  |     at settle (/app/node_modules/axios/lib/core/settle.js:17:12)
overseerr_1  |     at IncomingMessage.handleStreamEnd (/app/node_modules/axios/lib/adapters/http.js:244:11)
overseerr_1  |     at IncomingMessage.emit (events.js:327:22)
overseerr_1  |     at IncomingMessage.EventEmitter.emit (domain.js:483:12)
overseerr_1  |     at endReadableNT (_stream_readable.js:1220:12)
overseerr_1  |     at processTicksAndRejections (internal/process/task_queues.js:84:21) {
overseerr_1  |   config: {
overseerr_1  |     url: 'http://localhost:3003/api/v1/settings/public',
overseerr_1  |     method: 'get',
overseerr_1  |     headers: {
overseerr_1  |       Accept: 'application/json, text/plain, */*',
overseerr_1  |       'User-Agent': 'axios/0.21.0'
overseerr_1  |     },
overseerr_1  |     transformRequest: [ [Function: transformRequest] ],
overseerr_1  |     transformResponse: [ [Function: transformResponse] ],
overseerr_1  |     timeout: 0,
overseerr_1  |     adapter: [Function: httpAdapter],
overseerr_1  |     xsrfCookieName: 'XSRF-TOKEN',
overseerr_1  |     xsrfHeaderName: 'X-XSRF-TOKEN',
overseerr_1  |     maxContentLength: -1,
overseerr_1  |     maxBodyLength: -1,
overseerr_1  |     validateStatus: [Function: validateStatus],
overseerr_1  |     data: undefined
overseerr_1  |   },
overseerr_1  |   request: ClientRequest {
overseerr_1  |     _events: [Object: null prototype] {
overseerr_1  |       socket: [Function],
overseerr_1  |       abort: [Function],
overseerr_1  |       aborted: [Function],
overseerr_1  |       connect: [Function],
overseerr_1  |       error: [Function],
overseerr_1  |       timeout: [Function],
overseerr_1  |       prefinish: [Function: requestOnPrefinish]
overseerr_1  |     },
overseerr_1  |     _eventsCount: 7,
overseerr_1  |     _maxListeners: undefined,
overseerr_1  |     outputData: [],
overseerr_1  |     outputSize: 0,
overseerr_1  |     writable: true,
overseerr_1  |     _last: true,
overseerr_1  |     chunkedEncoding: false,
overseerr_1  |     shouldKeepAlive: false,
overseerr_1  |     useChunkedEncodingByDefault: false,
overseerr_1  |     sendDate: false,
overseerr_1  |     _removedConnection: false,
overseerr_1  |     _removedContLen: false,
overseerr_1  |     _removedTE: false,
overseerr_1  |     _contentLength: 0,
overseerr_1  |     _hasBody: true,
overseerr_1  |     _trailer: '',
overseerr_1  |     finished: true,
overseerr_1  |     _headerSent: true,
overseerr_1  |     socket: Socket {
overseerr_1  |       connecting: false,
overseerr_1  |       _hadError: false,
overseerr_1  |       _parent: null,
overseerr_1  |       _host: 'localhost',
overseerr_1  |       _readableState: [ReadableState],
overseerr_1  |       readable: true,
overseerr_1  |       _events: [Object: null prototype],
overseerr_1  |       _eventsCount: 7,
overseerr_1  |       _maxListeners: undefined,
overseerr_1  |       _writableState: [WritableState],
overseerr_1  |       writable: false,
overseerr_1  |       allowHalfOpen: false,
overseerr_1  |       _sockname: null,
overseerr_1  |       _pendingData: null,
overseerr_1  |       _pendingEncoding: '',
overseerr_1  |       server: null,
overseerr_1  |       _server: null,
overseerr_1  |       parser: null,
overseerr_1  |       _httpMessage: [Circular],
overseerr_1  |       [Symbol(asyncId)]: 87866,
overseerr_1  |       [Symbol(kHandle)]: [TCP],
overseerr_1  |       [Symbol(kSetNoDelay)]: false,
overseerr_1  |       [Symbol(lastWriteQueueSize)]: 0,
overseerr_1  |       [Symbol(timeout)]: null,
overseerr_1  |       [Symbol(kBuffer)]: null,
overseerr_1  |       [Symbol(kBufferCb)]: null,
overseerr_1  |       [Symbol(kBufferGen)]: null,
overseerr_1  |       [Symbol(kCapture)]: false,
overseerr_1  |       [Symbol(kBytesRead)]: 0,
overseerr_1  |       [Symbol(kBytesWritten)]: 0
overseerr_1  |     },
overseerr_1  |     connection: Socket {
overseerr_1  |       connecting: false,
overseerr_1  |       _hadError: false,
overseerr_1  |       _parent: null,
overseerr_1  |       _host: 'localhost',
overseerr_1  |       _readableState: [ReadableState],
overseerr_1  |       readable: true,
overseerr_1  |       _events: [Object: null prototype],
overseerr_1  |       _eventsCount: 7,
overseerr_1  |       _maxListeners: undefined,
overseerr_1  |       _writableState: [WritableState],
overseerr_1  |       writable: false,
overseerr_1  |       allowHalfOpen: false,
overseerr_1  |       _sockname: null,
overseerr_1  |       _pendingData: null,
overseerr_1  |       _pendingEncoding: '',
overseerr_1  |       server: null,
overseerr_1  |       _server: null,
overseerr_1  |       parser: null,
overseerr_1  |       _httpMessage: [Circular],
overseerr_1  |       [Symbol(asyncId)]: 87866,
overseerr_1  |       [Symbol(kHandle)]: [TCP],
overseerr_1  |       [Symbol(kSetNoDelay)]: false,
overseerr_1  |       [Symbol(lastWriteQueueSize)]: 0,
overseerr_1  |       [Symbol(timeout)]: null,
overseerr_1  |       [Symbol(kBuffer)]: null,
overseerr_1  |       [Symbol(kBufferCb)]: null,
overseerr_1  |       [Symbol(kBufferGen)]: null,
overseerr_1  |       [Symbol(kCapture)]: false,
overseerr_1  |       [Symbol(kBytesRead)]: 0,
overseerr_1  |       [Symbol(kBytesWritten)]: 0
overseerr_1  |     },
overseerr_1  |     _header: 'GET /api/v1/settings/public HTTP/1.1\r\n' +
overseerr_1  |       'Accept: application/json, text/plain, */*\r\n' +
overseerr_1  |       'User-Agent: axios/0.21.0\r\n' +
overseerr_1  |       'Host: localhost:3003\r\n' +
overseerr_1  |       'Connection: close\r\n' +
overseerr_1  |       '\r\n',
overseerr_1  |     _onPendingData: [Function: noopPendingOutput],
overseerr_1  |     agent: Agent {
overseerr_1  |       _events: [Object: null prototype],
overseerr_1  |       _eventsCount: 2,
overseerr_1  |       _maxListeners: undefined,
overseerr_1  |       defaultPort: 80,
overseerr_1  |       protocol: 'http:',
overseerr_1  |       options: [Object],
overseerr_1  |       requests: {},
overseerr_1  |       sockets: [Object],
overseerr_1  |       freeSockets: {},
overseerr_1  |       keepAliveMsecs: 1000,
overseerr_1  |       keepAlive: false,
overseerr_1  |       maxSockets: Infinity,
overseerr_1  |       maxFreeSockets: 256,
overseerr_1  |       [Symbol(kCapture)]: false
overseerr_1  |     },
overseerr_1  |     socketPath: undefined,
overseerr_1  |     method: 'GET',
overseerr_1  |     insecureHTTPParser: undefined,
overseerr_1  |     path: '/api/v1/settings/public',
overseerr_1  |     _ended: true,
overseerr_1  |     res: IncomingMessage {
overseerr_1  |       _readableState: [ReadableState],
overseerr_1  |       readable: false,
overseerr_1  |       _events: [Object: null prototype],
overseerr_1  |       _eventsCount: 3,
overseerr_1  |       _maxListeners: undefined,
overseerr_1  |       socket: [Socket],
overseerr_1  |       connection: [Socket],
overseerr_1  |       httpVersionMajor: 1,
overseerr_1  |       httpVersionMinor: 1,
overseerr_1  |       httpVersion: '1.1',
overseerr_1  |       complete: true,
overseerr_1  |       headers: [Object],
overseerr_1  |       rawHeaders: [Array],
overseerr_1  |       trailers: {},
overseerr_1  |       rawTrailers: [],
overseerr_1  |       aborted: false,
overseerr_1  |       upgrade: false,
overseerr_1  |       url: '',
overseerr_1  |       method: null,
overseerr_1  |       statusCode: 500,
overseerr_1  |       statusMessage: 'Internal Server Error',
overseerr_1  |       client: [Socket],
overseerr_1  |       _consuming: false,
overseerr_1  |       _dumped: false,
overseerr_1  |       req: [Circular],
overseerr_1  |       responseUrl: 'http://localhost:3003/api/v1/settings/public',
overseerr_1  |       redirects: [],
overseerr_1  |       [Symbol(kCapture)]: false
overseerr_1  |     },
overseerr_1  |     aborted: false,
overseerr_1  |     timeoutCb: null,
overseerr_1  |     upgradeOrConnect: false,
overseerr_1  |     parser: null,
overseerr_1  |     maxHeadersCount: null,
overseerr_1  |     reusedSocket: false,
overseerr_1  |     _redirectable: Writable {
overseerr_1  |       _writableState: [WritableState],
overseerr_1  |       writable: true,
overseerr_1  |       _events: [Object: null prototype],
overseerr_1  |       _eventsCount: 2,
overseerr_1  |       _maxListeners: undefined,
overseerr_1  |       _options: [Object],
overseerr_1  |       _ended: true,
overseerr_1  |       _ending: true,
overseerr_1  |       _redirectCount: 0,
overseerr_1  |       _redirects: [],
overseerr_1  |       _requestBodyLength: 0,
overseerr_1  |       _requestBodyBuffers: [],
overseerr_1  |       _onNativeResponse: [Function],
overseerr_1  |       _currentRequest: [Circular],
overseerr_1  |       _currentUrl: 'http://localhost:3003/api/v1/settings/public',
overseerr_1  |       [Symbol(kCapture)]: false
overseerr_1  |     },
overseerr_1  |     [Symbol(kCapture)]: false,
overseerr_1  |     [Symbol(kNeedDrain)]: false,
overseerr_1  |     [Symbol(corked)]: 0,
overseerr_1  |     [Symbol(kOutHeaders)]: [Object: null prototype] {
overseerr_1  |       accept: [Array],
overseerr_1  |       'user-agent': [Array],
overseerr_1  |       host: [Array]
overseerr_1  |     }
overseerr_1  |   },
overseerr_1  |   response: {
overseerr_1  |     status: 500,
overseerr_1  |     statusText: 'Internal Server Error',
overseerr_1  |     headers: {
overseerr_1  |       'x-powered-by': 'Express',
overseerr_1  |       'content-type': 'application/json; charset=utf-8',
overseerr_1  |       'content-length': '49',
overseerr_1  |       etag: 'W/"31-cTLyuZrTZhoNpxkqok0MBLCOsYA"',
overseerr_1  |       date: 'Mon, 14 Dec 2020 05:26:00 GMT',
overseerr_1  |       connection: 'close'
overseerr_1  |     },
overseerr_1  |     config: {
overseerr_1  |       url: 'http://localhost:3003/api/v1/settings/public',
overseerr_1  |       method: 'get',
overseerr_1  |       headers: [Object],
overseerr_1  |       transformRequest: [Array],
overseerr_1  |       transformResponse: [Array],
overseerr_1  |       timeout: 0,
overseerr_1  |       adapter: [Function: httpAdapter],
overseerr_1  |       xsrfCookieName: 'XSRF-TOKEN',
overseerr_1  |       xsrfHeaderName: 'X-XSRF-TOKEN',
overseerr_1  |       maxContentLength: -1,
overseerr_1  |       maxBodyLength: -1,
overseerr_1  |       validateStatus: [Function: validateStatus],
overseerr_1  |       data: undefined
overseerr_1  |     },
overseerr_1  |     request: ClientRequest {
overseerr_1  |       _events: [Object: null prototype],
overseerr_1  |       _eventsCount: 7,
overseerr_1  |       _maxListeners: undefined,
overseerr_1  |       outputData: [],
overseerr_1  |       outputSize: 0,
overseerr_1  |       writable: true,
overseerr_1  |       _last: true,
overseerr_1  |       chunkedEncoding: false,
overseerr_1  |       shouldKeepAlive: false,
overseerr_1  |       useChunkedEncodingByDefault: false,
overseerr_1  |       sendDate: false,
overseerr_1  |       _removedConnection: false,
overseerr_1  |       _removedContLen: false,
overseerr_1  |       _removedTE: false,
overseerr_1  |       _contentLength: 0,
overseerr_1  |       _hasBody: true,
overseerr_1  |       _trailer: '',
overseerr_1  |       finished: true,
overseerr_1  |       _headerSent: true,
overseerr_1  |       socket: [Socket],
overseerr_1  |       connection: [Socket],
overseerr_1  |       _header: 'GET /api/v1/settings/public HTTP/1.1\r\n' +
overseerr_1  |         'Accept: application/json, text/plain, */*\r\n' +
overseerr_1  |         'User-Agent: axios/0.21.0\r\n' +
overseerr_1  |         'Host: localhost:3003\r\n' +
overseerr_1  |         'Connection: close\r\n' +
overseerr_1  |         '\r\n',
overseerr_1  |       _onPendingData: [Function: noopPendingOutput],
overseerr_1  |       agent: [Agent],
overseerr_1  |       socketPath: undefined,
overseerr_1  |       method: 'GET',
overseerr_1  |       insecureHTTPParser: undefined,
overseerr_1  |       path: '/api/v1/settings/public',
overseerr_1  |       _ended: true,
overseerr_1  |       res: [IncomingMessage],
overseerr_1  |       aborted: false,
overseerr_1  |       timeoutCb: null,
overseerr_1  |       upgradeOrConnect: false,
overseerr_1  |       parser: null,
overseerr_1  |       maxHeadersCount: null,
overseerr_1  |       reusedSocket: false,
overseerr_1  |       _redirectable: [Writable],
overseerr_1  |       [Symbol(kCapture)]: false,
overseerr_1  |       [Symbol(kNeedDrain)]: false,
overseerr_1  |       [Symbol(corked)]: 0,
overseerr_1  |       [Symbol(kOutHeaders)]: [Object: null prototype]
overseerr_1  |     },
overseerr_1  |     data: { message: 'secret option required for sessions' }
overseerr_1  |   },
overseerr_1  |   isAxiosError: true,
overseerr_1  |   toJSON: [Function: toJSON]
overseerr_1  | }
overseerr_1  | 2020-12-14T05:30:00.014Z [info][Jobs]: Starting scheduled job: Plex Recently Added Sync 
overseerr_1  | (node:39) UnhandledPromiseRejectionWarning: EntityNotFound: Could not find any entity of type "User" matching: {
overseerr_1  |     "select": [
overseerr_1  |         "id",
overseerr_1  |         "plexToken"
overseerr_1  |     ],
overseerr_1  |     "order": {
overseerr_1  |         "id": "ASC"
overseerr_1  |     }
overseerr_1  | }
overseerr_1  |     at new EntityNotFoundError (/app/src/error/EntityNotFoundError.ts:11:9)
overseerr_1  |     at /app/src/entity-manager/EntityManager.ts:821:39
overseerr_1  |     at JobPlexSync.run (/app/server/job/plexsync/index.ts:280:21)
overseerr_1  | (node:39) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
overseerr_1  | (node:39) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@dausruddin dausruddin added the bug label Dec 14, 2020
@dausruddin
Copy link
Author

Might be related to #243
I am trying to use the latest code. Will report back.

@dausruddin
Copy link
Author

Solved by using latest image.
my current docker-compose.yml is

version: "2.1"
services:
  qbarr:
    image: sctx/overseerr
    container_name: overseerr
    environment:
      - PORT=3003
    volumes:
      - ./config:/app/config
    restart: unless-stopped
    network_mode: host

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

1 participant