Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"unexplained jq failure" occurring non-deterministically #6

Closed
estroz opened this issue Jul 18, 2017 · 1 comment
Closed

"unexplained jq failure" occurring non-deterministically #6

estroz opened this issue Jul 18, 2017 · 1 comment

Comments

@estroz
Copy link

estroz commented Jul 18, 2017

Bug report

I am using jqpipe-go to evaluate jq syntax expressions on JSON data. Every time I ingest a large volume of JSON data using my program and evaluate a syntax expression (stored in a config file), jqpipe-go.Eval() will return "unexplained jq failure" errors in a non-deterministic manner. These errors are not related to what the JSON data contains, because they'll occur when running my program on static tests.

Example expression:
"{createdBy: .userIdentity.arn}"

Example JSON object:

{
  "eventVersion": "1.04",
  "userIdentity": {
    "type": "IAMUser",
    "principalId": "EXAMPLEFW34KYSCWPHAXX",
    "arn": "arn:aws:iam::123456789101:user/test-user",
    "accountId": "123456789101",
    "userName": "test-user"
  },
  "eventTime": "2017-06-01T14:39:35Z",
  "eventSource": "s3.amazonaws.com",
  "eventName": "CreateBucket",
  "awsRegion": "us-west-2",
  "sourceIPAddress": "12.34.56.78",
  "userAgent": "[aws-sdk-go/1.8.25 (go1.8.1; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.9.6-dev]",
  "requestParameters": {
    "CreateBucketConfiguration": {
      "LocationConstraint": "us-west-2"
    },
    "bucketName": "aaws-pr-751",
    "x-amz-acl": ["private"]
  },
  "responseElements": null,
  "requestID": "example",
  "eventID": "example-bdf8-4cfb-9241-ae263f85c203",
  "eventType": "AwsApiCall",
  "recipientAccountId": "123456789101"
}

Do you have any insight into why I'm seeing non-deterministic errors? The full program can be found here.

@estroz
Copy link
Author

estroz commented Jul 18, 2017

Relates to #3

@estroz estroz closed this as completed Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant