Page 1 of 1

Input is not a hex encoded string

Posted: Thu Jan 16, 2020 6:33 am
by CBufacchi
Hello,

We are creating a webservice for extracting data from our iSeries server. While testing, we discovered that we get sometimes an error message related to hexToBin conversion when pjs.fetchRelative is called. After investigations we found that the problem occurs only with records having fields with decimal values between 0 and 1-. After changing the value to greater than 0 or lower than 1-, the problem does not occur anymore.
Any idea about how to fix this issue ?

Best regards.
Christian.

Profound.js Error: Input is not a hex encoded string.
at Object.profound.utils.hexToBin (/profoundjs/node_modules/profoundjs/utils/bin.jse:5:11)
at fetchPrimitive (/profoundjs/node_modules/profoundjs/db/drivers/IBMi/sql-driver.jse:971:31)
at Object.profound.fetchRelative (/profoundjs/node_modules/profoundjs/db/drivers/IBMi/sql-driver.jse:728:15)
at Object.pjs.(anonymous function) [as fetchRelative] (/profoundjs/node_modules/profoundjs/api/pjs.jse:21:30)
at Object.extractWorldWriterData (/profoundjs/modules/NakanJs/extractWorldWriterData.js:92:17)
at Object.profound.call (/profoundjs/node_modules/profoundjs/api/call.jse:140:25)
at /profoundjs/node_modules/profoundjs/api/express.jse:20:20

Re: Input is not a hex encoded string

Posted: Thu Jan 16, 2020 3:04 pm
by Scott Klement
This shouldn't happen. Please report this as a bug to Profound Logic support by e-mailing support@profoundlogic.com