Orders data invalid character Infinity

Hello,

I’ve encountered a something really strange error.
I found:
line_Items → sellable → stock_entries
SKU: !M-COT-120x60-WH
Stock Entries → id → 5522702

“sellable_on_hand_value”: Infinity

which make order json invalid.

Do you please check what’s wrong with that?

Please can you provide the full JSON response?

Hey Phil,

I sent you email which have full Json and API url too.

Thanks @techosunny I’ll try and take a look this weekend but it is a bank holiday in the UK so might not be able to get a full response until Tuesday

I’m looking forward to your response.
Please do let me know If you find something.
Thanks

Thanks for sending across the JSON. I’ll discuss this with out developers today.

What problems is the invalid JSON causing precisely? This is important in order to ensure that the bug fix is prioritised correctly.

Thanks phil,
Please let me know when you fixed this.

Hi Sunny,

Please can you clarify exactly what issues the invalid JSON is causing.

This is important in order to ensure that the bug fix is prioritised correctly.

This value of sellable on hand value making JSON Invalid.

“sellable_on_hand_value”: Infinity

For more reference,

I understand that it makes the JSON invalid, but are you running it through a JSON parser that fails or does you code throw an error because of it?

Actually JSON parser failed and it’s return NULL.

Understood, thanks.
This appears to be a Veeqo bug, as such I have created bug ticket and linked it to a support ticket which you should have had an email about.

You’ll be updated in that email thread when the bug is fixed.

Yes, I received email about it and thanks for letting me know.