Skip to content
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

Download Button Unresponsive #131

Open
DavidSmith166 opened this issue Jun 18, 2018 · 5 comments
Open

Download Button Unresponsive #131

DavidSmith166 opened this issue Jun 18, 2018 · 5 comments
Labels
bug Something isn't working

Comments

@DavidSmith166
Copy link
Collaborator

MyEnvironment.txt
Click download nothing happens.
Probably due to special characters, not getting any output to console, may be because of my browser.

@DavidSmith166 DavidSmith166 added the bug Something isn't working label Jun 18, 2018
@DavidSmith166
Copy link
Collaborator Author

Tried in chrome, previous attempt was firefox.

Save file showed up this time, failed saying network error.

Console Output:
Failed to load resource: net::ERR_FILE_NOT_FOUND

@CalvinKrist
Copy link
Owner

On my computer using Chrome, it gives me "This site can’t be reached
The webpage at data:application/zip;base64,UEsDBAoAAAAAAGmV0kzGplGjoxMAAKMTAAAMAAAAZWFpZHV3Yi5qc29uewogICJidWlsZGVycyI6IFsKICAgIHsKICAgICAgIm91dHB1dF9ka " . . .. . (not included) . . . . "maWxlUEsBAhQACgAAAAAAaZXSTIYfgsurEwAAqxMAAAkAAAAAAAAAAAAAAAAAXEwAAGJ1aWxkLnBzMVBLAQIUAAoAAAAAAGmV0kzPy/V2hgAAAIYAAAAIAAAAAAAAAAAAAAAAAC5gAABidWlsZC5zaFBLBQYAAAAABwAHAJQBAADaYAAAAAA= might be temporarily down or it may have moved permanently to a new web address.
ERR_INVALID_URL"

The 'download' function at the end of build_boxes() seems to be trying to redirect to a URL do to the special characters. I should note, zip files generally look like the above text. The URL in the browser looks like this:
"data:application/zip;base64,UEsDBAoAAAAAAGmV0kzGplGjoxMAAKMTAA . . ." etc

@ION28
Copy link
Collaborator

ION28 commented Jun 19, 2018

Looked into the issue, and it seems all of the issues is from this box:

    "name": "clone_of_—",
    "platform": "linux_x32",
    "os_version": "ubuntu_1604_i386"
  },

if you remove that once you import, everything seems to work fine. I'm not sure the problem, perhaps it is with the character. It's definitely something with this entry though

@CalvinKrist
Copy link
Owner

I tried using a blob as shown here, and it did not work. It redirected to data:application/zip;base64,[object Blob].

Code:
download("data:application/zip;base64," + new Blob([content], {type: 'text/plain'}), "boxes.zip", "application/zip");

@CalvinKrist
Copy link
Owner

More experimentatoin indicates hat any VM name with this character (-), the hyphon, breaks the box. It does not seem to matter if the character is at the start, the middle, or the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants