Starter return JSON loads error

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

Starter return JSON loads error

Post by F2B » Thu Jan 11, 2018 4:34 pm

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: 390
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Starter return JSON loads error

Post by timurhai » Thu Jan 11, 2018 5:24 pm

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 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

F2B
Posts: 11
Joined: Mon Jul 03, 2017 1:05 pm

Re: Starter return JSON loads error

Post by F2B » Fri Jan 12, 2018 9:34 am

Server runs on Windows.

What python file should i modify to clean that?

User avatar
timurhai
Site Admin
Posts: 390
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Starter return JSON loads error

Post by timurhai » Fri Jan 12, 2018 10:04 am

Timur Hairulin
CGRU 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

bazarus
Posts: 11
Joined: Mon Jun 19, 2017 2:34 pm

Re: Starter return JSON loads error

Post by bazarus » Mon Jan 15, 2018 10:06 am

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: 390
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Starter return JSON loads error

Post by timurhai » Mon Jan 15, 2018 3:05 pm

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 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

User avatar
timurhai
Site Admin
Posts: 390
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Starter return JSON loads error

Post by timurhai » Wed Feb 07, 2018 10:28 am

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 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests