• Announcements

    • Shane D.

      Evernote Webinars   12/01/2017

      We've recently begun conducting Evernote Webinars for various topics and subjects. Take a look at the Calendar to check them out, and see if they interest you! Keep an eye out as there will be more to come in the future!
    • Shane D.

      Evernote 2018 Planning Templates   12/11/2017

      The Evernote 2018 Planning Templates are now available! You can find them Here!  
joeworkman

safari Console errors with web clipper

Recommended Posts

I am a web developer and am constantly in the console troubleshooting things. It drive me CRAZY that the web clipper ships with a ton of console errors that come up on every webpage. Please fix it. 

post-126537-0-46159600-1385147084_thumb.

  • Like 1

Share this post


Link to post

I am getting the same errors in my console as @joeworkman

 

[Error] Failed to load resource: the server responded with a status of 404 () (messages.json, line 0)
[Error] Failed to load resource: The file “messages.json” couldn’t be opened because there is no such file. (messages.json, line 0)

 

Safari Version 7.0 (9537.71) and Evernote Clipper 6.0.6

 

Disabling other extensions has no effect.

Share this post


Link to post

We're looking into a fix for this. The bug is in a 3d party library so it may take some time for us to release a fix for this unfortunately. 

Share this post


Link to post

I'm in the same boat as @joeworkman.  I'm a developer, and this is driving me nuts.   I literally have to disable the plugin every time I need to work and then re-enable it to use the clipper.  Huge PITA.  Not cool.  

Please fix it soon.

Share this post


Link to post

Could be that a server isn't serving the .json MIME-type. Had a similar problem with a server of mine recently. Simple fix to a frustrating problem!

Share this post


Link to post

Same here. It's not only very irritating but slows down web page loading and development especially when debugging things ...

A refactoring regarding developers would be much appreciated!

Share this post


Link to post

I have the same problem. I use safari for development. Those messages are driving me nuts! It's flooding my own logs. 

 

I just tried the latest build, it doesn't seem to fix the bug.

Share this post


Link to post

Hi all,

We have a new beta which aims to reduce the amount of errors logged in the console. Appreciate if you have time to test it and let me know if the improvements are good. 

Get the build here: 

https://www.evernote.com/shard/s13/sh/b8c696b8-c8c2-46ea-8715-fbbcb808743d/d3822b24c27e1b8b959dddbabd149553

 

@jbignert

 

Thanks for the beta.  I just tried it using the provided instructions and I'm still getting errors in the log.   I did restart Safari after installing the beta plugin.  

 

EvernoteErrors.png

 

Share this post


Link to post

As of version 6.9.4 - I see this is still not fixed.

So f I want to use Safari during development and not have a console full of evernote-related errors, the only option for me is to remove the web clipper extension?

  • Like 1

Share this post


Link to post

Same problem here:

[Error] XMLHttpRequest cannot load safari-extension://com.evernote.safari.clipper-Q79WDW8YH9/70a9eaa7/_locales/de_ch/messages.json. Cross origin requests are only supported for HTTP.
    a (port.js:2:2919)
    _getL10nData (port.js:2:3802)
    getMessage (port.js:2:3972)
    getExtensionID (Browser.js:2:109)
    initBrowser (Browser.js:2:758)
    Globaler Code (Browser.js:2:8675)

I have to uninstall the extension :-(

  • Like 1

Share this post


Link to post

I still get masses of console errors too. Only thing to do is uninstall the clipper it seems..

155XMLHttpRequest cannot load safari-extension://com.evernote.safari.clipper-Q79WDW8YH9/1ab3e677/_locales/en/messages.json. Cross origin requests are only supported for HTTP.

 

  • Like 1

Share this post


Link to post

I'm re-evaluating Evernote after a hiatus of several years. I was really impressed with everything until I noticed this issue today. These errors are a total deal breaker.

I'm also a little concerned about trusting a company with my private data that lets such a glaring bug fester for 3.5 years. Seriously. This thread was started in 2013! I really don't care if it's a third party library issue - it could have been re-written several times from scratch in that period. 

I guess Evernote wants to push people back into the Google ecosystem. If I'm forced to use their browser, I might as well use the rest of their tools. Too bad.

Share this post


Link to post

I think I've found the issue: I've checked on my Safari (and Chrome) that 

navigator.language

returns "en-US", which after the transform turns into "en_US".

The problem is that under "_locales" there is only "en" (and other languages) but no "en_US".

So as far as a quick fix, you guys can either rename/copy "en" into "en_US". That wouldn't require changing the script itself. Of course a more permanent solution would be to fix the script.

Note to the Evernote Web Clip Team: don't ignore this thread. I feel like this is a issue that have been dogging Safari users for a while. Thanks for the help.

  • Like 5

Share this post


Link to post
On 6/5/2017 at 11:30 AM, Rodrigo Passos said:

I think I've found the issue: I've checked on my Safari (and Chrome) that 


navigator.language

returns "en-US", which after the transform turns into "en_US".

The problem is that under "_locales" there is only "en" (and other languages) but no "en_US".

So as far as a quick fix, you guys can either rename/copy "en" into "en_US". That wouldn't require changing the script itself. Of course a more permanent solution would be to fix the script.

Note to the Evernote Web Clip Team: don't ignore this thread. I feel like this is a issue that have been dogging Safari users for a while. Thanks for the help.

How od you 'rename/copy "en" into "en_US"'?

Share this post


Link to post

I found the /_locales/ directory in the following location:

~/Library/Caches/com.apple.Safari/Extensions/Evernote Web Clipper.safariextension/_locales

--

Seems we're discussing two separate error messages in this thread... I'm not a programmer, so I've not a solid understanding of how they are connected:

#1: the error related to the language localization (original post by joeworkman)
#2: the error related to cross origin requests (added by Tschügge)

For me, duplicating the /en/ directory and renaming /en_US/ seems to work as a hack for removing the console log Errors in #1 (thanks Rodrigo Passos!).

After creating the /en_US/ directory, I then began receiving console log Warnings from BOTH /en/messages.json and /en_US/messages.json regarding insecure content.

These insecure content errors seem to trace back to a file named "port.js" and specifically to Line 152, which seems to be involved in a variable named "c" as defined:

var c = new XMLHttpRequest;

As jbignert noted, the port.js file is indeed located in the /third_party/ directory... however, the first line of port.js reads:

/*! Copyright 2009-2017 Evernote Corporation. All rights reserved. */

FWIW, a second file named jsonrpc.js located in /third_party/ also includes the above copyright notice.

 

pic-console-port-js-line-152.png

pic-insecure-content-warning.png

pic-jsonrpc-js.png

pic-port-js.png

pic-third-party-extensions.png

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now