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

Bug with Proxy #3001

Open
maaaaz opened this issue Jan 9, 2025 · 0 comments
Open

Bug with Proxy #3001

maaaaz opened this issue Jan 9, 2025 · 0 comments

Comments

@maaaaz
Copy link

maaaaz commented Jan 9, 2025

Hello there,

With this docker-compose file:

services:
  warp:
    image:  monius/docker-warp-socks:v3
    restart: unless-stopped
    container_name: warp

  viewtube:
    #build: .
    image: mauriceo/viewtube:latest
    ports:
      - 8066:8066
    volumes:
      - ./data:/data
    depends_on:
      - viewtube-db
      - viewtube-redis
    environment:
      VIEWTUBE_DATABASE_HOST: viewtube-db
      VIEWTUBE_REDIS_HOST: viewtube-redis
      VIEWTUBE_ADMIN_USER: admin
      VIEWTUBE_PROXY_URL: http://warp:9091

  viewtube-db:
    image: mongo
    ports:
      - 27018:27017

  viewtube-redis:
    image: redis

I encounter the following bug that prevent any search and playback:

{
  "context": "ExceptionsHandler",
  "level": "error",
  "message": "Cannot read properties of undefined (reading 'match')",
  "stack": [
    "TypeError: Cannot read properties of undefined (reading 'match')\n    at parseAccessibilityDuration (/home/app/server/dist/mapper/utils/accessibility-duration.js:12:53)\n    at extractSearchShort (/home/app/server/dist/mapper/converter/search/vt-search-result.extractors.js:104:76)\n    at /home/app/server/dist/mapper/converter/search/vt-search-result.extractors.js:93:41\n    at Proxy.map (<anonymous>)\n    at extractSearchShortsShelf (/home/app/server/dist/mapper/converter/search/vt-search-result.extractors.js:93:29)\n    at /home/app/server/dist/mapper/converter/search/vt-search-result.extractors.js:28:24\n    at Proxy.map (<anonymous>)\n    at extractSearchResults (/home/app/server/dist/mapper/converter/search/vt-search-result.extractors.js:19:27)\n    at toVTSearchResultDto (/home/app/server/dist/mapper/converter/search/vt-search-result.converter.js:14:69)\n    at SearchService.getSearch (/home/app/server/dist/core/search/search.service.js:60:65)"
  ],
  "timestamp": "2025-01-09T20:58:14.006Z"
}

I suspect it is linked with the VIEWTUBE_PROXY_URL option.

Can you help ?

Cheers!

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