https://cypress.io logo
#i-need-help
Parser can work only with string streams
# i-need-help
w

wide-quill-11523

05/25/2023, 4:48 PM
Copy code
describe(
    "description",
    () => {
        it("Login", () => {
            cy.visit('https://url.company.com/sites/test_regression/members/Preferences/ContactInformationStep')
                cy.get('#Username').type('someUser')
                cy.get('#Password').type('somepassword')
                cy.get('button.button-submit').click()
            
        });
    }
);
Have the following test case. Navigation to the visit site redirects to a login site on the same domain, which then redirects back to the original page. After doing so I get about 2 seconds of the ContactInformationSetup page before cypress crashes. It gives a stack trace where the first lines are Parser can work only with string streams. TypeError: Parser can work only with string streams. at a._transform (:4614:132981) None of this stack references anything in my code, and the test case is as trimmed down as I can get it. Let me know if the full stack would help further?
Copy code
Parser can work only with string streams.
TypeError: Parser can work only with string streams.
    at a._transform (<embedded>:4614:132981)
    at Transform._write (node:internal/streams/transform:184:23)
    at writeOrBuffer (node:internal/streams/writable:389:12)
    at _write (node:internal/streams/writable:330:10)
    at Writable.write (node:internal/streams/writable:334:10)
    at t (<embedded>:3171:17581)
    at v (<embedded>:3171:17680)
    at l.x (<embedded>:3171:17909)
    at l.emit (node:events:527:28)
    at y (<embedded>:3171:17500)
    at h (<embedded>:3171:17478)
    at g (<embedded>:3171:16031)
    at b.push (<embedded>:3171:16689)
    at l.push (<embedded>:3171:29790)
    at e._transform (<embedded>:3171:31283)
    at l._read (<embedded>:3171:30254)
    at l._write (<embedded>:3171:30100)
    at p (<embedded>:3171:25037)
    at <embedded>:3171:26404
    at c.write (<embedded>:3171:26428)
    at p._write (<embedded>:2539:30984)
    at k (<embedded>:2215:60458)
    at <embedded>:2215:63617
    at x.write (<embedded>:2215:63644)
    at _.u (<embedded>:4673:33507)
    at _.emit (node:events:527:28)
    at q.read (<embedded>:4673:32377)
    at z (<embedded>:4673:30838)
    at V (<embedded>:4673:30719)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)