Activity
Mon
Wed
Fri
Sun
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Memberships

University of Code

Public โ€ข 3.3k โ€ข Free

Top Chess Gang

Public โ€ข 7.5k โ€ข Free

Software Developer Academy

Private โ€ข 20.1k โ€ข Free

Bootstrapped Dev

Private โ€ข 502 โ€ข Free

AI Automation Agency Hub

Private โ€ข 32.8k โ€ข Free

Learn Online Retail (FREE)

Private โ€ข 367 โ€ข Free

AI Developer Accelerator

Public โ€ข 2.9k โ€ข Free

69 contributions to University of Code
Check out my GitHub
Hey there, Everyone check out my GitHub Profile. I have updated my profile README.md. GitHub Link: https://github.com/ArhanAnsari
7
12
New comment 2d ago
0 likes โ€ข 2d
@James Drury thanks
1 like โ€ข 2d
@De Malong thanks
AI SaaS Challenge - snapshot length 0 causing map issue
Hello Papafam I hope you are very well Finally getting through the 5 day challenge and I've hit an issue I think the query in the useCollection might not be retreiving the correct data? firebase looks OK as per the first image I've uploaded, however the terminal is showing the following --- Creating a retriever... --- --- Fetching chat history from the firestore database... --- --- fetched last 0 messages sucessfully --- langchain file const chats = await adminDb .collection("users") .doc(userId) .collection("files") .doc(docId) .collection("chat") .orderBy("createdAt", "desc") //.limit(LIMIT) .get(); const [snapshot, loading, error] = useCollection( user && query( collection(db, "users", user?.id, "files", id, "chat"), orderBy("createdAt", "asc") ) ); ----------------------------------------------------------------------------------------------------- useEffect snippet useEffect(() => { if (!snapshot) return; console.log("updated snapshot", snapshot.docs); console.log("snapshot docs", snapshot.docs.length); // get second last message to check if the AI is thinking const lastMessage = messages.pop(); if (lastMessage?.role === "ai" && lastMessage.message === "Thinking...") { // return as this is a dummy placeholder message return; } const newMessages = snapshot.docs.map((doc) => { const { role, message, createdAt } = doc.data(); return { id: doc.id, role, message, createdAt: createdAt.toDate(), }; }); setMessages(newMessages); // Ignore messages dependancy warning here... we don't want an infinite loop }, [snapshot]); the console shows the length of the snapshot.docs to be 0 which implies to me that nothing was actually retrieved and therefore I get the following error warning: each child in a list should have a unique "key" prop check the render method of 'chat'..... I've tried to find the message.id via console.log and also I rendered the result in the chat and it showed no results but three ,
3
7
New comment 2d ago
AI SaaS Challenge - snapshot length 0 causing map issue
0 likes โ€ข 8d
Check my source code of it: https://github.com/ArhanAnsari/Chat-to-PDF
๐Ÿš€ I just launched my SaaS!! ๐ŸŽ‰ (FREE for first 5 USERS)!
Hey everyone, I have just launched my SaaS App I made from Sonny's challenge into production!!! Here's the deal: - I'm looking for my first 5 users - I am willing to offer the product for FREE in exchange for real, quality feedback. - Let me know if you are interested!! Link: https://arhans-chat-to-pdf.vercel.app/
6
12
New comment 12d ago
0 likes โ€ข Aug 11
@Arpit Singh ok
0 likes โ€ข 12d
@Sonny Sangha Check this out
Finished work on some projects
Hello Everyone! It's been a while I have posted anything. This is because I was working on 2 projects and I have completed the 2 projects. You can see all my projects on portfolio. Link to my portfolio: https://arhanansari.vercel.app/ Or if you want to see the two projects, here is the link along with name. Windows 11 Clone: https://arhans-windows11.vercel.app/ RentUP (Real Esate Project) : https://arhans-rentup.vercel.app/ P. S: For the description/details of this 2 projects, check my portfolio for it.
10
16
New comment 12d ago
2 likes โ€ข 13d
@Jules Mundur Thanks
1 like โ€ข 13d
@Sonny Sangha @Sonny Sangha @Jay Rathod You should check this out.
SOLVED: DAY 3: Saas App Build, Experience Error when getting document from firebase admin
Hello everyone, I recently got around to building the chat with pdf app from sonny's recent challenge but I am experiencing an error that i can get around on my own. I would appreciate any help or suggestion from anyone. In the generateDocs function in the langchain.ts file, it keeps erroring out saying "Error Fetching document: --- RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: "length" is outside of buffer bounds" at the line the first image. This error occurs when the .get() function is called when trying to access the document data before we attempt to access the downloadURL. I have tried different approaches to debugging this, even as far as creating a test file that only runs the part of the code accessing the data base. the situation is even the same when i pass in a docId that i know exists. I don't know how to move forward from here without assistance. thank you
6
10
New comment 12d ago
SOLVED: DAY 3: Saas App Build, Experience Error when getting document from firebase admin
1 like โ€ข 13d
@Jason Elechi See my SaaS Code and compare it with your code. Source Code: https://github.com/ArhanAnsari/Chat-to-PDF
1-10 of 69
Arhan Ansari
4
31points to level up
@arhan-ansari-8738
I am Arhan Ansari.I am National level Champion at Urjaa Brain Arithmetic and also Hobbyist Developer. Portfolio: https://arhans-portfolio.vercel.app/

Active 14m ago
Joined Jul 20, 2024
Nagpur
powered by