Skip to content

fix: address PostHog production errors#682

Merged
bokelley merged 1 commit into
mainfrom
bokelley/posthog-review
Jan 9, 2026
Merged

fix: address PostHog production errors#682
bokelley merged 1 commit into
mainfrom
bokelley/posthog-review

Conversation

@bokelley

@bokelley bokelley commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix RSS feed guid.split is not a function error by handling object-style guids from RSS parser
  • Remove non-existent role column from organization_memberships INSERT statement
  • Add defensive string coercion and warning log in generateSlug for better debugging

PostHog Issues Addressed

Error Count Fix
guid.split is not a function 7 RSS parser sometimes returns { _: "value" } object - now handled
column 'role' does not exist 4 Removed invalid column from INSERT query

Changes

  • server/src/addie/services/feed-fetcher.ts: Handle object-style guids from RSS feeds
  • server/src/db/industry-feeds-db.ts: Add defensive String() coercion + warning log
  • server/src/routes/admin/organizations.ts: Remove role column from INSERT

Test plan

  • TypeScript typecheck passes
  • All existing tests pass
  • Deploy and monitor PostHog for error reduction

🤖 Generated with Claude Code

- Fix RSS feed guid.split error by handling object-style guids from RSS parser
- Remove non-existent 'role' column from organization_memberships INSERT
- Add defensive string coercion and warning log in generateSlug

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 6d0bfbe into main Jan 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant