Starter return JSON loads error

General discussions and questions.
Post Reply
F2B
Posts: 12
Joined: Mon Jul 03, 2017 1:05 pm

Starter return JSON loads error

Post 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???
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Starter return JSON loads error

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
F2B
Posts: 12
Joined: Mon Jul 03, 2017 1:05 pm

Re: Starter return JSON loads error

Post by F2B »

Server runs on Windows.

What python file should i modify to clean that?
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Starter return JSON loads error

Post by timurhai »

Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
bazarus
Posts: 15
Joined: Mon Jun 19, 2017 2:34 pm

Re: Starter return JSON loads error

Post 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?
Afanasy 2.2.3 . Server - Ubuntu 16.04.3 LTS. Clients - Windows 7 SP1
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Starter return JSON loads error

Post 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?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Starter return JSON loads error

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply