Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

issue rendering json

See original GitHub issue

Currently getting the following version using terraform 12.18

The hardcoded 12.12 version is affected by a git bug that prevents modules from working.

I am running the following in a docker container


FROM hashicorp/terraform:$TF_VERSION AS terraform

FROM python:$PYTHON_VERSION-alpine
RUN pip install -U pip ply \
 && apk add --update --no-cache graphviz ttf-freefont

COPY --from=terraform /bin/terraform /bin/terraform
COPY ./ /bin/
RUN chmod +x /bin/

COPY . .
RUN pip install -e .


ENTRYPOINT ["/bin/"]
CMD ["blast-radius", "--serve"]

Getting an error 500 in chrome and firefox visiting the site.

I did try and upgrade all the python libraries. Could you point me in a good direction? seems like the json parsing isn’t right.

* Serving Flask app "blastradius.server.server" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on (Press CTRL+C to quit) - - [19/Jan/2020 17:35:13] "GET / HTTP/1.1" 200 - - - [19/Jan/2020 17:35:21] "GET /graph.svg HTTP/1.1" 200 -
[2020-01-19 17:35:27,651] ERROR in app: Exception on /graph.json [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/flask/", line 2311, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.7/site-packages/flask/", line 1834, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.7/site-packages/flask/", line 1737, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.7/site-packages/flask/", line 36, in reraise
    raise value
  File "/usr/local/lib/python3.7/site-packages/flask/", line 1832, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.7/site-packages/flask/", line 1818, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/src/blastradius/server/", line 61, in graph_json
    tf = Terraform(os.getcwd())
  File "/src/blastradius/handlers/", line 26, in __init__
    self.config = hcl.load(config_io)
  File "/usr/local/lib/python3.7/site-packages/hcl/", line 54, in load
    return loads(
  File "/usr/local/lib/python3.7/site-packages/hcl/", line 66, in loads
    return HclParser().parse(s)
  File "/usr/local/lib/python3.7/site-packages/hcl/", line 326, in parse
    return self.yacc.parse(s, lexer=Lexer())
  File "/usr/local/lib/python3.7/site-packages/ply/", line 333, in parse
    return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
  File "/usr/local/lib/python3.7/site-packages/ply/", line 1201, in parseopt_notrack
    tok = call_errorfunc(self.errorfunc, errtoken, self)
  File "/usr/local/lib/python3.7/site-packages/ply/", line 192, in call_errorfunc
    r = errorfunc(token)
  File "/usr/local/lib/python3.7/site-packages/hcl/", line 318, in p_error
    raise ValueError(msg)
ValueError: Line 10, column 216: unexpected IDENTIFIER - - [19/Jan/2020 17:35:27] "GET /graph.json HTTP/1.1" 500 -

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:16
  • Comments:7

github_iconTop GitHub Comments

neil-wwtcommented, Jun 9, 2020

Just piling on. Also got this error. This tool is exactly what I am looking for, so I’ll poke around a little bit.

Are PRs welcome if it’s an easy fix?

mfriedman1-chwycommented, Mar 2, 2020

same here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with 1st render of async local JSON data - Stack Overflow
I'm having an issue when it comes to rendering some data out in my React app. I have a page /users that renders...
Read more >
Load and Render JSON Data into React Components
It's time to update our <App> component because we need to render JSON data into our components. So head to the src/App.js file...
Read more >
Problems when rendering .json-driven project in media encoder
When I render directly in AE it works like a charm. I get my data from a . json-file. Linked the source text...
Read more >
Failing to render JSON files #1479 - 11ty/eleventy - GitHub
Describe the bug. When I set up a Nunjucks template to generate a JSON file (using a permalink ending in ".json"), all I...
Read more >
Rendering to JSON | ActiveReports 15 .NET Edition - GrapeCity
JavaScript Object Notation (JSON) is a text-based data format in which the data is stored in the hierarchical form. You can use the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found