Skip to content

API Documentation page loads empty #13200

Closed

Description

@miggland

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

The API documentation page available at eg https://demo.inventree.org/api-doc/ (or our instance) loads an empty page - since version 1.6.4?

Demo server and my server show same behaviour.

Page content loaded:

<!DOCTYPE html>
<html>
  <head>
    
    <title>InvenTree API</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="preconnect" href="[https://fonts.googleapis.com](view-source:https://fonts.googleapis.com/)">
    <link rel="preconnect" href="[https://fonts.gstatic.com](view-source:https://fonts.gstatic.com/)" crossorigin>
    <link rel="stylesheet" href="[https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Roboto:wght@300;400;700&display=swap](view-source:https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Roboto:wght@300;400;700&display=swap)">
    <style>
      
      body { margin: 0; padding: 0; }
    </style>
    
  </head>
  <body>
    
    
    <redoc spec-url="/api/schema/"></redoc>
    <script src="[https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js](view-source:https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js)"></script>
    
    
  </body>
</html>

Developer console shows the following:

Uncaught SyntaxError: import.meta may only appear in a module redoc.standalone.js:13180:37236

Steps to Reproduce

  1. Go to https://demo.inventree.org/api-doc/, log in with admin user.
  2. See nothing.

Expected behaviour

Show API documentation, as previously, and as described in documentation.

Deployment Method

Docker

Version Information

InvenTree-Version: 1.7.0
Django Version: 5.2.17
Commit Hash: 365245e
Commit Date: 2026-11-03
Commit Branch: null
Database: django.db.backends.postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-6.8.0-139-generic-x86_64-with-glibc2.41
Installer: DOC
Active plugins: [{"name":"InvenTreeBarcode","slug":"inventreebarcode","version":"2.2.0"},{"name":"BOM Exporter","slug":"bom-exporter","version":"1.1.0"},{"name":"InvenTree Exporter","slug":"inventree-exporter","version":"1.0.0"},{"name":"Parameter Exporter","slug":"parameter-exporter","version":"2.0.0"},{"name":"InvenTreeEmailNotifications","slug":"inventree-email-notification","version":"1.0.0"},{"name":"InvenTreeUINotifications","slug":"inventree-ui-notification","version":"1.0.0"},{"name":"InvenTreeWellKnown","slug":"inventree-well-known","version":"1.0.0"},{"name":"InvenTreeCurrencyExchange","slug":"inventreecurrencyexchange","version":"1.0.0"},{"name":"InvenTreeMachines","slug":"inventree-machines","version":"1.0.0"},{"name":"InvenTreeLabel","slug":"inventreelabel","version":"1.1.0"},{"name":"InvenTreeLabelMachine","slug":"inventreelabelmachine","version":"1.0.0"},{"name":"InvenTreeLabelSheet","slug":"inventreelabelsheet","version":"1.0.1"},{"name":"DigiKeyBarcodePlugin","slug":"digikeyplugin","version":"1.0.1"},{"name":"LCSCBarcodePlugin","slug":"lcscplugin","version":"1.0.1"},{"name":"MouserBarcodePlugin","slug":"mouserplugin","version":"1.0.1"},{"name":"TMEBarcodePlugin","slug":"tmeplugin","version":"1.0.1"},{"name":"CustomPagerPlugin","slug":"cpager","version":"0.1.3"},{"name":"Brother Labels","slug":"brother","version":"2.0.6"}]

Try to reproduce on the demo site

I tried to reproduce

Is the bug reproducible on the demo site?

Reproducible

Relevant log output

I have reviewed this report for correctness and filled out all sections.

  • I have checked this report. I acknowledge that filing bugs via AI agents without review might lead to being blocked.

Activity

  1. added
    bug
    question
    triage:not-checked
    on Nov 5, 2026
  2. added theissue type on Nov 5, 2026
  3. sufyanaslam198 commented on Nov 5, 2026

    @sufyanaslam198
    Contributor

    Probably caused by an upstream issue tfranzel/drf-spectacular#1543, I've seen a draft fix in tfranzel/drf-spectacular#1544 but its not merged yet.

    It could be pinned to an earlier version if the maintainers accept it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugquestiontriage:not-checked

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions