The Black Rose
The Black Rose
CCConvex Community
Created by The Black Rose on 8/9/2024 in #support-community
convex throws error useres are not getting authenticated
ty i will check and update the post
4 replies
CCConvex Community
Created by The Black Rose on 8/9/2024 in #support-community
convex throws error useres are not getting authenticated
this issue only happens when i deploy to vercel
4 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
getting error after deployment on vercel
ConvexError: [CONVEX Q(requests:count)] [Request ID: 6e82ae832a40bee1] Server Error
Called by client
at m.queryResult (657-fa242de94452a044.js:2:7180)
at L.localQueryResult (657-fa242de94452a044.js:2:25326)
at Object.localQueryResult (657-fa242de94452a044.js:2:29534)
at a.getLocalResults (657-fa242de94452a044.js:2:33168)
at getCurrentValue (657-fa242de94452a044.js:2:34428)
at 657-fa242de94452a044.js:2:34982
at rR (fd9d1056-cf2b55a3cee8c449.js:1:41933)
at lc (fd9d1056-cf2b55a3cee8c449.js:1:48752)
at r (657-fa242de94452a044.js:2:34919)
at a.notifyListeners (657-fa242de94452a044.js:2:33968)
ConvexError: [CONVEX Q(requests:count)] [Request ID: 6e82ae832a40bee1] Server Error
Called by client
at m.queryResult (657-fa242de94452a044.js:2:7180)
at L.localQueryResult (657-fa242de94452a044.js:2:25326)
at Object.localQueryResult (657-fa242de94452a044.js:2:29534)
at a.getLocalResults (657-fa242de94452a044.js:2:33168)
at getCurrentValue (657-fa242de94452a044.js:2:34428)
at 657-fa242de94452a044.js:2:34982
at rR (fd9d1056-cf2b55a3cee8c449.js:1:41933)
at lc (fd9d1056-cf2b55a3cee8c449.js:1:48752)
at r (657-fa242de94452a044.js:2:34919)
at a.notifyListeners (657-fa242de94452a044.js:2:33968)
3 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
and the first picture qwhen i run npm run dev
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
producing this error
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
No description
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
this the app deployed on vercel https://ouan-app.vercel.app/conversations
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
which i cant understand why
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
for some reason it points to api
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
and yet getting same error
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
well i fixed all the error i got from npx tsc
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
ty for the answering ❤️
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
this is the npx tsc log it seems there alot of problem 😅
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
ok ty again iwill add more code for context mean while
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
sending ss a momment
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
no idont get any thing the ui works but when i click on a conversation i get errors like this
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
typescirpt
import { v } from "convex/values";
import { defineSchema, defineTable } from "convex/server";

export default defineSchema({
users: defineTable({
username: v.string(),
imageUrl: v.string(),
clerkId: v.string(),
email: v.string(),
})
.index("by_email", ["email"])
.index("by_clerkId", ["clerkId"]),
requests: defineTable({
sender: v.id("users"),
receiver: v.id("users"),
})
.index("by_receiver", ["receiver"])
.index("by_receiver_sender", ["receiver", "sender"]),
friends: defineTable({
user1: v.id("users"),
user2: v.id("users"),
conversationId: v.id("conversations"),
})
.index("by_user1", ["user1"])
.index("by_user2", ["user2"])
.index("by_conversationId", ["conversationId"]),
conversations: defineTable({
name: v.optional(v.string()),
isGroup: v.boolean(),
lastMessageId: v.optional(v.id("messages")),
}),
conversationMembers: defineTable({
memberId: v.id("users"),
conversationId: v.id("conversations"),
lastSeenMessage: v.optional(v.id("messages")),
})
.index("by_memberId", ["memberId"])
.index("by_conversationId", ["conversationId"])
.index("by_memberId_conversationId", ["memberId", "conversationId"]),
messages: defineTable({
senderId: v.id("users"),
conversationId: v.id("conversations"),
type: v.string(),
content: v.array(v.string()),
}).index("by_conversationId", ["conversationId"]),
});
typescirpt
import { v } from "convex/values";
import { defineSchema, defineTable } from "convex/server";

export default defineSchema({
users: defineTable({
username: v.string(),
imageUrl: v.string(),
clerkId: v.string(),
email: v.string(),
})
.index("by_email", ["email"])
.index("by_clerkId", ["clerkId"]),
requests: defineTable({
sender: v.id("users"),
receiver: v.id("users"),
})
.index("by_receiver", ["receiver"])
.index("by_receiver_sender", ["receiver", "sender"]),
friends: defineTable({
user1: v.id("users"),
user2: v.id("users"),
conversationId: v.id("conversations"),
})
.index("by_user1", ["user1"])
.index("by_user2", ["user2"])
.index("by_conversationId", ["conversationId"]),
conversations: defineTable({
name: v.optional(v.string()),
isGroup: v.boolean(),
lastMessageId: v.optional(v.id("messages")),
}),
conversationMembers: defineTable({
memberId: v.id("users"),
conversationId: v.id("conversations"),
lastSeenMessage: v.optional(v.id("messages")),
})
.index("by_memberId", ["memberId"])
.index("by_conversationId", ["conversationId"])
.index("by_memberId_conversationId", ["memberId", "conversationId"]),
messages: defineTable({
senderId: v.id("users"),
conversationId: v.id("conversations"),
type: v.string(),
content: v.array(v.string()),
}).index("by_conversationId", ["conversationId"]),
});
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
this is page.tsx for the conversations
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
type Props = {
params: {
conversationId: Id<"conversations">;
};
};

const ConversationPage = ({ params: { conversationId } }: Props) => {
const conversation = useQuery(api.conversation.get, { id: conversationId });

const [removeFriendDialogOpen, setRemoveFriendDialogOpen] = useState(false);
const [deleteGroupDialogOpen, setDeleteGroupDialogOpen] = useState(false);
const [leaveGroupDialogOpen,
setLeaveGroupDialogOpen] = useState(false);
const [callType, setCallType] = useState<"audio" | "video" | null>(null);

return conversation === undefined ? (
type Props = {
params: {
conversationId: Id<"conversations">;
};
};

const ConversationPage = ({ params: { conversationId } }: Props) => {
const conversation = useQuery(api.conversation.get, { id: conversationId });

const [removeFriendDialogOpen, setRemoveFriendDialogOpen] = useState(false);
const [deleteGroupDialogOpen, setDeleteGroupDialogOpen] = useState(false);
const [leaveGroupDialogOpen,
setLeaveGroupDialogOpen] = useState(false);
const [callType, setCallType] = useState<"audio" | "video" | null>(null);

return conversation === undefined ? (
33 replies
CCConvex Community
Created by The Black Rose on 8/7/2024 in #support-community
conversation id undefiend error
ok ty again ❤️
33 replies