Page 1 of 1

Starter return JSON loads error

Posted: Thu Jan 11, 2018 4:34 pm
by F2B
Hello,

affter i click the "Start" button in starter, it returns:

afnetwork.py: Received data:
{
"id":58,
"serial":74
}A
JSON loads error:
Extra data: line 4 column 2 - line 4 column 3 (char 24 - 25)
null

The job successfully sent.

This is the same error for every job i submit. I see JSON job structure but what line and column refer to???

Re: Starter return JSON loads error

Posted: Thu Jan 11, 2018 5:24 pm
by timurhai
Hi.
This is an extra "A" character at the end of JSON data just after the last "}".
It is a bug appeared when server switched to non-blocking IO.
What OS afserver is running? Have you turned on linux epoll facility?
For now, if you need correct JSON you can just cat off everythin after the last "}", when JSON object finished.

Re: Starter return JSON loads error

Posted: Fri Jan 12, 2018 9:34 am
by F2B
Server runs on Windows.

What python file should i modify to clean that?

Re: Starter return JSON loads error

Posted: Fri Jan 12, 2018 10:04 am
by timurhai

Re: Starter return JSON loads error

Posted: Mon Jan 15, 2018 10:06 am
by bazarus
Same error appears after sending job in houdini console.

Code: Select all

afnetwork.py: Received data:
{
"id":5599,
"serial":9930
}AAA
JSON loads error:
Extra data: line 4 column 2 - line 4 column 5 (char 28 - 31)
afnetwork.py: Received data:
{
"id":5604,
"serial":9931
}AAAAAAAAAAAAAAAAAA
JSON loads error:
Extra data: line 4 column 2 - line 4 column 20 (char 28 - 46)
Can you explain a bit more how to solve problem?

Re: Starter return JSON loads error

Posted: Mon Jan 15, 2018 3:05 pm
by timurhai
Hi!
You need a new job ID or Serial?
If so, just cut of AAA from the end.
If not - is it a problem?

Re: Starter return JSON loads error

Posted: Wed Feb 07, 2018 10:28 am
by timurhai
You can look here how this problem can be solved:
https://github.com/CGRU/cgru/commit/d16 ... 3b1f63c31c
You can get that file from master now, or it will be available in the next releases.