Select to view content in your preferred language

Unable to load config.json error...file exists on server

5456
11
Jump to solution
02-25-2019 12:25 PM
KenBuja
MVP Esteemed Contributor

I am getting the error "Unable to load config.json?wab_dv=2.8 status: 404 and an error in handleAs: transformation of response" on a web site I've deployed. It's a duplicate (with a few minor changes) of another site that I've deployed that works. The config.json file exists on the server for both sites.

Both sites work properly on our staging server.

Why would I be getting the error on the production server for one but not the other?

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Ken,

  The only time I have seen IIS refuse to serve a particular file type has been when there is a MIME issue. Both sites have the woff2 mime type missing.

View solution in original post

0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus

Ken,

   That is strange. Are both site configured as application in IIS?

It is not serving the appinfo.json file either.... But all the other files are coming up like the config-readme.txt, readme.html, etc in the main app folder.

0 Kudos
KenBuja
MVP Esteemed Contributor

From the IT dept: Yes, they are configured in IIS

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ken,

  The only time I have seen IIS refuse to serve a particular file type has been when there is a MIME issue. Both sites have the woff2 mime type missing.

0 Kudos
KenBuja
MVP Esteemed Contributor

This was missing from the root level configuration:

<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />

What was odd is that one site would work but the other wouldn't.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

That is strange. Glad it is working now though.

0 Kudos
KenBuja
MVP Esteemed Contributor

So am I! I always appreciate your help, Robert

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ken,

   OK after some further testing that app will not serve up any json files at all. Not for the widgets either. It's like you only configured the json mime type for that other app folder and not your whole IIS instance.

0 Kudos
KeithFraley1
New Contributor II

Hi Robert, do you ever develop widgets as a side gig?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Sorry No.

0 Kudos