Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Turris OS packages
Turris OS packages
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 85
    • Issues 85
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 17
    • Merge Requests 17
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Turris
  • Turris OS packagesTurris OS packages
  • Issues
  • #342

Closed
Open
Opened Mar 23, 2019 by David Beitey@davidjbContributor

luci-app-wireguard: status fail to load; JavaScript error TypeError: String.format is not a function

Loading the Wireguard status page in LuCI has worked at least once in the past, but now shows a screen stating "Collecting data...". In JavaScript, the page is making XHR requests but data processing is failing because of the following error:

TypeError: String.format is not a function wireguard:74:21
    <anonymous> /cgi-bin/luci/admin/status/wireguard:74
    onreadystatechange /luci-static/resources/xhr.js?v=git-18.328.59464-9636605:72

and this error occurs every few seconds as continued XHRs take place.

The issue appears to be that the JS function String.format from /www/luci-static/resources/cbi.js isn't being loaded on this page and is thus null, causing the error. Looking into the JS that is loaded and only xhr.js (in the traceback above) and the inline JS on the HTML page are what's present.

I don't know the internals of LuCI or its pages, but manually defining that String.format function sees the rest of the page work as a test.

I'm on Turris Omnia v3.11.2 with luci-app-wireguard version git-18.328.59464-9636605-1

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: turris/turris-os-packages#342