An error occurred: failed to evaluate: failed to run: /nix/store/z8c49ircdcnm1y47hbbd6ah6akpci81c-nix-2.28.5/bin/nix --extra-experimental-features nix-command eval --show-trace 'path:/nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source#handlers.aarch64-linux.default' --apply 'h: h { basePath = ""; body = "/nix/store/5n90qy4wsm9r91m8p8dslp37hsmlna17-body"; bodyHash = "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="; error = null; headers = { Accept = [ "*/*" ]; Accept-Encoding = [ "gzip, br, zstd, deflate" ]; User-Agent = [ "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" ]; }; host = "origin.nixpresso.dev"; method = "GET"; options = { allowStore = true; allowedModes = [ "serve" "log" "derivation" ]; allowedPaths = [ ]; allowedTypes = [ "string" "path" "derivation" ]; basePath = ""; evalCache = true; handler = "path:/nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source#handlers.aarch64-linux.default"; maxBuildTime = "10m0s"; maxEvalTime = "5m0s"; maxRequestBytes = 33554432; maxRequestTime = "5m0s"; maxResponseBytes = 134217728; maxRunTime = "10m0s"; nixArgs = [ ]; runArgs = [ ]; verbose = 10; }; path = "/assets"; proto = "HTTP/2.0"; query = { }; remoteAddr = "216.73.216.0:33794"; tls = { cipherSuite = "TLS_AES_128_GCM_SHA256"; didResume = false; handshakeComplete = true; negotiatedProtocol = "h2"; peerCertificates = [ ]; serverName = "origin.nixpresso.dev"; verifiedChains = [ ]; version = "TLS 1.3"; }; uri = "/assets"; }' --json stderr: warning: ignoring untrusted flake configuration setting 'extra-substituters'. Pass '--accept-flake-config' to trust it warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys'. Pass '--accept-flake-config' to trust it error: … while calling anonymous lambda at «string»:1:1: 1| h: h { | ^ 2| basePath = ""; … while calling a functor (an attribute set with a '__functor' attribute) at «string»:1:4: 1| h: h { | ^ 2| basePath = ""; … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:104:7: 103| { 104| __functor = newFct.__functor; | ^ 105| __functionArgs = oldArgs // newArgs; … while calling anonymous lambda at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:265:7: 264| updateHandler handler ( 265| request: | ^ 266| let … in the left operand of the update (//) operator at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:269:16: 268| in 269| response // { headers = mapAttrs (_: v: toList v) response.headers; } | ^ 270| ); … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:267:20: 266| let 267| response = handler request; | ^ 268| in … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:104:7: 103| { 104| __functor = newFct.__functor; | ^ 105| __functionArgs = oldArgs // newArgs; … while calling anonymous lambda at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:105:7: 104| updateHandler handler ( 105| { options, ... }@request: | ^ 106| let … while evaluating a branch condition at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:109:7: 108| in 109| if !elem response.mode options.allowedModes then | ^ 110| handlers.htmlError { … in the argument of the not operator at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:109:11: 108| in 109| if !elem response.mode options.allowedModes then | ^ 110| handlers.htmlError { … while calling the 'elem' builtin at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:109:11: 108| in 109| if !elem response.mode options.allowedModes then | ^ 110| handlers.htmlError { … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:107:20: 106| let 107| response = handler request; | ^ 108| in … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:104:7: 103| { 104| __functor = newFct.__functor; | ^ 105| __functionArgs = oldArgs // newArgs; … while calling anonymous lambda at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:235:7: 234| updateHandler handler ( 235| request: | ^ 236| let … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:255:7: 254| in 255| recursiveUpdate response { | ^ 256| headers = { … while calling 'recursiveUpdate' at /nix/store/rbsdwarmdfxfc1wkjkfv0z7h43fkk5yp-source/lib/attrsets.nix:1746:10: 1745| recursiveUpdate = 1746| lhs: rhs: | ^ 1747| recursiveUpdateUntil ( … from call site at /nix/store/rbsdwarmdfxfc1wkjkfv0z7h43fkk5yp-source/lib/attrsets.nix:1747:5: 1746| lhs: rhs: 1747| recursiveUpdateUntil ( | ^ 1748| path: lhs: rhs: … while calling 'recursiveUpdateUntil' at /nix/store/rbsdwarmdfxfc1wkjkfv0z7h43fkk5yp-source/lib/attrsets.nix:1686:16: 1685| recursiveUpdateUntil = 1686| pred: lhs: rhs: | ^ 1687| let … while calling the 'zipAttrsWith' builtin at /nix/store/rbsdwarmdfxfc1wkjkfv0z7h43fkk5yp-source/lib/attrsets.nix:1701:5: 1700| in 1701| f [ ] [ rhs lhs ]; | ^ 1702| … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:237:20: 236| let 237| response = handler request; | ^ 238| headerComponents = … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:104:7: 103| { 104| __functor = newFct.__functor; | ^ 105| __functionArgs = oldArgs // newArgs; … while calling anonymous lambda at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:194:7: 193| updateHandler handler ( 194| request: | ^ 195| let … in the left operand of the update (//) operator at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:229:16: 228| in 229| response // responseFixup | ^ 230| ); … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:196:20: 195| let 196| response = handler request; | ^ 197| … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:104:7: 103| { 104| __functor = newFct.__functor; | ^ 105| __functionArgs = oldArgs // newArgs; … while calling anonymous lambda at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:275:7: 274| updateHandler handler ( 275| { error, headers, ... }@request: | ^ 276| let … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:311:9: 310| else 311| handler request | ^ 312| ); … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:104:7: 103| { 104| __functor = newFct.__functor; | ^ 105| __functionArgs = oldArgs // newArgs; … while calling anonymous lambda at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:171:7: 170| updateHandler handlerFn ( 171| { options, ... }@request: | ^ 172| let … in the left operand of the update (//) operator at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:188:16: 187| in 188| response // { headers = headersCaching // response.headers; } | ^ 189| ); … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:173:20: 172| let 173| response = handlerFn request; | ^ 174| meta = handlerFn.meta or { }; … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:104:7: 103| { 104| __functor = newFct.__functor; | ^ 105| __functionArgs = oldArgs // newArgs; … while calling anonymous lambda at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:152:7: 151| updateHandler handler ( 152| request: | ^ 153| let … while evaluating a branch condition at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:165:7: 164| in 165| if isCached then responseCached else responseUncached | ^ 166| ); … in the left operand of the AND (&&) operator at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:159:64: 158| 159| isCached = responseETag != null && requestETag != null && responseETag == requestETag; | ^ 160| … in the left operand of the AND (&&) operator at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:159:41: 158| 159| isCached = responseETag != null && requestETag != null && responseETag == requestETag; | ^ 160| … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:154:28: 153| let 154| responseUncached = handler request; | ^ 155| … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:104:7: 103| { 104| __functor = newFct.__functor; | ^ 105| __functionArgs = oldArgs // newArgs; … while calling 'handlerWithBody' at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:133:9: 132| handlerWithBody = 133| { bodyHash, ... }@request: | ^ 134| let … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:145:9: 144| in 145| handler requestWithBody; | ^ 146| in … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:104:7: 103| { 104| __functor = newFct.__functor; | ^ 105| __functionArgs = oldArgs // newArgs; … while calling anonymous lambda at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:93:7: 92| updateHandler handler ( 93| request: | ^ 94| handler ( … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:94:7: 93| request: 94| handler ( | ^ 95| request … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:104:7: 103| { 104| __functor = newFct.__functor; | ^ 105| __functionArgs = oldArgs // newArgs; … while calling anonymous lambda at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:76:7: 75| updateHandler handler ( 76| request: | ^ 77| let … in the right operand of the update (//) operator at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:80:24: 79| in 80| responseDefaults // response | ^ 81| ); … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/response.nix:78:20: 77| let 78| response = handler request; | ^ 79| in … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/handlers.nix:60:7: 59| { 60| __functor = _: handler; | ^ 61| __functionArgs = newArgs; … while calling 'handler' at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/handlers.nix:49:9: 48| handler = 49| request: | ^ 50| let … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/handlers.nix:55:30: 54| matchResponse = matchHandlerFct newRequest; 55| fallbackResponse = fallbackHandlerFct request; | ^ 56| in (14 duplicate frames omitted) … while calling a functor (an attribute set with a '__functor' attribute) at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/handlers.nix:54:27: 53| 54| matchResponse = matchHandlerFct newRequest; | ^ 55| fallbackResponse = fallbackHandlerFct request; (42 duplicate frames omitted) … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/trivial.nix:73:9: 72| { 73| __functor = _: fn; | ^ 74| __functionArgs = functionArgs fn; … while calling anonymous lambda at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/handlers.nix:158:7: 157| ( 158| { path, basePath, ... }: | ^ 159| let … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/handlers.nix:177:9: 176| else if fileType == "directory" then 177| directoryIndex { fsPath = rfsPath; } { inherit path; } | ^ 178| else … while calling 'directoryIndex' at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/handlers.nix:113:5: 112| { fsPath }: 113| { path, ... }@request: | ^ 114| if !hasSuffix "/" path then … from call site at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/handlers.nix:115:7: 114| if !hasSuffix "/" path then 115| redirect { | ^ 116| location = "/"; error: function 'redirect' called without required argument 'basePath' at /nix/store/irhb7z9x220ppmg4c39404s57yd8nl01-source/lib/handlers.nix:277:5: 276| }: 277| { path, basePath, ... }: | ^ 278| let