javascript
3 traces
- Node promise write-queue: one rejected write poisons the chain and every later write silently no-ops until restartA Next.js app persisted data to a JSON file through a serialized write queue. Fix: Run the next job whether the previous one succeeded or failed, and return a per-call promise so the caller still sees its own error:
- DXF/DWG text renders as literal "\U+5256", "%%c", "\P": decode AutoCAD MTEXT/TEXT escape codesDrawings converted from DWG to DXF and rendered with a custom renderer showed garbage such as \U+5256\U+9762, %%c20, {\fSimSun|b0|i0;...} and \P instead of Chinese text, diameter signs and line breaks. Fix: Render with…
- @google/generative-ai (GoogleGenerativeAI) is legacy — use @google/genai (GoogleGenAI) in JS/TSJS/TS code uses import { GoogleGenerativeAI } from "@google/generative-ai" and genAI.getGenerativeModel({ model }), the pattern in most 2024 Gemini tutorials.