Urgent.News

What's breaking now, across thousands of outlets.

Tech

supabase-js try/catch Doesn't Catch Errors: Check { error }

Conclusion supabase-js query methods never throw on network or PostgREST failure. The contract template's current-version resolver branched only on whether data was present, without ever looking at the error that came back alongside it. That meant a transient read failure couldn't be told apart from "no row has been published yet" — and when that return value fed a version-freeze decision, it…

The supabase-js query methods did not handle network or PostgREST failures properly. The contract-template resolver would not distinguish between a transient read failure and a lack of published rows, which could freeze an outdated version that the customer had not agreed to. To fix this, the affected code was refactored into a dedicated function called readCurrentRow, which explicitly checked for errors and returned a tuple containing the row data and a failed flag.

The getContractMeta function was updated to branch on this failed flag, allowing it to return null and freeze no version when the read itself failed. This ensures that only stable, agreed-upon versions are used in the signing flow, preventing auto-renewal clauses from being applied without proper contractual basis.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Wire Harness Design for OEM Builds: Connector Selection, Crimp Quality and the Tests That Prevent Field Failures

A wire harness is usually the last component designed and the first one blamed when a product fails in the field. Intermittent faults that vanish on the bench are almost always harness-related: a…

  • Document electrical and environmental envelope before connector selection
  • Select connectors based on current per circuit, vibration, and exposure factors
  • Perform 100% testing for continuity, insulation, and vibration resistance

Launching a Personal Website for a Global Audience: GitHub Pages, Cloudflare CDN, and DNS Strategy

Launching a Personal Website for a Global Audience: GitHub Pages, Cloudflare CDN, and DNS Strategy Most personal websites are built for the wrong audience. Not the wrong people — the wrong geography.

  • GitHub Pages offers free HTTPS, unlimited bandwidth, and a global CDN for static websites.
  • Cloudflare adds caching control, analytics, and domain protection to GitHub Pages sites.
  • Dual DNS strategy with two providers enhances reliability and mitigates DNS outage risks.

How I Monetize a Static Blog Without a Backend: AdSense, Membership, and Tips

How I Monetize a Static Blog Without a Backend: AdSense, Membership, and Tips "Static sites can't make money" is one of those assumptions developers repeat until they actually try.

  • Monetization achieved through AdSense, membership, and tips on static blog
  • Google AdSense integrated via data.json for placement and performance optimization
  • Waffo Pancake subscription service handles payments with no backend required

How I Built a Static Blog with 50+ Articles and Zero Frameworks: Pure HTML, CSS, and JavaScript

How I Built a Static Blog with 50+ Articles and Zero Frameworks: Pure HTML, CSS, and JavaScript Every few months, someone asks me the same question: "What framework is your blog built with? Next.js?

  • Wuhuajin.com is a static blog built with only HTML, CSS, and JavaScript.
  • No frameworks used to ensure maximum speed and minimal maintenance.
  • Over 50 articles published with near-perfect PageSpeed scores for over a year.

More from Thursday 5 November →