Skip to content

When the backend hits an error state, it is not noticed in armlet. #29

@rocky

Description

@rocky

On staging right now, there is some sort of bug in the API backend.

$ ./analyses.sh  sample-json/PublicArray.json 
Issuing HTTP POST https://staging.api.mythx.io/v1/analyses
  (with MYTHRIL_ACCESS_TOKEN on file sample-json/PublicArray.json)

curl completed sucessfully. Output follows...
HTTP/2 200 
{
  "apiVersion": "v1.3.0-41-ge2a3895",
  "mythrilVersion": "0.19.11",
  "maruVersion": "0.3.1",
  "queueTime": 3,
  "runTime": 0,
  "status": "Queued",
  "submittedAt": "2019-01-16T22:08:46.991Z",
  "submittedBy": "5bf808544b0aa00010a9c096",
  "uuid": "693f8236-b9d1-47ae-8231-0ab6db86f6f0"
}
$ ./analyses-status.sh 693f8236-b9d1-47ae-8231-0ab6db86f6f0
Issuing HTTP GET https://staging.api.mythx.io/v1/analyses/693f8236-b9d1-47ae-8231-0ab6db86f6f0
  (with MYTHRIL_ACCESS_TOKEN)
curl completed sucessfully. Output follows...
HTTP/2 200 
{
  "apiVersion": "v1.3.0-41-ge2a3895",
  "error": "Error processing task: json: cannot unmarshal string into Go struct field AnalyzeInput.sources of type tasks.SourceContent",
  "mythrilVersion": "0.19.11",
  "maruVersion": "0.3.1",
  "queueTime": 506,
  "runTime": 196,
  "status": "Error",
  "submittedAt": "2019-01-16T22:08:46.991Z",
  "submittedBy": "5bf808544b0aa00010a9c096",
  "uuid": "693f8236-b9d1-47ae-8231-0ab6db86f6f0"
}

Note in the above output the lines:

  "error": "Error processing task: json: cannot unmarshal string into Go struct field AnalyzeInput.sources 
  "status": "Error",

Armlet doesn't notice these or report it.

Please work with @fgimenez and fix. Thanks.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions