Error "Expected JSON, got null" after 7.1 update

I’m reposting this here under SW bugs discussion. I originally posted it as a reply to some other users having the same issue, who posted under the 7.1 release announcement.

Since updating to 7.1, I get an error in the management web UI, “expected JSON, got null”. I did find a workaround. The issue occurs when you navigate to the base URL, as in https://192.168.1.1. If you instead navigate directly to the reforis path, as in https://192.168.1.1/reforis/ then the application loads correctly.

The error occurs in the index-LRQhn-Wy.js file. It calls fetch on /api/apps.json which does return valid JSON, but the response contains no headers. The code is expecting a “content-type” header with “application/json”. The code explicitly throws this exception when it finds the header is missing.

So, this does seem to be a bug, but you can avoid it by including /reforis/ in the URL. The trailing slash is required. Otherwise it will return 404 not found.