Ashwin
Ashwin
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Ah okay good to know
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Thanks again @Brody!
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Ok so I added: ARG UPLOADTHING_SECRET ARG UPLOADTHING_APP_ID to the Dockerfile and then added RAILWAY_DOCKERFILE_PATH="Dockerfile" to the variables on the Railway container and it now works :D
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Pretty sure it is
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Yep
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Here are the error logs
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Works fine on Vercel
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Testing
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Okay sure, will try asking on there
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
No description
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Yeah
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Okay so I have the correct env set up for it and it still fails but, when I remove the section that involves it - it builds fine on Railway.
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Checking
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Yep, they're identical to localhost except for APP_URL & MONGO_URL
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Part 2
#10 44.90 > Build error occurred

#10 44.90 Error: Failed to collect page data for /api/thumbnail/create

#10 44.90 at /app/node_modules/next/dist/build/utils.js:1268:15

#10 44.90 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

#10 44.90 type: 'Error'

#10 44.90 }

#10 44.94 error Command failed with exit code 1.



#10 44.94 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

#10 ERROR: process "/bin/sh -c yarn run build" did not complete successfully: exit code: 1



-----

> [6/7] RUN yarn run build:

44.88 at Module._compile (node:internal/modules/cjs/loader:1504:14)

44.90

44.90 > Build error occurred

44.90 Error: Failed to collect page data for /api/thumbnail/create

44.90 at /app/node_modules/next/dist/build/utils.js:1268:15

44.90 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

44.90 type: 'Error'

44.90 }

44.94 error Command failed with exit code 1.

44.94 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
#10 44.90 > Build error occurred

#10 44.90 Error: Failed to collect page data for /api/thumbnail/create

#10 44.90 at /app/node_modules/next/dist/build/utils.js:1268:15

#10 44.90 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

#10 44.90 type: 'Error'

#10 44.90 }

#10 44.94 error Command failed with exit code 1.



#10 44.94 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

#10 ERROR: process "/bin/sh -c yarn run build" did not complete successfully: exit code: 1



-----

> [6/7] RUN yarn run build:

44.88 at Module._compile (node:internal/modules/cjs/loader:1504:14)

44.90

44.90 > Build error occurred

44.90 Error: Failed to collect page data for /api/thumbnail/create

44.90 at /app/node_modules/next/dist/build/utils.js:1268:15

44.90 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

44.90 type: 'Error'

44.90 }

44.94 error Command failed with exit code 1.

44.94 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Part 1
#10 39.24 ✓ Compiled successfully



#10 39.24 Linting and checking validity of types ...



#10 44.02 Collecting page data ...



#10 44.68 (node:657) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.

#10 44.68 (Use `node --trace-deprecation ...` to show where the warning was created)



#10 44.88 UploadThingError: Missing or invalid API key. API keys must start with `sk_`.

#10 44.88 at Ef (/app/.next/server/app/api/thumbnail/create/route.js:11:3077)

#10 44.88 at new EA (/app/.next/server/app/api/thumbnail/create/route.js:11:16179)

#10 44.88 at 55501 (/app/.next/server/app/api/thumbnail/create/route.js:11:17096)

#10 44.88 at t (/app/.next/server/webpack-runtime.js:1:143)

#10 44.88 at n (/app/.next/server/app/api/thumbnail/create/route.js:11:19494)

#10 44.88 at /app/.next/server/app/api/thumbnail/create/route.js:11:19525

#10 44.88 at t.X (/app/.next/server/webpack-runtime.js:1:1285)

#10 44.88 at /app/.next/server/app/api/thumbnail/create/route.js:11:19507

#10 44.88 at Object.<anonymous> (/app/.next/server/app/api/thumbnail/create/route.js:11:19553)

#10 44.88 at Module._compile (node:internal/modules/cjs/loader:1504:14)





#10 44.90
-----
#10 39.24 ✓ Compiled successfully



#10 39.24 Linting and checking validity of types ...



#10 44.02 Collecting page data ...



#10 44.68 (node:657) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.

#10 44.68 (Use `node --trace-deprecation ...` to show where the warning was created)



#10 44.88 UploadThingError: Missing or invalid API key. API keys must start with `sk_`.

#10 44.88 at Ef (/app/.next/server/app/api/thumbnail/create/route.js:11:3077)

#10 44.88 at new EA (/app/.next/server/app/api/thumbnail/create/route.js:11:16179)

#10 44.88 at 55501 (/app/.next/server/app/api/thumbnail/create/route.js:11:17096)

#10 44.88 at t (/app/.next/server/webpack-runtime.js:1:143)

#10 44.88 at n (/app/.next/server/app/api/thumbnail/create/route.js:11:19494)

#10 44.88 at /app/.next/server/app/api/thumbnail/create/route.js:11:19525

#10 44.88 at t.X (/app/.next/server/webpack-runtime.js:1:1285)

#10 44.88 at /app/.next/server/app/api/thumbnail/create/route.js:11:19507

#10 44.88 at Object.<anonymous> (/app/.next/server/app/api/thumbnail/create/route.js:11:19553)

#10 44.88 at Module._compile (node:internal/modules/cjs/loader:1504:14)





#10 44.90
-----
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
Sure and yeah it is
36 replies
RRailway
Created by Ashwin on 9/11/2024 in #✋|help
Build error
61f799c0-ab10-4e5f-af35-d5e92d8c7ff7
36 replies
RRailway
Created by Ashwin on 9/8/2024 in #✋|help
Does browslerless support headful mode?
Literally saved me from another few days of debugging :)
138 replies