#Failed to fetch dynamically imported module. (Only when accessing behind nginx)

1 messages · Page 1 of 1 (latest)

true timber
#
Failed to fetch dynamically imported module: https://images.domain.com/_app/immutable/nodes/20.f7234011.js - 500
TypeError: Failed to fetch dynamically imported module: https://images.domain.com/_app/immutable/nodes/20.f7234011.js

This happens even when in incognito mode, in a different browser (chrome, firefox, edge) and in incognito of all those browsers. This however doesn't happen when accessing via localhost:port. I've also tried deleting the cache in my browser but same problem; as is probably apparent since it's happening in incognito.

Any pointers on what I could be doing wrong? Here's my nginx config

server {
       listen         80;
       server_name    images.mydomain.com;
       return         301 https://$server_name$request_uri;
}

server {
    listen 443 ssl http2;
    ssl_certificate /etc/letsencrypt/live/images.mydomain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/images.mydomain.com/privkey.pem;

    server_name images.mydomain.com;
    client_max_body_size 50000M;
    charset utf-8;

    location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_pass http://<my_local_ip>:<port>;

        proxy_set_header   Upgrade    $http_upgrade;
        proxy_set_header   Connection "upgrade";
        proxy_redirect off;
        proxy_read_timeout 90s;
    }
}
wraith compassBOT
#

:wave: Hey @true timber,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :ballot_box_with_check: I have tried an incognito window, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

true timber
#

Ignore the latest env.txt.

wraith compassBOT
true timber
#

Important to note that this only happens during the first login even. Once I'm logged in and I log out... then I log back in again, it doesn't show me the error.