Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors while deploying in vercel #3

Open
Adarshagupta opened this issue Jun 23, 2024 · 1 comment
Open

Errors while deploying in vercel #3

Adarshagupta opened this issue Jun 23, 2024 · 1 comment

Comments

@Adarshagupta
Copy link

Adarshagupta commented Jun 23, 2024

at t0 (/vercel/path0/.next/server/app/page.js:14:214522)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

digest: '3731050089'
}
Error
at t0 (/vercel/path0/.next/server/app/page.js:14:214522)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
digest: '3731050089'
}
Error
at t0 (/vercel/path0/.next/server/app/page.js:14:214522)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
digest: '3731050089'
}
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
Error
at t0 (/vercel/path0/.next/server/app/page.js:14:214522)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
✓ Generating static pages (5/5)

#Also terminal:
⨯ app/page.tsx (12:11) @ Page
⨯ Error
at Page (./app/page.tsx:23:15)
digest: "279398420"
10 |
11 | if (!accessToken) {

12 | throw new Error();
| ^
13 | }
14 |
15 | return (
⨯ app/page.tsx (12:11) @ Page
⨯ Error
at Page (./app/page.tsx:23:15)
digest: "279398420"
10 |
11 | if (!accessToken) {
12 | throw new Error();
| ^
13 | }
14 |
15 | return (
GET / 500 in 20684ms
⨯ app/page.tsx (12:11) @ Page
⨯ Error
at Page (./app/page.tsx:23:15)
digest: "279398420"
10 |
11 | if (!accessToken) {
12 | throw new Error();
| ^
13 | }
14 |
15 | return (
⨯ app/page.tsx (12:11) @ Page
⨯ Error
at Page (./app/page.tsx:23:15)
digest: "279398420"
10 |
11 | if (!accessToken) {
12 | throw new Error();
| ^
13 | }
14 |
15 | return (
GET / 500 in 425ms

@jaid-monwar
Copy link

Hi @Adarshagupta , I was facing the same issue when running on my local machine. I did not try deploying it yet however I had similar errors with accessToken. This is how I FIXED my issue:

Solution:

  1. Open the file getHumeAccessToken.ts under utils folder
  2. Rename the variable clientSecret to secretKey in:
const accessToken = await fetchAccessToken({
    apiKey: String(process.env.HUME_API_KEY),
    secretKey: String(process.env.HUME_CLIENT_SECRET),
  });

That should fix your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants