Skip to content

fix: automatic page refresh if initial loading of contract fails #3472

Description

@kerbo7

Problem

Starting a new, fresh, empty Freenet node and requesting River i get a lot of errors like:

  • error while executing operation in the network: GET operation timed out
  • GET request timed out after 30s

and the page stops any further attempt to load the contract and dies.
After a while, when the peer has better or other connections, the contract does load, but the page re-load must be initiated by the user.

Solution

With the error msg during initial load add to <head>
<meta http-equiv="refresh" content="60">

and tell the user:
GET request timed out after 30s - reloading in 30s

Make sure to remove the refresh once the page loads the contract.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contractsArea: Contract runtime, SDK, and executionE-easyExperience needed to fix/implement: Easy / not muchP-mediumMedium priorityT-bugType: Something is broken

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions