https://cypress.io logo
Request getting http 500 from server when executed...
# i-need-help
b
Hi guys, i have a code that login in the application, fill some fields and then i submit it clicking in a botton. Is it a easy thing right? no, it doesn't, I'm trying since this morning submit this shit and I'm still getting this http 500 error. it happen only when I'm using Cypress. if i do it manually, it works. if i use postman, it works... Now lets go to the things I guess is the error. When i'm using cypress I saw my request wont sending the origin key on the header. its the only thing different that I found. I tryed a lot of things to workaround it: I change my chrome web security options I tryed to use the cy.origin() function but it always fail with this message """"cy.origin() requires the first argument to be a different domain than top. You passed https://myURL to the origin command, while top is at https://myURL."""" I dont know what I can do anymore. If i don't fix it, I will have to use Robot Framework to automate this project, and guys.... I HATE ROBOT FRAMEWORK. please help me.
g
without any test code to see, all I can say: my paid course https://cypress.tips/courses/network-testing has all sorts of API requests lessons, maybe one of them matches your situation. again, since there is test code who knows
b
I dont want to test API. i just want to navigate on the web application from Cypress Browser, but if i do that, my server refuses the connection. Cypress don't show me an error, the action of click in a button gives me an error from my application side. but it happen only using cypress.
13 Views