UKGovernmentBEIS / inspect_ai

Inspect: A framework for large language model evaluations
https://UKGovernmentBEIS.github.io/inspect_ai/
MIT License
385 stars 41 forks source link

[Bug] Inspect view errors out when port forwarding to laptop's web browser #52

Closed alex-treebeard closed 2 weeks ago

alex-treebeard commented 2 weeks ago

(As with https://github.com/UKGovernmentBEIS/inspect_ai/issues/51 I am working on an SSH server in a devcontainer which may complicate things)

When I run inspect view then port forward from vscode to my laptop, I see the following when I open http://localhost:7575 in chrome

127.0.0.1/:8 

       GET http://127.0.0.1:7575/libs/bootstrap/css/bootstrap.min.css net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
127.0.0.1/:48 

       GET http://127.0.0.1:7575/libs/bootstrap/js/bootstrap.bundle.min.js net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
127.0.0.1/:15 

       GET http://127.0.0.1:7575/libs/bootstrap/css/bootstrap-icons.min.css net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
AppErrorBoundary.mjs:24 {e: ReferenceError: bootstrap is not defined
    at http://127.0.0.1:7575/src/samples/SamplesTab.mjs:60…}
AppErrorBoundary.mjs:24 {e: ReferenceError: bootstrap is not defined
    at http://127.0.0.1:7575/src/samples/SamplesTab.mjs:60…}

The page will eventually render this error into HTML (but above is from the console)

This happens intermittently on Safari also, but firefox seems to work fine.

jjallaire commented 2 weeks ago

My guess is that this is the same XDG directory thing but we'll see once we have that resolved!

tekumara commented 2 weeks ago

I've seen this issue raised a few times over in microsoft/vscode-remote-release eg: https://github.com/microsoft/vscode-remote-release/issues/9969

alex-treebeard commented 2 weeks ago

this error persists after fixing the XDG directory thing...good catch @tekumara, we can probably close this