workload-discovery-on-aws
workload-discovery-on-aws copied to clipboard
Cannot export to draw.io. Browser console shows CORS error.
Describe the bug Nothing happens when I export to draw.io. Browser console shows CORS errors.
To Reproduce Steps to reproduce the behavior:
- Go to Actions -> Export -> Draw.io
- Nothing happens.
- Open browser console, and see CORS errors
Expected behavior
Diagram is exported to draw.io
Screenshots
Browser (please complete the following information):
- Name: chrome
- Version: 95.0.4638.69 (Official Build) (x86_64)
Additional context
Error from browser console:
Access to XMLHttpRequest at 'https://x3isczre30.execute-api.us-west-2.amazonaws.com/Prod//resources' from origin 'https://d1b7om70zj2v3b.cloudfront.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
...
x3isczre30.execute-api.us-west-2.amazonaws.com/Prod//resources:1 Failed to load resource: net::ERR_FAILED
Sorry for the delay getting back to you on this. Could you please take a look at the DrawIOExportFunction logs and see if there are any errors?
This may be related to this issue. We are working on a fix for this.
@thebutler12
I have the same error on v1.1.4
DrawIOExportFunction error log
[ERROR] TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
Traceback (most recent call last):
File "/var/task/main.py", line 178, in handler
xml_output = produce_xml_output(elements)
File "/var/task/main.py", line 216, in produce_xml_output
xml_object = elem.get_xml_object()
File "/var/task/main.py", line 99, in get_xml_object
'x': str(self.x),
File "/var/task/main.py", line 67, in x
children_points = list(
File "/var/task/main.py", line 68, in <lambda>
filter(None, map(lambda c: (c.center_x - 0.5*c.width), self.children)))
File "/var/task/main.py", line 54, in width
children_points = list(
File "/var/task/main.py", line 55, in <lambda>
filter(None, map(lambda c: (c.width*0.5 + c.center_x), self.children)))
File "/var/task/main.py", line 54, in width
children_points = list(
File "/var/task/main.py", line 55, in <lambda>
filter(None, map(lambda c: (c.width*0.5 + c.center_x), self.children)))
File "/var/task/main.py", line 54, in width
children_points = list(
File "/var/task/main.py", line 55, in <lambda>
filter(None, map(lambda c: (c.width*0.5 + c.center_x), self.children)))
This will be fixed in v2.1.0.
Addressed in v2.1.0