Skip to content

chore(release): staging to production - 2026.03.04 - #997

Merged
maxtechera merged 3 commits into
productionfrom
staging
Mar 4, 2026
Merged

chore(release): staging to production - 2026.03.04#997
maxtechera merged 3 commits into
productionfrom
staging

Conversation

@github-actions

@github-actions github-actions Bot commented Mar 4, 2026

Copy link
Copy Markdown

🚀 Release: Staging to Production

Release Date: 2026-03-04

Changes in this release

  • fix: add null checks before accessing componentNodes[].filePath (442fb8e)
  • fix: add defensive checks to all debug logging (ebf003b)

This PR is automatically created/updated when commits are pushed to staging.
Merging this PR will trigger the release workflow to create a new GitHub release.

Max Techera and others added 3 commits March 4, 2026 15:19
Wraps all property access in optional chaining and try-catch blocks
to prevent TypeError when objects are undefined.

The 'filePath' error was likely from trying to log an object property
that didn't exist, causing the logging itself to throw errors.

Changes:
- Use optional chaining (?.) for all object property access in logs
- Wrap Object.keys() calls in try-catch
- Add fallback values ('NONE', 'UNKNOWN', 'N/A') for undefined properties
- Wrap entire logging blocks in try-catch where complex objects are logged

This ensures debug logging never crashes the application.
Fixes TypeError: Cannot read properties of undefined (reading 'filePath')

The buildFlow function was accessing componentNodes[nodeName].filePath
without checking if the node exists in the component pool first.

This causes crashes when:
- A node isn't properly registered
- A node name doesn't match the pool keys
- The component pool hasn't finished loading

Added guards in 3 locations:
1. buildFlow main loop (line 592)
2. clearSessionMemory (line 832)
3. getSessionChatHistory (line 1843)

Now logs an error and continues instead of crashing the entire flow.
@vercel

vercel Bot commented Mar 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
answerai-docs Building Building Preview Mar 4, 2026 3:29pm
the-answerai Building Building Preview Mar 4, 2026 3:29pm

Request Review

@maxtechera
maxtechera merged commit 6deab30 into production Mar 4, 2026
5 of 7 checks passed
@maxtechera
maxtechera temporarily deployed to staging - aai-unified2-flowise-moonstruck March 4, 2026 15:30 — with Render Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant