API return a message : subject must not null

Hi ! I try to use Asqatasun API. I dockerize it in docker-compose.yml as the doc said. I can run the POST method to API ton get audit id. Then when i run bash script to get JSON results with the right audit id, I got this message in JSON FORMAT :
“timestamp”:“2021-03-05T15:13:58.845+0000”,“status”:500,“error”:“Internal Server Error”,“message”:“audit.subject must not be null”,“path”:"/api/v1/audit/2
I 've never seen the audit.subject variable, someone can help me please ?
I speak french too

In addition, my Asqatasun container is in unhealthy status
I check logs of it container and I’ve got a java error : “java.lang.IllegalStateException: audit.subject must not be null”

Ok, I needed to wait api analyse, but now my JSON result is :
{
“date”: “2021-03-08T11:40:51.000+0000”,
“id”: 6,
“referential”: “RGAA_4_0”,
“referentialLevel”: “LEVEL_2”,
“status”: “ERROR”,
“subject”: {
“id”: 6,
“nbOfPages”: 1,
“type”: “PAGE”,
“url”: “http://www.wikidata.org
},
“tags”: []
}
I’m going to check why i’ve got ERROR status

Logs indicates this :
08-03-2021 12:13:35:728 795587 WARN org.asqatasun.util.http.HttpRequestHandler - IOException on http://www.wikidata.org
08-03-2021 12:15:42:960 922819 WARN org.asqatasun.util.http.HttpRequestHandler - IOException on http://www.wikidata.org
08-03-2021 12:15:43:410 923269 INFO org.asqatasun.service.command.AbstractScenarioAuditCommandImpl - Loading content for null
08-03-2021 12:15:43:410 923269 WARN org.asqatasun.service.command.AbstractScenarioAuditCommandImpl - Audit Status is ERROR while SCENARIO_LOADING was required
08-03-2021 12:15:43:454 923313 WARN org.asqatasun.service.command.AuditCommandImpl - Audit status isERROR whileCONTENT_ADAPTING was required
08-03-2021 12:15:43:473 923332 WARN org.asqatasun.service.command.AuditCommandImpl - Audit status isERROR whilePROCESSING was required
08-03-2021 12:15:43:491 923350 WARN org.asqatasun.service.command.AuditCommandImpl - Audit status isERROR whileCONSOLIDATION was required
08-03-2021 12:15:43:492 923351 WARN org.asqatasun.service.command.AuditCommandImpl - Audit status isERROR whileANALYSIS was required
08-03-2021 12:15:43:492 923351 INFO org.asqatasun.web.audit.RestAuditServiceListener - Rest audit 2 terminated successfully

I saw the same issue here : 4.1.0 Error in loading page (abbeville) · Issue #338 · Asqatasun/Asqatasun · GitHub
I’ve got latest Asqatasun version

I find solution, it’s to connect my app which I scan and asqatasun to the same network. Have a nice day :slight_smile:

1 Like