https://prefect.io logo
#prefect-community
Title
# prefect-community
m

Michał

01/03/2023, 8:11 AM
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

Anna Geller

01/03/2023, 9:50 AM
On mobile now, can you check the docker compose recipes on discourse.prefect.io?
m

Michał

01/03/2023, 9:51 AM
@Anna Geller From there I get faibacas repo (also this repo is linked in official docs)
a

Anna Geller

01/03/2023, 10:11 AM
Can you share the link to those docs? Guide on the website is more marketing material, not docs
m

Michał

01/03/2023, 12:09 PM
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

Anna Geller

01/03/2023, 5:08 PM
Can you try first with ephemeral API locally in a virtual environment or Prefect Cloud (free to use)?
m

Michał

01/03/2023, 5:33 PM
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

Anna Geller

01/03/2023, 5:55 PM
thx for the update
r

Ryan Peden

01/03/2023, 7:28 PM
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

Michał

01/04/2023, 7:24 AM
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
4 Views