You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Static Shock allows users to serve and update the content dynamically during development using the shock serve CLI command. However, it only works when there is an internet connection. This makes it inconvenient to continue development on a flight or other occasions when internet connectivity is unavailable.
Reproduction steps:
Generate a new Static Shock project.
Disconnect from the internet.
Run shock serve.
Expected result:
The server runs locally and serves the site content at http://localhost:4000/.
Actual result:
An unhandled ClientException is thrown.
The following is the full error message and stack trace:
It is unclear at this point if the issue is related to SS itself or Dart. If something about running the Dart server requires contacting pub.dev, then the expected result would be to gracefully handle the exception and inform the user that shock serve only works with an internet connection.
shock build does not throw an exception when there is no internet connection.
The text was updated successfully, but these errors were encountered:
suragch
changed the title
Unhandled exception when no internet connection
ClientException exception thrown on shock serve with no internet connection
May 29, 2024
matthew-carroll
changed the title
ClientException exception thrown on shock serve with no internet connection
[Shock][CLI] - Support offline mode
Jun 7, 2024
Static Shock allows users to serve and update the content dynamically during development using the
shock serve
CLI command. However, it only works when there is an internet connection. This makes it inconvenient to continue development on a flight or other occasions when internet connectivity is unavailable.Reproduction steps:
shock serve
.Expected result:
The server runs locally and serves the site content at
http://localhost:4000/
.Actual result:
An unhandled
ClientException
is thrown.The following is the full error message and stack trace:
Resolving ambiguities
It is unclear at this point if the issue is related to SS itself or Dart. If something about running the Dart server requires contacting
pub.dev
, then the expected result would be to gracefully handle the exception and inform the user thatshock serve
only works with an internet connection.shock build
does not throw an exception when there is no internet connection.The text was updated successfully, but these errors were encountered: