Hey, my UI is empty. This is the only html (moved ...
# prefect-community
m
Hey, my UI is empty. This is the only html (moved into comment) I have in browser, or when I download it via curl. I tested both localhost, host, and IP of machine I'm hosting prefect. Even when entering inside docker container curl result is same. API (/api/ and docs, are working, I successfully created deployment by CLI, and Agent successfully connected to to server. I used https://github.com/fraibacas/prefect-orion instructions
Copy code
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="apple-touch-icon" sizes="180x180" href="/ico/apple-touch-icon.png">
    <link rel="icon" id="favicon-32" type="image/png" sizes="32x32" href="/ico/favicon-32x32.png">
    <link rel="icon" id="favicon-16" type="image/png" sizes="16x16" href="/ico/favicon-16x16.png">
    <link rel="manifest" href="/ico/site.webmanifest">
    <link rel="mask-icon" href="/ico/safari-pinned-tab.svg" color="#5BBAD5">
    <meta name="msapplication-TileColor" content="#DA532C">
    <meta name="theme-color" content="#FFFFFF">

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Prefect Orion</title>
    <script type="module" crossorigin src="/assets/index.9fe0d749.js"></script>
    <link rel="stylesheet" href="/assets/index.cdcb9da7.css">
  </head>
  <body>
    <div id="app"></div>

  </body>
</html>
message has been deleted
a
On mobile now, can you check the docker compose recipes on discourse.prefect.io?
m
@Anna Geller From there I get faibacas repo (also this repo is linked in official docs)
a
Can you share the link to those docs? Guide on the website is more marketing material, not docs
m
Still empty screen. I tried running docker from this repository. API is working, logs even in debug mode don't show any errors, but UI is still empty.
@Anna Geller Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec. this is only error I have in dev console
I'm running prefect on debian server. Even when I install it locally with pip I have same empty screen
a
Can you try first with ephemeral API locally in a virtual environment or Prefect Cloud (free to use)?
m
Had same results on this machine. On my local macos I dont have any problems. Just both ovh server, to try and check if I can reproduce
👍 1
a
thx for the update
r
Hi Michal! What happens if you add
/assets/index.9fe0d749.js
to the UI address in your browser's address bar? Does it return the JavaScript file, or does it show something else?
m
const $M=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const i of u.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerpolicy&&
@Ryan Peden there is large js code base. I copy pasted some of first lines
@Ryan Peden after upgrading to 2.7.5 and when I install it via pip.
message has been deleted