snapp: ERR_INVALID_URL
I get this Error:
snapp_1 | 678 | var ssr = function(request) {
snapp_1 | 679 | if (origin) {
snapp_1 | 680 | const requestOrigin = get_origin(request.headers);
snapp_1 | 681 | if (origin !== requestOrigin) {
snapp_1 | 682 | request = new Request(origin + url, {
snapp_1 | ^
snapp_1 | TypeError: Failed to construct 'Request': Invalid URL "sub.domain.tld/"
snapp_1 | code: "ERR_INVALID_URL"
snapp_1 |
snapp_1 | at ssr (/app/build/handler.js:682:17)
And i have absolutely no clue how to fix it, can anyone here help? (I replaced the domain in the code) I’m using docker, with this compose file:
services:
snapp:
image: uraniadev/snapp:latest
ports:
- 5999:3000
environment:
ORIGIN: sub.domain.tld
PUBLIC_URL: https://sub.domain.tld
DATABASE_PROVIDER: sqlite
DATABASE_URL: file:./db.sqlite
TOKEN_SECRET: myextremlytopsecretkeyisobviouslyreplacedxD
ADMIN_EMAIL: me@mydomain.tld
ADMIN_PASSWORD: mypasswordisreplaced
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (9 by maintainers)
with the new version and the right vars it’s working
I got it to work! Thanks for the help!