-
Notifications
You must be signed in to change notification settings - Fork 259
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
Getting 500 error for GET /graph.json #43
Comments
I'm getting the same error, any update on this?
|
Maybe we can narrow down the line # where the error is encountered (the line # given above isn't accurate). Several reports of this recently, so I may try to improve the error output. Presumes pyhcl is installed: pip3 install pyhcl Then from a script or python shell: from glob import iglob
import hcl
for filename in iglob('**.tf'):
with open(filename, 'r') as f:
print(filename)
hcl.loads(f.read()) |
@28mm Excuse my python noobness i'm getting
cat script.py
./script.py
System details
|
python 2.7 doesn't have access to the
|
@28mm Cool. that worked.
|
I was expecting the parser to raise an exception while parsing one of those files. That plainly didn't happen. Does this code reference any external modules? Also, if this configuration isn't sensitive, I'd be happy to troubleshoot on my system. My email is patrick.mcmurchie@gmail.com, if you are able to make a copy available to me. |
@28mm Ahh, this does seem related to a certain tf config. I tested blast-radius with a simple tf config and it's working fine. Unfortunately I can't share the config. Here is a provider output and attached a copy from
|
@28mm Blast Radius getting some air time! Nice! |
Hi! I ran into the same problem just now, eventually I found that changing |
…8mm#71: work around pyhcl virtuald/pyhcl#55: pyhcl doesn't support terraform v0.12 Resolve this temporarily by using the go library `hcl2json` which allows colorization and rendering to still work. JSON references don't appear to work, but the package is still usable. Add pipenv support and update documentation and Makefile to support the external go package.
I've noticed this happening on Terraform 0.12 code, which has unquoted variables as @tim-steinkuhler mentioned. It renders the graph but there are no colors and you can't drag it around. |
I'm getting this issue as well. I read through the comments, but still could not get it to work. @filiy what did you change in your config for it to work? |
my errors, [2020-05-13 16:08:58,561] ERROR in app: Exception on /graph.json [GET] |
Hello, my infra graph is displaying properly with the CSV but I get this error for the graph.json endpoint. Here is the command I am running.
blast-radius --port 3000 --serve --module-depth 3
The text was updated successfully, but these errors were encountered: