File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 3535 'django_webpack_loader can\' t generate a nonce tag for a bundle, '
3636 'because the passed request doesn\' t contain a "csp_nonce". '
3737 'Chunk name: {chunk_name}' )
38-
38+ _LOADER_POSSIBLE_LIMBO = (
39+ 'You are using django_webpack_loader with default timeout "None" '
40+ 'which can cause request to hang indefinitely. '
41+ 'Validate status of webpack-stats.json file if you experience infinite loading.'
42+ )
3943
4044@lru_cache (maxsize = 100 )
4145def _get_netloc (url : str ) -> str :
@@ -187,6 +191,10 @@ def get_bundle(self, bundle_name):
187191 time .sleep (self .config ["POLL_INTERVAL" ])
188192 if timeout and (time .time () - timeout > start ):
189193 timed_out = True
194+ if not timeout :
195+ warn (
196+ message = _LOADER_POSSIBLE_LIMBO , category = RuntimeWarning
197+ )
190198 assets = self .get_assets ()
191199
192200 if timed_out :
You can’t perform that action at this time.
0 commit comments