Forum Discussion
Here's the output from the log:
Tue Mar 31 15:45:21 MDT 2020: INFO: <?xml version="1.0" encoding="UTF-8"?> <errorDescription xmlns:p="http://www.ournamespace.com">Invalid part number</errorDescription>
It appears to be a non-printable char. I also just edited the namespace, as not put publish it on the forum.
Is your request data valid?
Please see if below link is of any help
https://stackoverflow.com/questions/12549029/sql-error-ora-01722-invalid-number
- tadudek5 years agoOccasional Contributor
I don't control the values being passed back in this response. So, I'm trying to grab the value (which comes out as a string if I use the holder.getNodeValue(xpath). That breaks, but I'm trying to get it into an excel file so that as I'm going through my response, if one of these items in my xml list has an error, I transcribe that to the file.
To get around it, it appears that I may be able to do something like this:
log.info holder.getDomNode(err).toString()
But, it's not exactly what I want.
Ideally, I just want pull what's there, regardless printable/non-printable chars. So, if I could just CDATA the content regardless of what's there, but the problem is, is that I can't get to it.
- nmrao5 years agoChampion Level 3How does the raw response look like? Text message and screen shot helps.
Would try below snippet in script assertion
assert context.response, 'Response empty or null'
log.info context.response- tadudek5 years agoOccasional Contributor
I can't really post my full reponse here from the HTTP log. It does come back in escaped values, shown here.
The RAW view in the response test step also will not let me scroll to copy the entire raw response. So, the error in question is too far over, and readyapi won't let me scroll over to see it.
Related Content
- 6 years ago
- 10 years ago
Recent Discussions
- 22 days ago