s-alad / toofake

View friends BeReals without posting or them knowing. Post custom BeReal's whenever. Add custom realmojis
https://toofake.lol/
MIT License
159 stars 35 forks source link

Fix RealMojis #125

Closed Igor636965736c610a closed 3 months ago

Igor636965736c610a commented 4 months ago

Change realmoji response is 500 Request URL: https://toofake.lol/api/add/realmoji Request Method: POST Status Code: 500 Internal Server Error

MegaTheLEGEND commented 3 months ago

Seems as though the "sharp" package is not working.

2024-08-08 14:53:14 Error: 
2024-08-08 14:53:14 Something went wrong installing the "sharp" module
2024-08-08 14:53:14 
2024-08-08 14:53:14 Cannot find module '../build/Release/sharp-linux-x64.node'
2024-08-08 14:53:14 Require stack:
2024-08-08 14:53:14 - /app/node_modules/sharp/lib/sharp.js
2024-08-08 14:53:14 - /app/node_modules/sharp/lib/constructor.js
2024-08-08 14:53:14 - /app/node_modules/sharp/lib/index.js
2024-08-08 14:53:14 - /app/.next/server/pages/api/add/realmoji.js
2024-08-08 14:53:14 - /app/node_modules/next/dist/server/next-server.js
2024-08-08 14:53:14 - /app/node_modules/next/dist/server/next.js
2024-08-08 14:53:14 - /app/node_modules/next/dist/server/lib/render-server.js
2024-08-08 14:53:14 - /app/node_modules/next/dist/compiled/jest-worker/processChild.js
2024-08-08 14:53:14 
2024-08-08 14:53:14 Possible solutions:
2024-08-08 14:53:14 - Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
2024-08-08 14:53:14 - Install for the current linux-x64 runtime: "npm install --platform=linux --arch=x64 sharp"
2024-08-08 14:53:14 - Consult the installation documentation: https://sharp.pixelplumbing.com/install
2024-08-08 14:53:14     at Object.<anonymous> (/app/node_modules/sharp/lib/sharp.js:37:9)
2024-08-08 14:53:14     at Module._compile (node:internal/modules/cjs/loader:1364:14)
2024-08-08 14:53:14     at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
2024-08-08 14:53:14     at Module.load (node:internal/modules/cjs/loader:1203:32)
2024-08-08 14:53:14     at Module._load (node:internal/modules/cjs/loader:1019:12)
2024-08-08 14:53:14     at Module.require (node:internal/modules/cjs/loader:1231:19)
2024-08-08 14:53:14     at require (node:internal/modules/helpers:177:18)
2024-08-08 14:53:14     at Object.<anonymous> (/app/node_modules/sharp/lib/constructor.js:11:1)
2024-08-08 14:53:14     at Module._compile (node:internal/modules/cjs/loader:1364:14)
2024-08-08 14:53:14     at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
s-alad commented 3 months ago

I think this should be fixed now, let me know if not