-
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
Error fetching terraform module in blast-radius #85
Comments
I have the same issue, guessing it'll be a tf0.13 issue |
Same issue, terraform 0.13.5 |
I have it with |
I have the issue with Terraform v0.15.3 |
I have a same issue with 0.13.6 :( So sad I just found this great project which may help me visualizing Terraform graph. |
Same error.
|
Same here on v1.0.4:
|
I have the issue with Terraform v0.15.5 |
same issue with terraform v1.2.9
|
Not sure if this will help, but you can try using my version of Blast Radius which I've tried to increase compatibility for. Source Code: Installation:
|
got error like this
|
Do you happen to know if you're using HCL or HCL2? |
another finding, it will work without any issue if there are no modules imported. @Ianyliu |
Hi @xiaopeng163, It should resolve the problems for remote modules The changes are on my dev branch, so to install it you would have to put: If you use Docker and would like me to create a dev or testing image, please let me know as well |
@Ianyliu seems working with the remote module, for example
but to be honest, this is not readable, seems it shows all resources defined in the module? btw, the code still doesn't work for local modules like:
|
@xiaopeng163 Could you describe the problem in more detail? I don't really have any experience using local modules in Terraform. |
I am trying to create a graph using blast-radius but it's throwing below error, can anyone please help me.
I think it's unable to fetch terraform module.
Thank you
` * Serving Flask app "blastradius.server.server" (lazy loading)
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/js/jquery.slim.min.js HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/js/bootstrap.min.js HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/js/d3.v4.js HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/js/fontawesome-all.min.js HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/js/blast-radius.js HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/js/d3-tip.js HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/js/categories.js HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/js/selectize.js HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/css/bootstrap.min.css HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/css/selectize.css HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/js/svg-pan-zoom.js HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /static/css/style.css HTTP/1.1" 200 -
127.0.0.1 - - [02/Sep/2020 15:56:46] "GET /favicon.ico HTTP/1.1" 404 -
[2020-09-02 15:56:53,479] ERROR in app: Exception on /graph.svg [GET]
Traceback (most recent call last):
File "/home/harsh896/.local/lib/python3.8/site-packages/blastradius/handlers/dot.py", line 455, in _module
return m.groupdict()['module']
AttributeError: 'NoneType' object has no attribute 'groupdict'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/harsh896/.local/lib/python3.8/site-packages/blastradius/server/server.py", line 36, in graph_svg
dot = DotGraph('', file_contents=run_tf_graph())
File "/home/harsh896/.local/lib/python3.8/site-packages/blastradius/handlers/dot.py", line 56, in init
self.nodes.append(DotNode(e.target))
File "/home/harsh896/.local/lib/python3.8/site-packages/blastradius/handlers/dot.py", line 415, in init
self.module = DotNode._module(self.label) # for module groupings. 'root' or 'module.foo.module.bar'
File "/home/harsh896/.local/lib/python3.8/site-packages/blastradius/handlers/dot.py", line 457, in _module
raise Exception("None: ", label)
Exception: ('None: ', '[root] module.services (close)')
127.0.0.1 - - [02/Sep/2020 15:56:53] "GET /graph.svg HTTP/1.1" 500 -
`
The text was updated successfully, but these errors were encountered: