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

The Video Business Academy

Private • 2.3k • Paid

Software Developer Academy

Private • 20.1k • Free

268 contributions to University of Code
I this got error in SaaS
the error is 23-9721b83fb6e39ead.js:1 TypeError: Cannot destructure property 'success' of '(intermediate value)' as it is undefined. at page-84043572443ca249.js:1:2625 can someone please tell me where this error is happening and how can I fix this?? live website URL : https://chat-with-pdf-tejas.vercel.app/ github link: https://github.com/Tejas-Naik/chat-with-pdf
1
2
New comment 4h ago
I this got error in SaaS
0 likes • 4h
@Hein Htoo Yeah this should do it. I have not seen it error with these messages from a time out but they are suggesting that, I think I did extra error handling around this part myself. But success is undefined because of the vercel time out.
I will probably have to pay for openai limit bc of InsufficientQuotaError
I'm doing the embedding generation part in the day 3 video, but when I test the code I got the InsufficientQuotaError:429 message. How much should I pay at least? $1 is okay? btw I want to use gpt-3.5-turbo, is this code correct: const model = new ChatOpenAI({ apiKey: process.env.OPENAI_API_KEY, modelName: "gpt-3.5-turbo", }); edit: or do you recommend gpt-4o-mini ? I'm little confused
7
26
New comment 3h ago
0 likes • 1d
@Dev Sharma You will need to either add $5 to your OpenAI account, or use a different model, claude anthropic offers a $5 credit when you join or did at the time of the challenge, @Dev Ben has provided methods for using genimi in this group and will likely help you through the process
0 likes • 4h
@Dev Sharma I think been @Dev Ben or @Hein Htoo would probably know best on this.
# Dev 100 - Day [35]
## Today's Accomplishments ### 1. 🌅 Morning Productivity - 🍳 Healthy Breakfast: Blueberry Breakfast Cake - Office Cleaned, Bed Made, Rhythm ready for school - Magic the Gathering Wake up matches 4/0 2 of the matches I came back from serious disadvantages - Update Dev 100 Template ### 2. ✅ To-Dos & Completed Tasks - [Checkmate AI] - [X] [Update To-Dos] - [X] [Clear Complete Task] - Daily To-Do Report: 5 Task on Hold, 2 In Progress, 1 Completed ### 3. 📚 Learning - 🦸‍♂️ **Zero to Full Stack Hero**: Introduction to CSS and Using Dribble Design with Tailwind CSS by AVNEESH AGARWAL [Part-3] - 🔗 [Why Scrum is Stressing You Out](https://rethinkingsoftware.substack.com/p/why-scrum-is-stressing-you-out) ### 4. 💻 Coding Progress - 🧠 Warm-up Exercise: Implement two functions that demonstrate advanced array operations in JavaScript: 1. A function that performs a deep comparison of two arrays, potentially containing nested arrays and various data types. 2. A function that flattens a nested array structure into a single-level array. - 🏫 **Zero to Full Stack Hero Homework**: CSS & Dribble Homework - 🦺 Project: RFD - Rebuild auth config ### 5. 🔄 Daily Reset - 🏋️‍♂️ Deep Streches - 🧘 Smoke Break with wife ### 6. 🌤️ Afternoon Productivity - 🍱 Healthy Lunch: Turkey Sandwich & Chips - Errands around town ### 7. 🤝 Community Support - 🔗 [AI SaaS Challenge - snapshot length 0 causing map issue](https://www.skool.com/universityofcode/ai-saas-challenge-snapshot-length-0-causing-map-issue?p=012c2d43) - 📁 Nested Objects Lession [File-Attachment] ### 8. 📊 Progress Tracking - 🏫 [Day-35](https://www.skool.com/universityofcode/dev-100-day-34) - 📦 [GitHub Repo](https://github.com/Digitl-Alchemyst/dev100/blob/main/Day-35/day35.md)
5
4
New comment 14h ago
0 likes • 14h
@Scott Martin Indeed, I am actually taking all the information from these 100 days of learning and building a course from it, daily lessons and coding challenges who bunch of stuff, So i am both putting the concepts i learn about into practice and refreshing as I go over and refine the content.
1 like • 14h
@Raymond Adeniyi
# Dev 100 - Day [35]
## Today's Accomplishments ### 1. 🌅 Morning Productivity - 🍳 Healthy Breakfast: [Meal description] - [x] Morning Rountine: Make Bed, Clean Office, Rhythm Ready for School - Reorganize Slack Channels - Re-did my GitHub Profile ### 2. ✅ To-Dos & Completed Tasks - [Checkmate AI] - [x] [Update To-Dos] - [x] [Clear Complete Task] - Daily To-Do Report: 6 To-Do , 3 In Progress, 2 Completed ### 3. 📚 Learning - 🔗 [GitHub Actions || Snake eating contribution graph](https://www.youtube.com/watch?v=MZT37vCQ-4Y) - Various small resourse and AI session on object basics ### 4. 💻 Coding Progress - 🧠 Warm-up Exercise: Implement three functions that demonstrate fundamental object operations in JavaScript: 1. A function that creates an object representing a person with properties for name, age, and occupation. 2. A function that adds a new property to an existing object. 3. A function that displays all properties of an object. - 🦺 Project: RFD - Merge Branches, Refactor Login Flow ```javascript let person = createPerson(name, age, occupation); person = addProperty(person, 'children', children); const results = displayProperties(person); ``` ### 5. 🔄 Daily Reset - 🏋️‍♂️ Walk with Rhythm after bus - 🧘 Teach Rhythm about patterns and big cats ### 6. 🌤️ Afternoon Productivity - 🍱 Healthy Lunch: [Meal description] - Branch Merging - Booking Doctor's Appointments ### 7. 🤝 Community Support - 🔗 Help Aydin with Auth.js setup in personal project - 📁 Object Basics Lesson [File-Attachment] ### 8. 📊 Progress Tracking - 🏫 [Day-35](https://www.skool.com/universityofcode/dev-100-day-35) - 📦 [GitHub Repo](https://github.com/Digitl-Alchemyst/dev100/blob/main/Day-35/day35.md) - 📄 [Notion Page](https://liberating-galley-48d.notion.site/Dev100-Coding-Lifestyle-Challenge-a85ec9fba3ce41f3b29d581a1a85d92b?pvs=4)
2
0
# Dev 100 - Day [35]
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 • 3d
@John Gill I will have a look today and see what i can see
0 likes • 2d
@John Gill Hey I am going to need your .env file I would have to change a lot of stuff in clerk stripe and firebase to run with my set up. If your okay with this remove your openAI api key and send it to me in a private message
1-10 of 268
Steven Watkins
6
1,288points to level up
@steven-watkins-3735
Digital Artist / Photographer / Videographer / Content Creator / Programmer / Developer

Active 4h ago
Joined Jul 23, 2024
powered by