Git Product home page Git Product logo

Comments (10)

ljfranklin avatar ljfranklin commented on July 26, 2024

@divyabhargov I have never seen that error. Is this during a put to the terraform resource? Could you attach a screenshot?

from terraform-resource.

divyabhargov avatar divyabhargov commented on July 26, 2024

Here are some screenshots when the error occurs:
screen1
screen2

from terraform-resource.

ljfranklin avatar ljfranklin commented on July 26, 2024

@divyabhargov this is a weird one, still looking into it. Started a convo with the Concourse team here: https://concourseci.slack.com/archives/C07RY25QF/p1510072021000782. Seems like something is printing to Stdout that shouldn't be but I can't find where that would be happening.

Couple questions:

  • Are you using ljfranklin/terraform-resource:latest or some other image?
  • Are you using an S3-compatible storage with a custom endpoint or AWS S3?
  • Any other things that are unique about your Terraform templates or terraform-resource config?

from terraform-resource.

Seraf avatar Seraf commented on July 26, 2024

Hello, we already had a random fail with this error also :)

We are using the latest terraform resource, with a S3 endpoint. First time we had this problem, and weren't able to reproduce it.

from terraform-resource.

ljfranklin avatar ljfranklin commented on July 26, 2024

Good grief, I just looked through all my old builds and this has happened to me 2 times out of 100+ builds. I'll try to add some debug logging to a custom image and run it in a loop or something.

from terraform-resource.

ljfranklin avatar ljfranklin commented on July 26, 2024

Still struggling to reproduce this. Latest finding is that the "invalid character '/' after top-level value" is reproducible in isolation if you try to unmarshal a log time stamp as JSON, e.g. log.Println will print 2017/11/08 16:39:08 .... Concourse tries to unmarshal everything written to Stdout as a JSON response which is where the error is getting raised. So somewhere in the code there's a log statement that is going to Stdout. But I can't find it, maybe it is buried in some dependency.

from terraform-resource.

ljfranklin avatar ljfranklin commented on July 26, 2024

This was fun. I copied stdout to stderr in a test image and ran the job in a loop all day. On run number 422 I finally got the log message: 2017/11/08 21:48:35 Request body type has been overwritten. May cause race conditions. Looks like this was an issue fixed on the aws SDK: aws/aws-sdk-go#868. I'll push a fix in a bit to bump the AWS SDK and nil out its logger.

from terraform-resource.

divyabhargov avatar divyabhargov commented on July 26, 2024

Thank you so much. This is exciting

from terraform-resource.

dotyjim-work avatar dotyjim-work commented on July 26, 2024

Thanks for taking a look at this, and tracking it all the way down.

from terraform-resource.

hubertgrzeskowiak avatar hubertgrzeskowiak commented on July 26, 2024

I just had this error and it showed up every time I ran a plan at random points of the plan. It complained about a seemingly random character (sometimes alphanumerics, sometimes slashes).

I found out I had a custom module instantiation with a parameter the module didn't define. After fixing this error, I did not get any more of these cryptic Terraform errors.

from terraform-resource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.