Karlos
Karlos
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
Should i call you?
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
Yeah sure, thanks alot! i only have about 20 min, so hopefully can get it done in that time
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
i am using mongodb as databse
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
when running prisma migrate dev
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
i get this error
error : Error: ENOENT: no such file or directory, scandir '/Users/karlos/Desktop/Again/Viddoe/migrations'
[Error: ENOENT: no such file or directory, scandir '/Users/karlos/Desktop/Again/Viddoe/migrations'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/Users/karlos/Desktop/Again/Viddoe/migrations'
}
error : Error: ENOENT: no such file or directory, scandir '/Users/karlos/Desktop/Again/Viddoe/migrations'
[Error: ENOENT: no such file or directory, scandir '/Users/karlos/Desktop/Again/Viddoe/migrations'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/Users/karlos/Desktop/Again/Viddoe/migrations'
}
`
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
i cant seem to get it working, i would love to have a look at your code if its possbile, to see if missed something. Do you have it on github?
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
I am going to sleep its 3 AM here in DK, if you have any input or solution please post it here i will look at it first thing in the morning 👍
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
thanks for the help man really appreciate it !! im losing my mind here XD also pretty new to the stack 😛
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
yeah when i do that i just get null
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
am i doing something wrong?
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
this is how i do
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
const { data: projects, refetch: refetchProjects } =
api.project.getAll.useQuery(
undefined, // no input
{
enabled: session?.user !== undefined,
onSuccess: (data) => {
setSelectedProject(selectedProject ?? data[0] ?? null);
},
}
);
const { data: projects, refetch: refetchProjects } =
api.project.getAll.useQuery(
undefined, // no input
{
enabled: session?.user !== undefined,
onSuccess: (data) => {
setSelectedProject(selectedProject ?? data[0] ?? null);
},
}
);
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
getAll: protectedProcedure.query(({ ctx }) => {
console.log(ctx);
return ctx.prisma.project.findMany({
where: {
userId: ctx.session.user.id,
},
});
}),
getAll: protectedProcedure.query(({ ctx }) => {
console.log(ctx);
return ctx.prisma.project.findMany({
where: {
userId: ctx.session.user.id,
},
});
}),
27 replies
TTCTheo's Typesafe Cult
Created by Karlos on 3/22/2023 in #questions
❌ tRPC failed on partition.getAll: UNAUTHORIZED
27 replies