Skip to content

Handle invalid/empty token file in SyncJob#authorize#111

Merged
fchiyenda merged 3 commits intomasterfrom
fix_css
Apr 15, 2026
Merged

Handle invalid/empty token file in SyncJob#authorize#111
fchiyenda merged 3 commits intomasterfrom
fix_css

Conversation

@fchiyenda
Copy link
Copy Markdown
Contributor

  • Guard against empty token file before parsing JSON
  • Handle nil/missing token key after parsing
  • Rescue JSON::ParserError, NoMethodError, and TypeError for malformed structures
  • Log warning to Rails logger and save error to sync_errors table before re-authenticating

fchiyenda added 3 commits April 4, 2026 10:35
- Guard against empty token file before parsing JSON
- Handle nil/missing token key after parsing
- Rescue JSON::ParserError, NoMethodError, and TypeError for malformed structures
- Log warning to Rails logger and save error to sync_errors table before re-authenticating
@fchiyenda fchiyenda merged commit 3cff11c into master Apr 15, 2026
1 check passed
@fchiyenda fchiyenda deleted the fix_css branch April 15, 2026 04:17
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.

2 participants