Troubleshooting Decision Guide
This guide provides a systematic approach to troubleshooting workflow issues using decision trees, diagnostic steps, and proven solutions for common problems.
Troubleshooting Process Overview
Section titled “Troubleshooting Process Overview”graph TB
A[Issue Detected] --> B[Quick Diagnostic Checklist]
B --> C{Issue Resolved?}
C -->|Yes| D[Document Solution]
C -->|No| E[Identify Issue Category]
E --> F[Workflow Execution]
E --> G[Data Extraction]
E --> H[Node Connection]
E --> I[Performance]
E --> J[Security/Permissions]
F --> K[Decision Tree 1]
G --> L[Decision Tree 2]
H --> M[Decision Tree 3]
I --> N[Decision Tree 4]
J --> O[Decision Tree 5]
K --> P[Apply Solution]
L --> P
M --> P
N --> P
O --> P
P --> Q[Test & Validate]
Q --> R{Issue Resolved?}
R -->|Yes| D
R -->|No| S[Escalate to Community]
style A fill:#ffebee
style E fill:#e3f2fd
style P fill:#e8f5e8
style D fill:#f3e5f5
Quick Diagnostic Checklist
Section titled “Quick Diagnostic Checklist”Before diving into detailed troubleshooting, run through this quick checklist:
✅ Basic System Check
Section titled “✅ Basic System Check”✅ Workflow Validation
Section titled “✅ Workflow Validation”✅ Content Accessibility
Section titled “✅ Content Accessibility”Primary Issue Categories
Section titled “Primary Issue Categories”🚫 Workflow Execution Issues
Section titled “🚫 Workflow Execution Issues”Problems with workflow starting, running, or completing
📊 Data Extraction Issues
Section titled “📊 Data Extraction Issues”Problems extracting content from web pages
🔗 Node Connection Issues
Section titled “🔗 Node Connection Issues”Problems with data flow between nodes
⚡ Performance Issues
Section titled “⚡ Performance Issues”Slow execution, timeouts, or resource problems
🛡️ Security & Permission Issues
Section titled “🛡️ Security & Permission Issues”Browser security restrictions or permission problems
Detailed Troubleshooting Decision Trees
Section titled “Detailed Troubleshooting Decision Trees”Decision Tree 1: Workflow Won’t Start
Section titled “Decision Tree 1: Workflow Won’t Start”flowchart TD
A[Workflow Won't Execute] --> B{Trigger Type?}
B -->|Manual| C[Manual Trigger Issues]
B -->|Automated| D[Automated Trigger Issues]
C --> E{Button Responding?}
E -->|No| F[Check Console Errors
Verify Permissions
Refresh Page]
E -->|Yes| G[Workflow Starts Then Fails]
G --> H[Check First Node Config
Verify Input Data
Review Parameters]
D --> I{Timer Firing?}
I -->|No| J[Check Trigger Config
Verify Tab Active
Check Browser Sleep]
I -->|Yes| K[Trigger Fires But Fails]
K --> L[Check Execution Permissions
Verify Data Sources
Review Error Logs]
style A fill:#ffebee
style F fill:#e8f5e8
style H fill:#e8f5e8
style J fill:#e8f5e8
style L fill:#e8f5e8
Common Solutions:
| Problem | Cause | Solution |
|---|---|---|
| Extension not responding | Extension disabled/crashed | Reload extension or restart browser |
| Permission denied | Missing required permissions | Grant permissions in browser settings |
| Workflow validation failed | Invalid node configuration | Review and fix node parameters |
| Trigger not firing | Incorrect trigger setup | Reconfigure trigger conditions |
Decision Tree 2: Data Extraction Failures
Section titled “Decision Tree 2: Data Extraction Failures”flowchart TD
A[Cannot Extract Data] --> B{Extraction Type?}
B -->|Text| C[Text Extraction Issues]
B -->|HTML| D[HTML Extraction Issues]
B -->|Selection| E[Selection-Based Issues]
C --> F{Text Extracted?}
F -->|None| G{Page Loaded?}
F -->|Partial| H[Check Selectors
Verify Visibility
Review Parameters]
G -->|No| I[Wait for Load
Check Dynamic Content]
G -->|Yes| J{In iframes?}
J -->|Yes| K[Cannot Access Cross-Origin
Try Parent Page]
J -->|No| L[Check CSP Errors
Try Alternative Method]
D --> M{HTML Structure?}
M -->|Missing| N[Verify DOM Elements
Check Shadow DOM
Fix Selection]
M -->|Malformed| O[Enable Sanitization
Check Dynamic Changes
Fix Timing]
E --> P{Selection Detected?}
P -->|No| Q[Ensure Text Selected
Check API Compatibility
Verify Timing]
P -->|Lost| R[Process Immediately
Store Selection
Handle Events]
style A fill:#ffebee
style I fill:#e8f5e8
style K fill:#fff3e0
style L fill:#fff3e0
style N fill:#e8f5e8
style O fill:#e8f5e8
style Q fill:#e8f5e8
style R fill:#e8f5e8
Diagnostic Commands:
// Check if content is accessibleconsole.log(document.body.innerText.length);
// Verify selection existsconsole.log(window.getSelection().toString());
// Check for iframe contentconsole.log(document.querySelectorAll("iframe").length);
// Test CSS selectorconsole.log(document.querySelectorAll("your-selector").length);Decision Tree 3: Node Connection Problems
Section titled “Decision Tree 3: Node Connection Problems”flowchart TD
A[Data Not Flowing Between Nodes] --> B{Connection Type?}
B -->|Visual Connection| C[Connection Configuration Issues]
B -->|Data Format| D[Data Validation Issues]
B -->|Timing| E[Execution Order Problems]
C --> F{Nodes Connected?}
F -->|No| G[Verify Visual Connections
Check Endpoints
Fix Data Flow Direction]
F -->|Yes| H{Data Type Match?}
H -->|No| I[Check Output Format
Verify Input Requirements
Add Data Transformation]
H -->|Yes| J[Connection OK - Check Data]
D --> K{Data Exists?}
K -->|No| L[Check Source Node Success
Verify Extraction Completed
Add Validation Node]
K -->|Yes| M{Valid Format?}
M -->|No| N[Review Data Structure
Add Formatting Steps
Implement Error Handling]
M -->|Yes| O[Data OK - Check Execution]
E --> P{Execution Order?}
P -->|Wrong| Q[Check Dependencies
Verify Flow Logic
Add Wait/Sync Points]
P -->|Conflicts| R[Identify Resource Conflicts
Serialize Operations
Implement Synchronization]
style A fill:#ffebee
style G fill:#e8f5e8
style I fill:#e8f5e8
style L fill:#e8f5e8
style N fill:#e8f5e8
style Q fill:#e8f5e8
style R fill:#e8f5e8
Data Flow Validation:
// Add debug nodes to check data flowDebug Node Configuration:- Input: Connect to suspect data flow- Action: Log data to console- Output: Pass data through unchanged
// Check data at each step1. After extraction: Verify content exists2. After processing: Verify transformation success3. Before final action: Verify data formatDecision Tree 4: Performance Problems
Section titled “Decision Tree 4: Performance Problems”flowchart TD
A[Workflow Running Slowly] --> B{Performance Issue Type?}
B -->|Extraction| C[Extraction Performance Issues]
B -->|Processing| D[Processing Performance Issues]
B -->|Resources| E[Browser Resource Issues]
C --> F{Content Size?}
F -->|Large| G[Set Content Limits
Use CSS Selectors
Process in Chunks]
F -->|Multiple| H[Combine Extractions
Cache Content
Parallelize Operations]
D --> I{Operation Type?}
I -->|AI/API| J[Optimize Prompts
Implement Caching
Use Faster Models]
I -->|Data Transform| K[Optimize Algorithms
Reduce Data Size
Efficient Structures]
E --> L{Resource Type?}
L -->|Memory| M[Clear Unused Data
Process in Batches
Garbage Collection]
L -->|CPU| N[Add Delays
Use Web Workers
Optimize Algorithms]
style A fill:#ffebee
style G fill:#e8f5e8
style H fill:#e8f5e8
style J fill:#e8f5e8
style K fill:#e8f5e8
style M fill:#e8f5e8
style N fill:#e8f5e8
Performance Monitoring:
// Add timing measurementsconst startTime = performance.now();// ... workflow execution ...const endTime = performance.now();console.log(`Execution time: ${endTime - startTime}ms`);
// Monitor memory usageconsole.log(`Memory usage: ${performance.memory?.usedJSHeapSize || "N/A"}`);
// Check for performance bottlenecksperformance.mark("extraction-start");// ... extraction code ...performance.mark("extraction-end");performance.measure("extraction-time", "extraction-start", "extraction-end");Decision Tree 5: Security & Permission Issues
Section titled “Decision Tree 5: Security & Permission Issues”flowchart TD
A[Security/Permission Errors] --> B{Error Type?}
B -->|Browser Permissions| C[Browser Permission Issues]
B -->|Content Security| D[Content Security Policy]
B -->|Site Restrictions| E[Site-Specific Restrictions]
C --> F{Permission Type?}
F -->|Denied| G[Check Extension Permissions
Verify activeTab Permission
Ensure Scripting Permission]
F -->|Cross-Origin| H[Cannot Access Different Domain
Use Alternative Sources
Implement Proxy]
D --> I{CSP Issue Type?}
I -->|Script Injection| J[Check Console for CSP
Use Alternative Methods
Request CSP Exceptions]
I -->|External Resources| K[Use Local Processing
CSP-Compliant Alternatives
Cache Resources Locally]
E --> L{Restriction Type?}
L -->|Anti-Automation| M[Add Human-Like Delays
Rotate User Agents
Respect Rate Limits]
L -->|Authentication| N[Handle Auth Flows
Manage Session Cookies
Implement Credentials]
style A fill:#ffebee
style G fill:#e8f5e8
style H fill:#fff3e0
style J fill:#e8f5e8
style K fill:#e8f5e8
style M fill:#e8f5e8
style N fill:#e8f5e8
Permission Verification:
// Check extension permissionschrome.permissions.contains( { permissions: ["activeTab", "scripting"], }, (result) => { console.log("Permissions granted:", result); });
// Test content script injectionchrome.scripting.executeScript({ target: { tabId: tabId }, func: () => console.log("Content script injected successfully"),});Common Error Messages & Solutions
Section titled “Common Error Messages & Solutions””Cannot access contents of URL”
Section titled “”Cannot access contents of URL””Cause: Cross-origin security restriction Solutions:
- Ensure target page is same-origin or allows access
- Use activeTab permission for current tab access
- Implement server-side proxy for cross-origin data
”Extension context invalidated”
Section titled “”Extension context invalidated””Cause: Extension was reloaded or updated during execution Solutions:
- Reload the page and restart workflow
- Check for extension updates
- Implement error recovery in workflow
”Script injection failed”
Section titled “”Script injection failed””Cause: Content Security Policy or site restrictions Solutions:
- Check browser console for specific CSP violations
- Use alternative extraction methods
- Try different timing for script injection
”Selection not found”
Section titled “”Selection not found””Cause: No text selected or selection lost Solutions:
- Ensure user has selected text before workflow execution
- Add user instructions for text selection
- Implement selection validation before processing
”Timeout waiting for response”
Section titled “”Timeout waiting for response””Cause: Operation taking too long or hanging Solutions:
- Increase timeout limits in node configuration
- Optimize processing to reduce execution time
- Add progress indicators for long operations
Systematic Debugging Approach
Section titled “Systematic Debugging Approach”Step 1: Isolate the Problem
Section titled “Step 1: Isolate the Problem”- Identify Failure Point: Determine which node or step is failing
- Reproduce Consistently: Ensure the problem occurs reliably
- Simplify Workflow: Remove non-essential nodes to isolate issue
- Test Individual Nodes: Verify each node works independently
Step 2: Gather Diagnostic Information
Section titled “Step 2: Gather Diagnostic Information”- Browser Console: Check for JavaScript errors and warnings
- Network Tab: Monitor network requests and responses
- Extension Logs: Review extension-specific error messages
- Workflow Execution Logs: Analyze step-by-step execution data
Step 3: Apply Targeted Solutions
Section titled “Step 3: Apply Targeted Solutions”- Configuration Fixes: Correct node parameters and settings
- Permission Updates: Grant necessary browser permissions
- Code Modifications: Adjust workflow logic or timing
- Alternative Approaches: Use different nodes or methods
Step 4: Validate and Monitor
Section titled “Step 4: Validate and Monitor”- Test Fix: Verify the solution resolves the issue
- Regression Testing: Ensure fix doesn’t break other functionality
- Monitor Performance: Check for any performance impact
- Document Solution: Record fix for future reference
Prevention Strategies
Section titled “Prevention Strategies”Robust Workflow Design
Section titled “Robust Workflow Design”- Input Validation: Always validate data before processing
- Error Handling: Implement comprehensive error handling
- Fallback Options: Provide alternative approaches for failures
- Progress Monitoring: Track workflow execution progress
Performance Optimization
Section titled “Performance Optimization”- Resource Management: Monitor and limit resource usage
- Caching: Cache frequently accessed data and results
- Batch Processing: Group operations for efficiency
- Lazy Loading: Load data only when needed
Security Best Practices
Section titled “Security Best Practices”- Minimal Permissions: Request only necessary permissions
- Data Sanitization: Clean and validate all input data
- Secure Communication: Use HTTPS for external communications
- Privacy Protection: Handle user data responsibly
Advanced Troubleshooting Tools
Section titled “Advanced Troubleshooting Tools”Browser Developer Tools
Section titled “Browser Developer Tools”// Enable verbose logginglocalStorage.setItem("debug", "true");
// Monitor performanceperformance.mark("workflow-start");// ... workflow execution ...performance.mark("workflow-end");performance.measure("workflow-duration", "workflow-start", "workflow-end");
// Check memory leaksconst observer = new PerformanceObserver((list) => { console.log("Performance entries:", list.getEntries());});observer.observe({ entryTypes: ["measure", "navigation"] });Extension Debugging
Section titled “Extension Debugging”// Background script debuggingchrome.runtime.onMessage.addListener((message, sender, sendResponse) => { console.log("Message received:", message); // Handle debugging messages});
// Content script debuggingwindow.addEventListener("error", (event) => { console.error("Content script error:", event.error);});Network Monitoring
Section titled “Network Monitoring”// Monitor fetch requestsconst originalFetch = window.fetch;window.fetch = function (...args) { console.log("Fetch request:", args); return originalFetch.apply(this, args).then((response) => { console.log("Fetch response:", response); return response; });};Getting Additional Help
Section titled “Getting Additional Help”Documentation Resources
Section titled “Documentation Resources”- Node Reference - Complete node documentation
- Workflow Patterns - Proven workflow designs
- Performance Guide - Optimization techniques
Community Support
Section titled “Community Support”- Help & Community - Get assistance from community
- Contributing - Report bugs and contribute fixes
- GitHub Issues: Report technical issues and bugs
Professional Support
Section titled “Professional Support”- Enterprise Support: Available for business users
- Custom Development: Professional workflow development services
- Training Programs: Comprehensive training for teams
Related Resources
Section titled “Related Resources”Troubleshooting Guides
Section titled “Troubleshooting Guides”- AI Troubleshooting - AI-specific issues
- Performance Optimization - Performance problems
- Workflow Debugging - General debugging techniques
Best Practices
Section titled “Best Practices”- Security Best Practices - Security guidelines
- Performance Best Practices - Performance optimization
- Workflow Design Patterns - Proven design approaches