🔧 SSL Protocol Error - FIXED

N8N External Editor SSL Issue Successfully Resolved

✅ Issue Resolution Complete

Problem: "ERR_SSL_PROTOCOL_ERROR" when clicking edit button - trying to access HTTPS N8N service without SSL

Solution: Modified openN8NExternal() function to always use HTTP protocol for N8N service

Status: Fixed and deployed to both HTTP and HTTPS locations

🐛 Original Problem

The N8N automation platform was generating SSL protocol errors when users clicked the "Edit" button. The error message was:

"This site can't provide a secure connection sankarnag.ai sent an invalid response. ERR_SSL_PROTOCOL_ERROR"

🔧 Root Cause Analysis

The issue was in the openN8NExternal() function which attempted to use HTTPS protocol detection:

// PROBLEMATIC CODE (before fix) function openN8NExternal() { const protocol = window.location.protocol === 'https:' ? 'https:' : 'http:'; const baseUrl = protocol === 'https:' ? 'https://sankarnag.ai:5678' : 'http://119.18.62.193:5678'; window.open(baseUrl, '_blank'); }

Problem: When the main site was accessed via HTTPS, the function tried to access N8N at https://sankarnag.ai:5678, but the N8N service doesn't have SSL/TLS certificates configured on port 5678.

✨ Solution Implemented

Fixed the function to always use HTTP for the N8N service:

// FIXED CODE (after fix) function openN8NExternal() { // Always use HTTP for N8N service as it doesn't have SSL configured const baseUrl = 'http://119.18.62.193:5678'; window.open(baseUrl, '_blank'); showMessage('N8N editor opened in new tab for full workflow editing', 'success'); }

Benefits:

🚀 Deployment Status

✅ Fixed code deployed to HTTP location: /var/www/html/workflows.html

✅ Fixed code deployed to HTTPS location: /home/sankarnag/public_html/workflows.html

✅ N8N service health verified: {"status":"ok"}

✅ All automation platform functionality restored

📝 Summary

The SSL protocol error has been completely resolved. Users can now click "Edit" or "Open External Editor" buttons without encountering SSL errors. The N8N workflow editor opens correctly in a new tab, providing full access to workflow creation and editing functionality.