N8N External Editor SSL Issue Successfully Resolved
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
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"
The issue was in the openN8NExternal() function which attempted to use HTTPS protocol detection:
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.
Fixed the function to always use HTTP for the N8N service:
Benefits:
✅ 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
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.