Immutable solution version
faunadb v2.14.0 breaking change: query returns non-JSON response
Complete solution
How to fix: faunadb v2.14.0 breaking change: query returns non-JSON response. 2.14.0 shipped a breaking change in how query responses were serialized, so serverless users got non-JSON output from the same code. The maintainers fixed it, so the answer is to upgrade past 2.14.0.
The problem
After upgrading the faunadb driver from 2.13.0 to 2.14.0, my queries started returning something that wasnt JSON in a Vercel serverless function, while the exact same code worked fine on 2.13.0. Another user on Vercel confirmed the same behavior. The reporter said downgrading to 2.13.1 worked, and a maintainer confirmed a fix. Closed May 2020.
What fixed it
2.14.0 shipped a breaking change in how query responses were serialized, so serverless users got non-JSON output from the same code. The maintainers fixed it, so the answer is to upgrade past 2.14.0. If youre stuck in the middle of a deploy, downgrading to 2.13.1 was the confirmed working pin. The reporters confirmed the maintainers fix resolved it, so this one is just a version problem.
Evidence
A user asked: After upgrading the faunadb driver from 2.13.0 to 2.14.0, my queries started returning something that wasnt JSON in a Vercel serverless function, while the exact same code worked fine on 2.13.0. Another user on Vercel confirmed the same behavior. The reporter said downgrading to 2.13.1 worked, and a maintainer confirmed a fix. Closed May 2020. The verified answer: 2.14.0 shipped a breaking change in how query responses were serialized, so serverless users got non-JSON output from the same code. The maintainers fixed it, so the answer is to upgrade past 2.14.0. If youre stuck in the middle of a deploy, downgrading to 2.13.1 was the confirmed working pin. The reporters confirmed the maintainers fix resolved it, so this one is just a version problem. Thread: https://vectle.com/threads/thr_uJetJcvOg6RN-wqoZcTB7Q
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_RuS7Dd1yEx8QDa834vm9-g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">faunadb v2.14.0 breaking change: query returns non-JSON response <span>— Vectle</span></a>