Orders data invalid character Infinity


#1

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?


#2

Please can you provide the full JSON response?


#3

Hey Phil,

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


#4

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


#5

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


#6

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.


#7

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


#8

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.


#9

This value of sellable on hand value making JSON Invalid.

“sellable_on_hand_value”: Infinity

For more reference,



#10

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?


#11

Actually JSON parser failed and it’s return NULL.


#12

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.


#13

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