There is an error "RPC request failed with status 401 - Unauthorized" when using Thirdweb on the NFT minting page.
kaisacs666
TRIALOP

10 months ago

This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:

https://nextjs.org/telemetry

▲ Next.js 14.2.7

Creating an optimized production build …

Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme

✓ Compiled successfully

Linting and checking validity of types …

Collecting page data …

Generating static pages (0/5) …

Generating static pages (1/5)

Generating static pages (2/5)

Generating static pages (3/5)

Error: RPC request failed with status 401 - Unauthorized

at F (/app/.next/server/app/ssr/page.js:1:32430)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

digest: '986339508'
}
Error: RPC request failed with status 401 - Unauthorized

at F (/app/.next/server/app/ssr/page.js:1:32430)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

digest: '986339508'
}
Error: RPC request failed with status 401 - Unauthorized

at F (/app/.next/server/app/ssr/page.js:1:32430)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

digest: '986339508'
}

Invalid pricePerToken

Error occurred prerendering page "/ssr". Read more: https://nextjs.org/docs/messages/prerender-error
Error: RPC request failed with status 401 - Unauthorized

at F (/app/.next/server/app/ssr/page.js:1:32430)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

✓ Generating static pages (5/5)

Export encountered errors on following paths:
/ssr/page: /ssr

error Command failed with exit code 1.

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

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

warengonzaga
PRO

10 months ago

I can see 401s on your error, this means you improperly configure your APi key. Go to your settings and add railway domain to allow it. Then after that hit redeploy button.


kaisacs666
TRIALOP

10 months ago

Thanks!It works! It seems that most of the errors come from the incorrect configuration of Thirdweb.


Status changed to Solved brody 10 months ago


Loading...