joshstrohminger / TurnTracker

An attempt at a simple PWA version of an app to track turns for various chores
https://turn-tracker.com
1 stars 0 forks source link

Consistent System.InvalidOperationException #38

Open joshstrohminger opened 3 years ago

joshstrohminger commented 3 years ago

The SPA default page middleware could not return the default page '/index.html' because it was not found, and no other middleware handled the request. Your application is running in Production mode, so make sure it has been published, or that you have built your SPA manually. Alternatively you may wish to switch to the Development environment.

joshstrohminger commented 3 years ago

This happens once an hour at the same time of the hour so it's something scheduled.

joshstrohminger commented 3 years ago

It seems to be the following call: HTTP/1.1 POST https://turntracker.azurewebsites.net/admin/host/synctriggers which then gets converted to /index.html since we don't have a static file or API route for that, but it's a POST so it fails.

joshstrohminger commented 3 years ago

There are a few posts out there but their issues resolved themselves or they were never resolved:

These two requests are coming from an Azure IP and are related to the Azure Function Admin API:

POST: /admin/host/synctriggers User-Agent: PolicyScan X-Forwarded-For: 13.91.40.166:55104

GET: /admin/functions User-Agent: python/3.8.7 (Linux-4.15.0-72-generic-x86_64-with-glibc2.17) msrest/0.6.19 msrest_azure/0.6.4 azure-mgmt-web/0.35.0 Azure-SDK-For-Python X-Forwarded-For: 13.91.40.166:56960