JavaScript JavaScript Basics Introducing JavaScript The Console Challenge Answer

Stephen Todd
Stephen Todd
1,826 Points

My Console is not working

My console is only displaying tons of Errors and Warnings. This is gonna be a lot but bear with me.

workspace-editor-5d752f8….js:576 Cannot register file extension "txt" for Subtitles, it already belongs to Text d.addFileExtension @ workspace-editor-5d752f8….js:576 2fs-sn2npaetcv.treehouse-app.com/ping Failed to load resource: the server responded with a status of 400 (Bad Request) 26618712:1 XMLHttpRequest cannot load https://fs-sn2npaetcv.treehouse-app.com/ping. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://teamtreehouse.com' is therefore not allowed access. The response had HTTP status code 400. 2fs-sn2npaetcv.treehouse-app.com/ping Failed to load resource: the server responded with a status of 400 (Bad Request) 26618712:1 XMLHttpRequest cannot load https://fs-sn2npaetcv.treehouse-app.com/ping. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://teamtreehouse.com' is therefore not allowed access. The response had HTTP status code 400. 2fs-sn2npaetcv.treehouse-app.com/ping Failed to load resource: the server responded with a status of 502 (Bad Gateway) 26618712:1 XMLHttpRequest cannot load https://fs-sn2npaetcv.treehouse-app.com/ping. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://teamtreehouse.com' is therefore not allowed access. The response had HTTP status code 502. 2fs-sn2npaetcv.treehouse-app.com/ping Failed to load resource: the server responded with a status of 502 (Bad Gateway) 26618712:1 XMLHttpRequest cannot load https://fs-sn2npaetcv.treehouse-app.com/ping. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://teamtreehouse.com' is therefore not allowed access. The response had HTTP status code 502. static.teamtreehouse.com/assets/workspaces/workspace-editor-5d752f8329b7a93fe78d49281eefdd7f.js:422 StringUtils.htmlEscape is deprecated. Use _.escape instead. r @ static.teamtreehouse.com/assets/workspaces/workspace-editor-5d752f8329b7a93fe78d49281eefdd7f.js:422 static.teamtreehouse.com/assets/workspaces/workspace-editor-5d752f8329b7a93fe78d49281eefdd7f.js:790 addMenuItem(): missing required parameters: command p.addMenuItem @ static.teamtreehouse.com/assets/workspaces/workspace-editor-5d752f8329b7a93fe78d49281eefdd7f.js:790 3static.teamtreehouse.com/assets/workspaces/workspace-editor-5d752f8329b7a93fe78d49281eefdd7f.js:422 StringUtils.htmlEscape is deprecated. Use _.escape instead. r @ static.teamtreehouse.com/assets/workspaces/workspace-editor-5d752f8329b7a93fe78d49281eefdd7f.js:422 static.teamtreehouse.com/assets/workspaces/workspace-editor-5d752f8329b7a93fe78d49281eefdd7f.js:702 Deprecated: resizable panels should be created via PanelManager.createBottomPanel(). Using Resizer directly will stop working in the future. Element: init(1) s @ static.teamtreehouse.com/assets/workspaces/workspace-editor-5d752f8329b7a93fe78d49281eefdd7f.js:702 49static.teamtreehouse.com/assets/workspaces/workspace-editor-5d752f8329b7a93fe78d49281eefdd7f.js:422 StringUtils.htmlEscape is deprecated. Use _.escape instead. r @ static.teamtreehouse.com/assets/workspaces/workspace-editor-5d752f8329b7a93fe78d49281eefdd7f.js:422

Tatiana Perry
Tatiana Perry
17,108 Points

I had a similar issue, did you turn off any ad-blockers and plugins?

2 Answers

Stephen Todd
Stephen Todd
1,826 Points

No plugin or ad blocker is enabled.

Joel Kraft
STAFF
Joel Kraft
Treehouse Guest Teacher

Stephen Todd,

There are two browser windows you'll have open to work on this challenge. One window will hold the workspace itself, and the other will open when you click on the "eye" icon in the upper right-hand corner of the workspace. That second browser window is the one where you'll want to view the console. The output you pasted above appears to be from a console opened from the workspace itself. You can safely ignore that console.

You're opening a console from the correct window if you see only the text "Can you get the JavaScript to work?".

Hope this helps! Joel