imputnet / cobalt

best way to save what you love
https://cobalt.tools
GNU Affero General Public License v3.0
17.43k stars 1.43k forks source link

error.api.header.accept #845

Closed AdolphYu closed 1 month ago

AdolphYu commented 1 month ago

bug description

{ "status": "error", "error": { "code": "error.api.header.accept" } }

reproduction steps

docker compose up -d post request instance request { "url":"https://www.youtube.com/watch?v=tPEE9ZwTmy0" }

return { "status": "error", "error": { "code": "error.api.header.accept" } }

screenshots

No response

links

No response

platform information

docker

additional context

No response

wukko commented 1 month ago

read this: https://github.com/imputnet/cobalt/blob/main/docs/api.md

AdolphYu commented 1 month ago

How to add configuration files to compose.yml

AdolphYu commented 1 month ago

I used https keys.json

{ "status": "tunnel", "url": "https://api.cobalt.tools/tunnel?id=gkMjijMYZ76l5sj9UXvI1&exp=1729152376084&sig=w505nV9qc36_oFIqnVd0Ct4wfdADtHK1r9vncJh37W8&sec=df2_yqURg9PXam7EJCeUt-MJAf3oWc_Qq_nZ9vhzsPg&iv=xMz1zCCM5ZkSy-ad-v1R4A", "filename": "youtube_tPEE9ZwTmy0_854x470_h264.mp4" }

download url see "tunnelling through the balancer is not supported."

KwiatekMiki commented 1 month ago
  1. this is not a main instance issue
  2. change the API_URL environment variable to the same url you use to access the api, for example http://localhost:9000/