filearts / plunker

Plnkr.co front-end and backend
MIT License
598 stars 119 forks source link

Plunks Fail to Fetch Files after Some Inactivity (Status Code '500') #153

Open boghyon opened 5 years ago

boghyon commented 5 years ago

I often observe single page applications failing to fetch resources on-demand after some inactivity.

URL

Steps to reproduce the problem

  1. Open one of the above plunks (preferably the first one)
  2. When the preview is loaded, wait for about a minute.
  3. Click on one of the items within the app, e.g: Lufthansa               EUR > The app tries to show some more content but fails to do so.
  4. Check the network tab in the dev tools

Result

image

Error: resource demo/view/Detail.view.xml could not be loaded from ./view/Detail.view.xml. Check for 'file not found' or parse errors.

The fetch fails with 500 even though the file exists in the project folder and doesn't contain any invalid syntax that could result in parse errors.

Workarounds

boghyon commented 5 years ago

@ggoodman Please, let me know if you need more information. Otherwise, it would be nice if this could be fixed soon..

ggoodman commented 5 years ago

Interesting. Sounds like the preview assets might be dropping from the cache too quickly. Can you confirm that the issue is not reproduced on https://run.plnkr.co/plunks/F3t6gI8TPUZwCOnA/?

boghyon commented 5 years ago

Thank you for the reply. So far, I couldn't reproduce it on https://run.plnkr.co/plunks/F3t6gI8TPUZwCOnA/.