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

Navigating to a JSON file causes error in console #2759

Closed
coverbeck opened this issue Aug 15, 2019 · 4 comments
Closed

Navigating to a JSON file causes error in console #2759

coverbeck opened this issue Aug 15, 2019 · 4 comments
Assignees
Labels
bug enhancement review merged but pending a third party look at whether it makes sense/is working
Milestone

Comments

@coverbeck
Copy link
Contributor

coverbeck commented Aug 15, 2019

Bug Report

If you navigate to a JSON file you'll see an error in the browser's console:

Loading script from “https://dockstore.org/worker-json.js” with importScripts() was blocked because of a disallowed MIME type (“text/html”).

This happens on both production and staging.

I think the ACE editor is making this request. See this issue

Steps to Reproduce

  1. Open browser tools
  2. Navigate to https://dockstore.org/containers/quay.io/pancancer/pcawg-dkfz-workflow:2.2.0?tab=files
  3. See error in console

┆Issue is synchronized with this Jira Story
┆fixVersions: Dockstore 1.7
┆friendlyId: DOCK-906
┆sprint: Backlog
┆taskType: Story

@denis-yuen
Copy link
Member

@coverbeck if I understand correctly, there are no ill side-effects aside from the error message?

@coverbeck
Copy link
Contributor Author

@coverbeck if I understand correctly, there are no ill side-effects aside from the error message?

I see nothing obvious, but it's possible there is some feature/functionality missing that I'm unaware of.

@denis-yuen denis-yuen modified the milestones: 1.8.0, 1.7.x Aug 30, 2019
@garyluu
Copy link
Contributor

garyluu commented Sep 5, 2019

Doesn't happen locally, likely CDN-related issue. Refused to execute script from 'https://staging.dockstore.org/worker-json.js' because its MIME type ('text/html') is not executable. because the link is supposed to be https://gui.dockstore.org/2.4.0-rc.0-4930df6/worker-json.js instead

@denis-yuen denis-yuen modified the milestones: 1.7.x, 1.7.0 Sep 10, 2019
@denis-yuen denis-yuen added the review merged but pending a third party look at whether it makes sense/is working label Sep 10, 2019
@denis-yuen
Copy link
Member

Doesn't seem present on staging

API - 1.7.0-rc.1 
UI - 2.4.0-rc.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug enhancement review merged but pending a third party look at whether it makes sense/is working
Projects
None yet
Development

No branches or pull requests

3 participants