user3239126
user3239126

Reputation:

json file not accessible on web server

If I save the following Valid JSON on a web server as jsonfile.json and try to access it then I get HTTP 404 error. However, if I do the same thing for another file which has xml document in it , it works fine.

[
    {
        "date": "2014-01-01",
        "unique_open": {
            "Webmail": 3307,
            "Phone": 2068,
            "Other": 358,
            "Tablet": 808,
            "Desktop": 550
        },
        "open": {
            "Webmail": 6779,
            "Phone": 4940,
            "Other": 1247,
            "Tablet": 2361,
            "Desktop": 1540
        }
    },
    {
        "date": "2014-01-02",
        "unique_open": {
            "Webmail": 14606,
            "Phone": 17073,
            "Other": 1493,
            "Tablet": 3171,
            "Desktop": 2299
        },
        "open": {
            "Webmail": 22619,
            "Phone": 26253,
            "Other": 3559,
            "Tablet": 5602,
            "Desktop": 4973
        }
    },
    {
        "date": "2014-01-03",
        "unique_open": {
            "Webmail": 10573,
            "Phone": 12041,
            "Other": 2317,
            "Tablet": 2468,
            "Desktop": 1789
        },
        "open": {
            "Webmail": 18442,
            "Phone": 21207,
            "Other": 4726,
            "Tablet": 5132,
            "Desktop": 4258
        }
    },
    {
        "date": "2014-01-04",
        "unique_open": {
            "Webmail": 5986,
            "Phone": 7839,
            "Other": 2202,
            "Tablet": 1855,
            "Desktop": 1088
        },
        "open": {
            "Webmail": 11154,
            "Phone": 13900,
            "Other": 4153,
            "Tablet": 4087,
            "Desktop": 2748
        }
    },
    {
        "date": "2014-01-05",
        "unique_open": {
            "Webmail": 4456,
            "Phone": 5523,
            "Other": 1518,
            "Tablet": 1439,
            "Desktop": 792
        },
        "open": {
            "Webmail": 8430,
            "Phone": 10503,
            "Other": 2983,
            "Tablet": 3410,
            "Desktop": 2252
        }
    },
    {
        "date": "2014-01-06",
        "unique_open": {
            "Webmail": 9526,
            "Phone": 11222,
            "Other": 3296,
            "Tablet": 2377,
            "Desktop": 2132
        },
        "open": {
            "Webmail": 15944,
            "Phone": 18774,
            "Other": 5917,
            "Tablet": 4875,
            "Desktop": 5040
        }
    },
    {
        "date": "2014-01-07",
        "unique_open": {
            "Webmail": 9246,
            "Phone": 11023,
            "Other": 2951,
            "Tablet": 2178,
            "Desktop": 1828
        },
        "open": {
            "Webmail": 15490,
            "Phone": 18237,
            "Other": 5476,
            "Tablet": 4738,
            "Desktop": 4484
        }
    },
    {
        "date": "2014-01-08",
        "unique_open": {
            "Webmail": 7706,
            "Phone": 8322,
            "Other": 2624,
            "Tablet": 1838,
            "Desktop": 1640
        },
        "open": {
            "Webmail": 13760,
            "Phone": 15025,
            "Other": 5287,
            "Tablet": 3997,
            "Desktop": 4301
        }
    },
    {
        "date": "2014-01-09",
        "unique_open": {
            "Webmail": 7625,
            "Phone": 8778,
            "Other": 2728,
            "Tablet": 1753,
            "Desktop": 1620
        },
        "open": {
            "Webmail": 13444,
            "Phone": 15314,
            "Other": 5023,
            "Tablet": 3730,
            "Desktop": 4090
        }
    },
    {
        "date": "2014-01-10",
        "unique_open": {
            "Webmail": 7366,
            "Phone": 8658,
            "Other": 2617,
            "Tablet": 1729,
            "Desktop": 1520
        },
        "open": {
            "Webmail": 12458,
            "Phone": 15166,
            "Other": 4963,
            "Tablet": 3769,
            "Desktop": 3775
        }
    },
    {
        "date": "2014-01-11",
        "unique_open": {
            "Webmail": 6375,
            "Phone": 7767,
            "Other": 2196,
            "Tablet": 1762,
            "Desktop": 1021
        },
        "open": {
            "Webmail": 10879,
            "Phone": 12988,
            "Other": 4145,
            "Tablet": 3898,
            "Desktop": 2396
        }
    },
    {
        "date": "2014-01-12",
        "unique_open": {
            "Webmail": 3369,
            "Phone": 2782,
            "Other": 1169,
            "Tablet": 928,
            "Desktop": 630
        },
        "open": {
            "Webmail": 6589,
            "Phone": 6138,
            "Other": 2551,
            "Tablet": 2413,
            "Desktop": 1723
        }
    },
    {
        "date": "2014-01-13",
        "unique_open": {
            "Webmail": 10414,
            "Phone": 11264,
            "Other": 3335,
            "Tablet": 2123,
            "Desktop": 2049
        },
        "open": {
            "Webmail": 17569,
            "Phone": 18496,
            "Other": 6110,
            "Tablet": 4283,
            "Desktop": 5034
        }
    },
    {
        "date": "2014-01-14",
        "unique_open": {
            "Webmail": 9351,
            "Phone": 9814,
            "Other": 2808,
            "Tablet": 1921,
            "Desktop": 1676
        },
        "open": {
            "Webmail": 15657,
            "Phone": 16708,
            "Other": 5073,
            "Tablet": 4017,
            "Desktop": 4128
        }
    },
    {
        "date": "2014-01-15",
        "unique_open": {
            "Webmail": 7385,
            "Phone": 7023,
            "Other": 2454,
            "Tablet": 1457,
            "Desktop": 1366
        },
        "open": {
            "Webmail": 14255,
            "Phone": 12596,
            "Other": 4613,
            "Tablet": 3272,
            "Desktop": 3497
        }
    },
    {
        "date": "2014-01-16",
        "unique_open": {
            "Webmail": 7751,
            "Phone": 7957,
            "Other": 2625,
            "Tablet": 1665,
            "Desktop": 1414
        },
        "open": {
            "Webmail": 13428,
            "Phone": 13626,
            "Other": 4773,
            "Tablet": 3515,
            "Desktop": 3499
        }
    },
    {
        "date": "2014-01-17",
        "unique_open": {
            "Webmail": 7924,
            "Phone": 8488,
            "Other": 2687,
            "Tablet": 1735,
            "Desktop": 1480
        },
        "open": {
            "Webmail": 13332,
            "Phone": 14033,
            "Other": 4751,
            "Tablet": 3549,
            "Desktop": 3510
        }
    },
    {
        "date": "2014-01-18",
        "unique_open": {
            "Webmail": 6504,
            "Phone": 7930,
            "Other": 2241,
            "Tablet": 1809,
            "Desktop": 1004
        },
        "open": {
            "Webmail": 11440,
            "Phone": 13006,
            "Other": 4201,
            "Tablet": 3607,
            "Desktop": 2442
        }
    },
    {
        "date": "2014-01-19",
        "unique_open": {
            "Webmail": 3753,
            "Phone": 3423,
            "Other": 1400,
            "Tablet": 1092,
            "Desktop": 688
        },
        "open": {
            "Webmail": 7246,
            "Phone": 6602,
            "Other": 2819,
            "Tablet": 2797,
            "Desktop": 1691
        }
    },
    {
        "date": "2014-01-20",
        "unique_open": {
            "Webmail": 9154,
            "Phone": 10062,
            "Other": 3043,
            "Tablet": 2190,
            "Desktop": 1779
        },
        "open": {
            "Webmail": 15416,
            "Phone": 16486,
            "Other": 5716,
            "Tablet": 4285,
            "Desktop": 4299
        }
    },
    {
        "date": "2014-01-21",
        "unique_open": {
            "Webmail": 8773,
            "Phone": 8632,
            "Other": 2727,
            "Tablet": 1774,
            "Desktop": 1742
        },
        "open": {
            "Webmail": 14822,
            "Phone": 14528,
            "Other": 5152,
            "Tablet": 3699,
            "Desktop": 4363
        }
    },
    {
        "date": "2014-01-22",
        "unique_open": {
            "Webmail": 6411,
            "Phone": 6086,
            "Other": 2143,
            "Tablet": 1332,
            "Desktop": 1227
        },
        "open": {
            "Webmail": 11277,
            "Phone": 10804,
            "Other": 4028,
            "Tablet": 3084,
            "Desktop": 3194
        }
    },
    {
        "date": "2014-01-23",
        "unique_open": {
            "Webmail": 7987,
            "Phone": 8484,
            "Other": 2857,
            "Tablet": 1745,
            "Desktop": 1553
        },
        "open": {
            "Webmail": 13783,
            "Phone": 14447,
            "Other": 5044,
            "Tablet": 3689,
            "Desktop": 3797
        }
    },
    {
        "date": "2014-01-24",
        "unique_open": {
            "Webmail": 7927,
            "Phone": 8314,
            "Other": 2586,
            "Tablet": 1659,
            "Desktop": 1578
        },
        "open": {
            "Webmail": 13687,
            "Phone": 13881,
            "Other": 4819,
            "Tablet": 3584,
            "Desktop": 3643
        }
    },
    {
        "date": "2014-01-25",
        "unique_open": {
            "Webmail": 6939,
            "Phone": 8549,
            "Other": 2438,
            "Tablet": 1930,
            "Desktop": 1145
        },
        "open": {
            "Webmail": 11585,
            "Phone": 13823,
            "Other": 4425,
            "Tablet": 3816,
            "Desktop": 2775
        }
    },
    {
        "date": "2014-01-26",
        "unique_open": {
            "Webmail": 3748,
            "Phone": 3543,
            "Other": 1470,
            "Tablet": 1124,
            "Desktop": 730
        },
        "open": {
            "Webmail": 7138,
            "Phone": 6934,
            "Other": 3103,
            "Tablet": 2722,
            "Desktop": 1937
        }
    },
    {
        "date": "2014-01-27",
        "unique_open": {
            "Webmail": 9634,
            "Phone": 10176,
            "Other": 3013,
            "Tablet": 2102,
            "Desktop": 1955
        },
        "open": {
            "Webmail": 15985,
            "Phone": 16646,
            "Other": 5461,
            "Tablet": 4302,
            "Desktop": 4592
        }
    }
]

Could anyone tell me if there is any way of accessing the file so that above JSON will get displayed on the web browser?

Upvotes: 1

Views: 2097

Answers (1)

orezvani
orezvani

Reputation: 3785

The Web server returns the "HTTP 404 - File not found" error message when it cannot retrieve the page that was requested.

The following are some common causes of this error message:

  • The requested file has been renamed.
  • The requested file has been moved to another location and/or deleted.
  • The requested file is temporarily unavailable due to maintenance, upgrades, or other unknown causes.
  • The requested file does not exist.
  • The appropriate Web service extension or MIME type is not enabled.
  • A virtual directory is mapped to the root of a drive on another server.
  • The web server does not have the permission to access the file

How To Fix the 404 Not Found Error

  • Retry the web page by pressing F5, clicking the refresh/reload button, or trying the URL from the address bar again.

  • The 404 Not Found error might appear for several reasons even though no real issue exists, so sometimes a simple refresh will often load the page you were looking for.

  • Check for errors in the URL. Often times the 404 Not Found error appears because the URL was typed wrong or the link that was clicked on points to the wrong URL.

  • Move up one directory level at a time in the URL until you find something.

  • For example, if www.web.com/a/b/c.htm gave you the 404 Not Found error, move up to www.web.com/a/b/. If you get nothing here (or an error), move up to www.web.com/a/. This should lead you toward what you're looking for or at least confirm that it's no longer available.

Tip: If you have moved all the way up to the website's homepage, try to run a search for the information you're looking for. If the site doesn't have a search function, try navigating to the page you want using category links to dig deeper into the site.

  • Search for the page at a popular search engine. It's possible that you simply have the entirely wrong URL in which case a quick Google or Bing search should get you where you want to go.

  • If you do find the page you were after, update your bookmark or favorite to avoid the HTTP 404 error in the future.

  • Clear your browser's cache if you have any indication that the 404 Not Found message might just be yours. For example, if you can reach the URL from your phone but not from your tablet, clearing the cache on your tablet's browser might help.

  • You might also consider clearing your browser's cookies, or at least the one(s) involved with the website in question, if clearing the cache didn't work.

  • Change the DNS servers used by your computer but usually only if an entire website is giving you a 404 error, especially if the website is available to those on other networks (e.g. your mobile phone network or a friend in another city).

  • 404's on an entire website isn't particularly common unless your ISP or government filters/censors websites. No matter the reason, if it does happen, giving another set of DNS servers a try is a good step to take. See my Public DNS Servers List for some alternatives and instructions on doing this.

  • Finally, if all else fails, contact the website directly. If they've removed the page you're after then the 404 error is completely legitimate and they should be able to tell you that. If they've moved the page, and are generating 404's instead of redirecting visitors to the new page, they'll be happy to hear from you so they can go fix it.

  • See my Website Contact Information list for links to these site's support-based social network accounts which you can use to report a 404 error or keep up on the problem's status if it's widespread. A few websites even have telephone numbers and email addresses!

Source: http://pcsupport.about.com/od/findbyerrormessage/a/404error.htm

Upvotes: 1

Related Questions