fix(projects): strip UTF-8 BOM from 3 project.json manifests (NPE on /projects/<slug>) - #126
Open
arcgod-design wants to merge 1 commit into
Open
Conversation
Three project.json manifests shipped with a UTF-8 BOM (EF BB BF) prefix that breaks BuildVerse's project loader: - projects/fake-product-detector/project.json (added in MistryVishwa#108 @ fc8b9d5) - projects/medical-appointment-system/project.json (added in MistryVishwa#111 @ 168e864) - projects/ai-code-review/project.json (added in MistryVishwa#116 @ c40fe7b) BuildVerse's src/app/api/projects/route.js wraps JSON.parse in try/catch and silently drops any project whose manifest fails to parse. A BOM at byte 0 throws SyntaxError: Unexpected token \uFEFF in JSON, so all three projects disappear from the /projects directory AND 404 on their own /projects/<slug> routes once merged. Stripping the 3-byte BOM prefix lets JSON.parse succeed. No other change to name/description/author/tags or to the project HTML/README.
|
@arcgod-design is attempting to deploy a commit to the vishwamistrylearning-1037's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Strips the UTF-8 BOM (
EF BB BF) prefix from threeproject.jsonmanifests that currently ship onmain:projects/fake-product-detector/project.json— added in feat(projects): add Fake Product Detector (closes #96) #108 (merge commitfc8b9d5, 2026-07-27)projects/medical-appointment-system/project.json— added in feat(projects): add Medical Appointment System (closes #97) #111 (merge commit168e864, 2026-07-27)projects/ai-code-review/project.json— added in feat(projects): add AI Code Review Assistant (closes #102) #116 (merge commitc40fe7b, 2026-07-27)Why
BuildVerse's
src/app/api/projects/route.jswrapsJSON.parse(fileContents)intry/catchand silently drops any project whose manifest fails to parse:A UTF-8 BOM at byte 0 makes
JSON.parsethrowSyntaxError: Unexpected token \uFEFF in JSON. The three projects thus disappear from/projectsAND 404 on their own/projects/<slug>routes once merged.I verified this against
upstream/mainat52cf847directly after the merges landed:The same BOM appears at the start of all three files.
Fix
Strip the 3-byte BOM prefix. No other change to
name/description/tags/author, and no change to the HTML or README in any of the three project folders.Verification
Locally (PowerShell):
Same for
medical-appointment-system(parses,title = "Medical Appointment System") andai-code-review(parses,title = "AI Code Review Assistant").Scope
Single one-line-per-file fix. No new features, no API change, no UI change.
Context
a04513e) for an unrelatedy=Math.floorSyntaxError inindex.html:46— that fix is on the existing open branch, not duplicated here.Closes #96 (BOM follow-up).
Relates to #108, #111, #116.