Comments (15)
@JasonMKY
Callback URL : https://pdf2-beta.vercel.app/api/auth/kinde_callback
http://localhost:3000/api/auth/kinde_callback
Logout URL : https://pdf2-beta.vercel.app
http://localhost:3000
from quill.
@JasonMKY Callback URL : https://pdf2-beta.vercel.app/api/auth/kinde_callback http://localhost:3000/api/auth/kinde_callback Logout URL : https://pdf2-beta.vercel.app http://localhost:3000
Still getting the error
from quill.
@JasonMKY clear cache and try again
from quill.
@JasonMKY clear cache and try again
Cleared caches and tried in incognito mode, error still there:
from quill.
@JasonMKY There is problem in your env, Recheck that
Also, share your ..src\lib\utils.ts
from quill.
I put everything correctly in environment setup
Src/lib/utils.ts file:
import { type ClassValue, clsx } from 'clsx'
import { Metadata } from 'next'
import { twMerge } from 'tailwind-merge'
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function absoluteUrl(path: string) {
if (typeof window !== 'undefined') return path
if (process.env.VERCEL_URL)
return `https://${process.env.VERCEL_URL}${path}`
return `http://localhost:${
process.env.PORT ?? 3000
}${path}`
}
export function constructMetadata({
title = "Quill - the SaaS for students",
description = "Quill is an open-source software to make chatting to your PDF files easy.",
image = "/thumbnail.png",
icons = "/favicon.ico",
noIndex = false
}: {
title?: string
description?: string
image?: string
icons?: string
noIndex?: boolean
} = {}): Metadata {
return {
title,
description,
openGraph: {
title,
description,
images: [
{
url: image
}
]
},
twitter: {
card: "summary_large_image",
title,
description,
images: [image],
creator: "@joshtriedcoding"
},
icons,
metadataBase: new URL('https://quill-jet.vercel.app'),
themeColor: '#FFF',
...(noIndex && {
robots: {
index: false,
follow: false
}
})
}
from quill.
Go to... Kinde>Application>Quick Start
Existing codebase
https://pdf2-beta.vercel.app Edit the link
You will get environment vars
from quill.
EDIT: Fixed
When I log in/register this error is showing when going to "/dashboard"
Error in Log:
Status Code 200
Code in blue highlight below
PrismaClientKnownRequestError:
Invalid `prisma.user.findFirst()` invocation:
The table `(not available)` does not exist in the current database.
at wn.handleRequestError (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:123:6730)
at wn.handleAndLogRequestError (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:123:6119)
at wn.request (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:123:5839)
at async l (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:128:9763)
at async m (/var/task/.next/server/app/dashboard/page.js:1:8592) {
code: 'P2021',
clientVersion: '5.3.1',
meta: { table: '(not available)' }
}
[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
digest: '2695897097'
}
PrismaClientKnownRequestError:
Invalid `prisma.user.findFirst()` invocation:
The table `(not available)` does not exist in the current database.
at wn.handleRequestError (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:123:6730)
at wn.handleAndLogRequestError (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:123:6119)
at wn.request (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:123:5839)
at async l (/var/task/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:128:9763)
at async u (/var/task/.next/server/chunks/753.js:1:732)
at async z (/var/task/.next/server/chunks/951.js:1:13423) {
code: 'P2021',
clientVersion: '5.3.1',
meta: { table: '(not available)' }
}
[Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.] {
digest: '341264739'
}
from quill.
anand
HI anand, first of all thanks for all the otherpost as it helped me overcome some issue. I have no idea if my current problem relate to the other post. First I was getting 500internal error while signing in. And after someadjustment I was able to solve it and get to the registerpage. This time able to register and receive the authentication code (I double checked in kinde that I successfully registered). But then instead of getting routed to the dashboard. I just get 404 Page not found. Any idea on how to solve this?
from quill.
Have you watched @joschan21 Tutorials? You can find it here: https://youtu.be/ucX2zXAZ1I0?si=XN9jWmqWNtRJsPUD
Alternatively, did you set up your own .env credentials? I noticed in your code that you haven't made any changes. I recommend updating it according to your .env credentials. Once you do that, you'll be good to go, @suzushi-tw ! 👍
from quill.
Have you watched @joschan21 Tutorials? You can find it here: https://youtu.be/ucX2zXAZ1I0?si=XN9jWmqWNtRJsPUD
Alternatively, did you set up your own .env credentials? I noticed in your code that you haven't made any changes. I recommend updating it according to your .env credentials. Once you do that, you'll be good to go, @suzushi-tw ! 👍
Actually that was just a repo to test eveything out including the domain. I am following the tutorial on local and I have the enviroment variable set up properly as well. An update on what was happening, basically it was telling me images.remotepatterns missing so I setup those in next.config.js. And a bit of trying around, now I can get to the dashboard. I am currently stuck on uploadthing, as it gives me fetch error. Even though I can see the file being uploaded into the server. The error looks like the following pic.
I have rewatched the video about this part a few times and couln't figure it out yet. Any suggestions?
from quill.
Please give it a star and check out this repository: https://github.com/anand-mukul/PDFNinja. Since I am unable to find your code, I can't identify the exact issue.
Check 2nd line of your picture it's https://https://stellar......
from quill.
@anand-mukul I checked out PDFNinja and I am unable to interact with the pdf. It's the same error I am getting 404. Is this due to Pinecone changes not allowing name spaces for free anymore?
from quill.
I added all the links to the callback in Kinde, does it take time to update? I added all necessary links and still get this callback error...
I'm still struggling with this issue unfortunately. My auth won't work, keep getting a callback error when everything is correct.
from quill.
You can try alternative way to remove and add callbacks in kinde. Did not tried it yet, but in their documentation there are endpoints to do it. Maybe this is a way.
from quill.
Related Issues (20)
- Minor question HOT 2
- connect to pinecone db have some error, how to fix them?thx.
- send Message function not working HOT 2
- Anyone facing any issue or need a upgraded?
- 'user' is possibly 'null'.ts(18047) const user: KindeUser | null HOT 2
- When I try to upgrade my subscription, it doesn't upgrade. HOT 1
- The logged-in user is not showing in Prisma Studio. HOT 2
- ChatWrapper / getFileUploadStatus: Property status does not exist on type HOT 4
- Cannot find module langchain/dist/document_loaders/fs/pdf or its corresponding type declarations HOT 1
- Error [InsufficientQuotaError]: 429 HOT 1
- The logged-in user is not showing in Prisma Studio. im using Neon console HOT 1
- Property 'status' does not exist on type 'Query<{ status: UploadStatus; }, TRPCClientErrorLike<{ input: { fileId: string; }; output: { status: UploadStatus; }; transformer: false; errorShape: DefaultErrorShape; }>, { ...; }, any>'.ts(2339) HOT 3
- Image Source error in image-loader.js HOT 4
- Property 'id' does not exist on type 'KindeUser | null'.ts(2339) on src\app\api\message\route.ts HOT 5
- Object literal may only specify known properties, and 'environment' does not exist in type 'PineconeConfiguration'.ts(2353) HOT 1
- what is the issue why im not able to chat with pdf HOT 8
- i am new which database to connect? (free) HOT 2
- Issue when uploading PDF in dashboard. PDF upload error HOT 3
- Dashboard doesn't get loaded at all after logging in
- Property 'given_name' does not exist on type 'Promise<KindeUser | null> \src\components\Navbar.tsx HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quill.