Cypress Proxy Error: ERR_HTTP_TRAILER_INVALID with Oracle APEX/ORDS #32180
              
                Unanswered
              
          
                  
                    
                      oortegasnw
                    
                  
                
                  asked this question in
                Questions and Help
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Cypress Proxy Error: ERR_HTTP_TRAILER_INVALID with Oracle APEX/ORDS
Hi everyone,
I'm trying to automate tests for a web application using Cypress and I've run into a proxy error that I can't seem to solve. The error appears to be specific to my tech stack.
My Environment
Problem Description
The test consistently fails on the very first step: the login process. The flow is simple:
cy.visit()the APEX login page.cy.type()the username and password into the fields.cy.click()the login button.Right after clicking the login button, the test hangs. The Cypress terminal shows a proxy error, and the Cypress Test Runner shows a different, subsequent error that is a symptom of the first.
Error Messages
1. Terminal Error (Cypress Proxy)
This error repeats several times. It seems the Cypress proxy can't handle the HTTP response sent by the server (ORDS) after the login POST request.
2. Cypress Test Runner Error
This error occurs because the login failed, so the session cookie was never set. My code then fails when it tries to read that non-existent cookie.
The error points to this line in my custom login command:
Relevant Code
cypress.config.js(excerpt)I've disabled
chromeWebSecurityas is often suggested for CORS/login issues, but it hasn't helped.commands.js(simplified login command)test.cy.js(test file usage)My Question
Has anyone else encountered this
ERR_HTTP_TRAILER_INVALIDerror when using Cypress with an Oracle APEX/ORDS application?My theory is that there's a conflict between the Cypress proxy and the way ORDS issues HTTP redirects (302 responses) using
Transfer-Encoding: chunked. Are there any known configurations for Cypress, Nginx, or ORDS to resolve this compatibility issue?Any help or suggestions would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions