filiphric / cypress-plugin-api

Cypress plugin to show your API information in the Cypress UI runner
ISC License
264 stars 35 forks source link

R.REPLACE IS NOT A FUNCTION ISSUE #133

Open eiazeez opened 6 months ago

eiazeez commented 6 months ago

Sometimes, and i don't know why or what cause this, i get this error when i use cy.api. image

To resolve this issue, i put .toString() between "r"and "replace" function, in >> node_modules/cypress-plugin-api/dist/support.js line 9 << Here a example:

image

filiphric commented 4 months ago

hey @eiazeez! I’m back to working on this. would it be possible for you to provide an example response that causes this issue? there’s probably something wrong with how data is parsed and I’m assuming that it has something to do with the response body, or headers

eiazeez commented 4 months ago

Hey, @filiphric As i shared, i don't know how exactly to reproduce. Sometimes i get this error, sometimes not. I tried to reproduce a step by step scenario but it's intermitent behave