locked
When I start my site I have this error: Failure to load a file RRS feed

  • Question

  • When I start my site, I have this error:

    GET http://localhost:3000/locale/locale.properties 404 (Not Found)xhrLoadText @ l10n.js:128parseResource @ l10n.js:257L10nResourceLink.load @ l10n.js:350loadLocale @ l10n.js:363document.webL10n.undefined.setLanguage @ l10n.js:997webViewerInitialized @ viewer.js:7081

    But I have this file in my project locale/locale.properties And I don't know because I have error yet.

    Below the javascript file where there is a error.

    function xhrLoadText(url, onSuccess, onFailure) {
        onSuccess = onSuccess || function _onSuccess(data) {};
        onFailure = onFailure || function _onFailure() {
          console.warn(url + ' not found.');
        };
    
        var xhr = new XMLHttpRequest();
        xhr.open('GET', url, gAsyncResourceLoading);
        if (xhr.overrideMimeType) {
          xhr.overrideMimeType('text/plain; charset=utf-8');
        }
        xhr.onreadystatechange = function() {
          if (xhr.readyState == 4) {
            if (xhr.status == 200 || xhr.status === 0) {
              onSuccess(xhr.responseText);
            } else {
              onFailure();
            }
          }
        };
        xhr.onerror = onFailure;
        xhr.ontimeout = onFailure;
    
        // in Firefox OS with the app:// protocol, trying to XHR a non-existing
        // URL will raise an exception here -- hence this ugly try...catch.
        try {
          xhr.send(null); **//Here is the error on Browser**
        } catch (e) {
          onFailure();
        }
      }
    Monday, October 26, 2015 5:24 PM

Answers

  • I put the mime type on IIS and worked. Solved. For locale.properties I did:

    text/plain - .properties on the IIS container(Mime Type).


    • Edited by pnet Monday, October 26, 2015 6:19 PM
    • Marked as answer by pnet Tuesday, October 27, 2015 10:04 AM
    Monday, October 26, 2015 6:16 PM

All replies

  • I put the mime type on IIS and worked. Solved. For locale.properties I did:

    text/plain - .properties on the IIS container(Mime Type).


    • Edited by pnet Monday, October 26, 2015 6:19 PM
    • Marked as answer by pnet Tuesday, October 27, 2015 10:04 AM
    Monday, October 26, 2015 6:16 PM
  • Hi Pnet,

    Glad to hear you have worked it out, and thanks for sharing your solution here.

    Best regards,

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, November 2, 2015 3:27 AM