Map Files Cornerstone Error 400 Codes

“Multiple web server 400 error codes from
same source ip.”
Portion of the log(s):

81.92.203.119 - - [02/Oct/2018:16:08:29 +0100] "GET
 /wp-content/themes/x/framework/dist/js/site/x.js.map HTTP/2.0" 404 26162 "-" "Mozilla/5.0
 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:29 +0100] "GET
 /wp-content/plugins/cornerstone/assets/dist/js/site/cs-head.js.map HTTP/2.0" 404 26166 "-"
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like
 Gecko) Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:26 +0100] "GET
 /wp-content/themes/x/framework/dist/js/site/x.js.map HTTP/2.0" 404 26162 "-" "Mozilla/5.0
 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:26 +0100] "GET
 /wp-content/plugins/cornerstone/assets/dist/js/site/cs-body.js.map HTTP/2.0" 404 26161 "-"
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like
 Gecko) Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:26 +0100] "GET
 /wp-content/plugins/cornerstone/assets/dist/js/site/cs-head.js.map HTTP/2.0" 404 26166 "-"
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like
 Gecko) Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:19 +0100] "GET
 /wp-content/plugins/cornerstone/assets/dist/js/site/cs-body.js.map HTTP/2.0" 404 26161 "-"
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like
 Gecko) Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:19 +0100] "GET
 /wp-content/themes/x/framework/dist/js/site/x.js.map HTTP/2.0" 404 26162 "-" "Mozilla/5.0
 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:19 +0100] "GET
 /wp-content/plugins/cornerstone/assets/dist/js/site/cs-head.js.map HTTP/2.0" 404 26166 "-"
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like
 Gecko) Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:17 +0100] "GET
 /wp-content/themes/x/framework/dist/js/site/x.js.map HTTP/2.0" 404 26162 "-" "Mozilla/5.0
 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:17 +0100] "GET
 /wp-content/plugins/cornerstone/assets/dist/js/site/cs-body.js.map HTTP/2.0" 404 26161 "-"
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like
 Gecko) Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:17 +0100] "GET
 /wp-content/plugins/cornerstone/assets/dist/js/site/cs-head.js.map HTTP/2.0" 404 26170 "-"
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like
 Gecko) Chrome/69.0.3497.100 Safari/537.36"
81.92.203.119 - - [02/Oct/2018:16:08:05 +0100] "GET
 /wp-content/plugins/cornerstone/assets/dist/js/site/cs-body.js.map HTTP/2.0" 404 26161 "-"
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like
 Gecko) Chrome/69.0.3497.100 Safari/537.36"

I am constantly getting these error messages for map files when I am developing. Is there a fix for this as it is really annoying and my IP gets blocked by the server? I don’t want to simply ignore this. I would like a fix.

thanks
Andreas

Hello @neodjandre,

Thanks for asking. :slight_smile:

I checked the error log message you have shared. Please note that there is no file called x.js.map. Error message you are getting is specifically in Safari and I believe you are working while the Safari Dev tools is opened as in Safari x.js.map is triggered only when Safari Dev Tools is opened. You do have x.js file under /themes/x/framework/dist/js/site/ and that file is only for debugging purposes that only our developers have accessed too. Having said that, it can’t be deactivated in Safari.

IP getting blocked is not related with the error message you are getting. You can ignore the error message. However, if you hosting provider is recording the same you do have the option to disable maps file getting logged. For this it’s best to have a word with your hosting provider to get more clarity and how you can disable the same.

Thanks.

Hello Prasant, would it not just be easier if you create these map files for X theme, so that developers dont get these errors?

The errors happen both in Chrome and Safari and are only for Cornerstone and X theme.

Hi There @neodjandre

Thanks for writing in! Those errors are just missing source-maps. They are requested by developer tools (especially in Safari) when possible, but won’t interfere with anything.
Basically it’s a way to map a combined/minified file back to an unbuilt state. When you build for production, along with minifying and combining your JavaScript files, you generate a source map which holds information about your original files. When you query a certain line and column number in your generated JavaScript you can do a lookup in the source map which returns the original location.

So, basically you can ignore those errors. Please check out this link for more information (https://stackoverflow.com/questions/19550060/how-do-i-toggle-source-mapping-in-safari-7/19823890#19823890).

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.