Repository navigation
Labels
bugIdentifies a bug which needs to be addressedquestionThis is a questiontriage:not-checkedItem was not checked by the core team
Description
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
- Go to https://demo.inventree.org/api-doc/, log in with
adminuser. - 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.
Metadata
Metadata
Assignees
Labels
bugIdentifies a bug which needs to be addressedquestionThis is a questiontriage:not-checkedItem was not checked by the core team
Activity
sufyanaslam198 commentedon Nov 5, 2026
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.
Add CI checks for /api-doc/ endpoint (#13210)