httpexpect icon indicating copy to clipboard operation
httpexpect copied to clipboard

issue with debugPrinter

Open hemanthbsridhar opened this issue 1 year ago • 0 comments

given my response is :

{
  "changelog": {
    "connector": "git",
    "location": "folder/changelog.yaml"
  },
  "created": 1714477707,
  "identifier": "ODLWLAHkwl",
  "name": "ODLWLAHkwl",
  "service": "service",
  "tags": {
    "tag1": "val1",
    "tag2": "val2"
  }
}

with

httpexpect.NewDebugPrinter(t, true),

getting error

panic: interface conversion: io.ReadCloser is io.nopCloserWriterTo, not *httpexpect.bodyWrapper [recovered]
	panic: interface conversion: io.ReadCloser is io.nopCloserWriterTo, not *httpexpect.bodyWrapper

making it false, works fine

hemanthbsridhar avatar Apr 30 '24 11:04 hemanthbsridhar