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 comments
Jason Elechi
3
SOLVED: DAY 3: Saas App Build, Experience Error when getting document from firebase admin
University of Code
skool.com/universityofcode
You'll get Exclusive Lessons & Content, Badass Community Support & More here to elevate as a Dev!
Leaderboard (30-day)
powered by