error vercel
This Serverless Function has crashed.
Your connection is working correctly.
Vercel is working correctly.
500: INTERNAL_SERVER_ERROR Code: FUNCTION_INVOCATION_FAILED ID: bom1::f52ds-1739033295757-ea6b4a4bcef9
If you are a visitor, contact the website owner or try again later.
If you are the owner, [learn how to fix the error](https://vercel.com/docs/error/application/FUNCTION_INVOCATION_FAILED) and [check the logs](https://cons-nd8wtu1je-jammesop007ahas-projects.vercel.app/_logs?requestId=bom1::f52ds-1739033295757-ea6b4a4bcef9).
man i'm getting 504
man i'm getting 504
What endpoint are you making a request to?
It was the meta/anilisit/info but thanks to person I realized it's change
any solution for this issue??
any solution for this issue??
What endpoint u were making request to?
any solution for this issue??
What endpoint u were making request to?
I have just deployed this repo on Vercel using given deploy button in repo using my personal account and it throws this error.
Here's the log that I got after just deploying this repo using deploy button...
[23:14:23.092] Running build in Washington, D.C., USA (East) – iad1 [23:14:23.202] Cloning github.com/kakerublaze/consumet-api-main (Branch: main, Commit: 9847782) [23:14:23.214] Skipping build cache, deployment was triggered without cache. [23:14:23.566] Cloning completed: 363.000ms [23:14:23.841] Running "vercel build" [23:14:24.231] Vercel CLI 41.1.4 [23:14:24.345] WARN! Due to buildsexisting in your configuration file, the Build and Development Settings defined in your Project Settings will not apply. Learn More: https://vercel.link/unused-build-settings [23:14:24.887] Warning: Detected "engines": { "node": ">=12.5.0" } in yourpackage.json` that will automatically upgrade when a new major Node.js Version is released. Learn More: http://vercel.link/node-version
[23:14:24.889] Installing dependencies...
[23:14:24.931] bun install v1.2.2 (c1708ea6)
[23:14:25.292]
[23:14:25.292] + [email protected]
[23:14:25.292] + [email protected]
[23:14:25.292] + [email protected]
[23:14:25.292] + @fastify/[email protected]
[23:14:25.292] + @types/[email protected]
[23:14:25.292] + @types/[email protected]
[23:14:25.292] + [email protected]
[23:14:25.293] + [email protected]
[23:14:25.293] + [email protected]
[23:14:25.293] + [email protected]
[23:14:25.293] + [email protected]
[23:14:25.293] + [email protected]
[23:14:25.293] + [email protected]
[23:14:25.293] + [email protected]
[23:14:25.293] + [email protected]
[23:14:25.293]
[23:14:25.293] 148 packages installed [379.00ms]
[23:14:25.512] Using TypeScript 5.3.3 (local user-provided)
[23:14:28.223] src/utils/index.ts(2,32): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.223]
[23:14:28.283] src/routes/books/index.ts(1,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.284]
[23:14:28.313] src/routes/anime/index.ts(2,32): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.313]
[23:14:28.331] src/routes/manga/index.ts(2,32): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.331]
[23:14:28.353] src/routes/movies/index.ts(2,32): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.375]
[23:14:28.385] src/routes/light-novels/index.ts(2,32): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.385]
[23:14:28.385] src/routes/meta/index.ts(2,32): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.385]
[23:14:28.481] src/utils/bilibili.ts(3,35): error TS2307: Cannot find module '@consumet/extensions/dist/utils' or its corresponding type declarations.
[23:14:28.482]
[23:14:28.549] src/utils/providers.ts(1,32): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.549] src/utils/providers.ts(27,39): error TS2345: Argument of type 'string | number | symbol' is not assignable to parameter of type 'string'.
[23:14:28.549] Type 'number' is not assignable to type 'string'.
[23:14:28.549] src/utils/providers.ts(38,11): error TS18046: 'one' is of type 'unknown'.
[23:14:28.549] src/utils/providers.ts(38,34): error TS18046: 'two' is of type 'unknown'.
[23:14:28.549] src/utils/providers.ts(40,59): error TS18046: 'element' is of type 'unknown'.
[23:14:28.549]
[23:14:28.686] src/routes/news/ann.ts(1,30): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.686]
[23:14:28.696] src/routes/books/libgen.ts(1,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.697]
[23:14:28.710] src/routes/light-novels/readlightnovels.ts(2,30): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.711] src/routes/light-novels/readlightnovels.ts(37,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.711] src/routes/light-novels/readlightnovels.ts(59,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.711]
[23:14:28.774] src/routes/meta/anilist.ts(3,45): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.774] src/routes/meta/anilist.ts(4,24): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:28.774] src/routes/meta/anilist.ts(5,21): error TS2307: Cannot find module '@consumet/extensions/dist/providers/meta/anilist' or its corresponding type declarations.
[23:14:28.774] src/routes/meta/anilist.ts(6,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:28.774] src/routes/meta/anilist.ts(10,23): error TS2307: Cannot find module '@consumet/extensions/dist/providers/anime/9anime' or its corresponding type declarations.
[23:14:28.775] src/routes/meta/anilist.ts(11,23): error TS2307: Cannot find module '@consumet/extensions/dist/providers/anime/gogoanime' or its corresponding type declarations.
[23:14:28.775] src/routes/meta/anilist.ts(189,59): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.775] src/routes/meta/anilist.ts(374,8): error TS7006: Parameter 'p' implicitly has an 'any' type.
[23:14:28.775]
[23:14:28.801] src/routes/meta/anilist-manga.ts(2,22): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.801] src/routes/meta/anilist-manga.ts(3,32): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.801] src/routes/meta/anilist-manga.ts(32,10): error TS7006: Parameter 'p' implicitly has an 'any' type.
[23:14:28.801] src/routes/meta/anilist-manga.ts(43,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.801] src/routes/meta/anilist-manga.ts(60,10): error TS7006: Parameter 'p' implicitly has an 'any' type.
[23:14:28.801]
[23:14:28.822] src/routes/meta/mal.ts(2,38): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.822] src/routes/meta/mal.ts(38,10): error TS7006: Parameter 'p' implicitly has an 'any' type.
[23:14:28.822] src/routes/meta/mal.ts(68,12): error TS7006: Parameter 'p' implicitly has an 'any' type.
[23:14:28.822] src/routes/meta/mal.ts(76,19): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.822]
[23:14:28.852] src/routes/meta/tmdb.ts(2,38): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.852] src/routes/meta/tmdb.ts(34,10): error TS7006: Parameter 'p' implicitly has an 'any' type.
[23:14:28.852] src/routes/meta/tmdb.ts(75,12): error TS7006: Parameter 'p' implicitly has an 'any' type.
[23:14:28.853] src/routes/meta/tmdb.ts(82,19): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.853]
[23:14:28.870] src/routes/manga/mangapill.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.870]
[23:14:28.882] src/routes/manga/managreader.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.883]
[23:14:28.891] src/routes/manga/mangadex.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.891] src/routes/manga/mangadex.ts(32,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.891]
[23:14:28.905] src/routes/manga/mangahere.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.905] src/routes/manga/mangahere.ts(34,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.905]
[23:14:28.914] src/routes/manga/mangakakalot.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.915] src/routes/manga/mangakakalot.ts(32,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.915]
[23:14:28.923] src/routes/manga/mangasee123.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.924] src/routes/manga/mangasee123.ts(32,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.924]
[23:14:28.933] src/routes/manga/mangapark.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.933] src/routes/manga/mangapark.ts(32,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.934]
[23:14:28.969] src/routes/movies/flixhq.ts(2,24): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.969] src/routes/movies/flixhq.ts(3,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:28.969]
[23:14:28.986] src/routes/movies/viewasian.ts(2,24): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:28.986] src/routes/movies/viewasian.ts(3,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:28.986] src/routes/movies/viewasian.ts(38,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.987] src/routes/movies/viewasian.ts(62,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:28.987]
[23:14:29.007] src/routes/movies/dramacool.ts(2,24): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.007] src/routes/movies/dramacool.ts(3,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:29.007] src/routes/movies/dramacool.ts(45,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.007] src/routes/movies/dramacool.ts(66,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.008]
[23:14:29.029] src/routes/movies/fmovies.ts(2,24): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.029] src/routes/movies/fmovies.ts(3,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:29.029]
[23:14:29.081] src/routes/movies/goku.ts(7,24): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.081] src/routes/movies/goku.ts(8,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:29.081]
[23:14:29.111] src/routes/movies/movieshd.ts(7,24): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.112] src/routes/movies/movieshd.ts(8,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:29.112]
[23:14:29.141] src/routes/movies/sflix.ts(2,24): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.142] src/routes/movies/sflix.ts(3,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:29.142]
[23:14:29.192] src/routes/anime/gogoanime.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.192] src/routes/anime/gogoanime.ts(3,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:29.192] src/routes/anime/gogoanime.ts(58,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.192] src/routes/anime/gogoanime.ts(62,15): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.192] src/routes/anime/gogoanime.ts(82,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.192] src/routes/anime/gogoanime.ts(86,15): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.192] src/routes/anime/gogoanime.ts(103,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.192] src/routes/anime/gogoanime.ts(107,15): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.192] src/routes/anime/gogoanime.ts(132,19): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.192] src/routes/anime/gogoanime.ts(136,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.192] src/routes/anime/gogoanime.ts(158,19): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.192] src/routes/anime/gogoanime.ts(162,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.192] src/routes/anime/gogoanime.ts(285,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.193] src/routes/anime/gogoanime.ts(289,15): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.193]
[23:14:29.212] src/routes/anime/animepahe.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.212] src/routes/anime/animepahe.ts(32,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.212]
[23:14:29.240] src/routes/anime/zoro.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.240] src/routes/anime/zoro.ts(3,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:29.240] src/routes/anime/zoro.ts(134,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.240] src/routes/anime/zoro.ts(160,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.241]
[23:14:29.263] src/routes/anime/9anime.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.263] src/routes/anime/9anime.ts(3,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:29.263]
[23:14:29.276] src/routes/anime/animefox.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.276] src/routes/anime/animefox.ts(44,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.276] src/routes/anime/animefox.ts(63,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.277]
[23:14:29.287] src/routes/anime/anify.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.287] src/routes/anime/anify.ts(33,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.287] src/routes/anime/anify.ts(58,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.287]
[23:14:29.299] src/routes/anime/crunchyroll.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.299] src/routes/anime/crunchyroll.ts(38,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.299] src/routes/anime/crunchyroll.ts(59,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.299]
[23:14:29.310] src/routes/anime/bilibili.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.311] src/routes/anime/bilibili.ts(34,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.311] src/routes/anime/bilibili.ts(53,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.311]
[23:14:29.324] src/routes/anime/marin.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.325] src/routes/anime/marin.ts(41,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.325] src/routes/anime/marin.ts(66,19): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.325]
[23:14:29.347] src/routes/anime/anix.ts(2,23): error TS2307: Cannot find module '@consumet/extensions' or its corresponding type declarations.
[23:14:29.348] src/routes/anime/anix.ts(3,34): error TS2307: Cannot find module '@consumet/extensions/dist/models' or its corresponding type declarations.
[23:14:29.348] src/routes/anime/anix.ts(56,17): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.348] src/routes/anime/anix.ts(82,19): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.348] src/routes/anime/anix.ts(111,21): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.348] src/routes/anime/anix.ts(115,21): error TS7006: Parameter 'err' implicitly has an 'any' type.
[23:14:29.348]
[23:14:30.772] Build Completed in /vercel/output [6s]
[23:14:30.981] Deploying outputs...
[23:14:34.835]
[23:14:35.155] Deployment completed
[23:14:37.849] Uploading build cache [8.40 MB]...
[23:14:38.035] Build cache uploaded: 185.706ms
`
And Image for the same
Send your package.json (particularly the dependencies)
It works!
okay @2004durgesh after checking my package.json i got the issue
it's the majorly 3 things
Old (by default that I got when pressed deploy button from document)
- "@consumet/extensions": "github:consumet/consumet.ts"
- "engines": { "node": ">=12.5.0", "yarn": ">=1.17.3" },
- Missing "prepare": "npm run build", in scripts....
here's new package.json that works perfectly fine ` { "name": "api.consumet.org", "version": "1.0.0", "main": "src/main.ts", "scripts": { "start": "ts-node src/main.ts", "dev": "nodemon src/main.ts", "build": "tsc", "prepare": "npm run build", "lint": "prettier --write "src/**/*.ts"" }, "engines": { "node": ">=16.0.0", "npm": ">=8.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/consumet/consumet.ts.git" }, "author": "prince-ao [email protected]", "license": "MIT", "bugs": { "url": "https://github.com/consumet/consumet.ts/issues" }, "homepage": "https://github.com/consumet/consumet.ts#readme", "dependencies": { "@consumet/extensions": "github:consumet/consumet.ts#master", "@fastify/cors": "^8.5.0", "@types/node": "^18.11.17", "@types/ws": "^8.5.3", "axios": "^1.0.0", "chalk": "4.1.2", "cheerio": "1.0.0-rc.12", "dotenv": "^16.0.3", "fastify": "^4.10.2", "ioredis": "^5.2.4", "reconnecting-websocket": "^4.4.0", "ts-node": "^10.9.1", "ws": "^8.8.1" }, "devDependencies": { "nodemon": "3.0.1", "prettier": "^3.0.0", "typescript": "5.3.3" } }
`
@2004durgesh thanks for the help & please fix it up so default user don't face this kind of issue again...
created a PR for the same you can close this issue now after accepting PR and merging it to the main branch
Delete bun.lockb to fix vercel deployment