dagger / dagger

An engine to run your pipelines in containers
https://dagger.io
Apache License 2.0
10.98k stars 592 forks source link

🐞 TypeScript module runtime: Type Error: Cannot read properties of null (reading 'trim') #7614

Open gerhard opened 3 months ago

gerhard commented 3 months ago

What is the issue?

Have hit this when starting with a clean state, no previous Dagger Engine container running. Was reviewing:

This is the exact command that I was running: dagger call image --source=.:app --token=env:GH_TOKEN

image

As this is a transient issue, it might be difficult to reproduce. Creating this issue so that others can find it and/or provide more detail. 💡 It would have been useful to have a trace to link to - should have dagger login dagger before running this.

Dagger version

dagger v0.11.6 (registry.dagger.io/engine) darwin/amd64


Mention to @TomChv via DM

TomChv commented 3 months ago

It seems this issue happens only sometime with no correlation between a specific setup and this issue, if anyone have this issue on every run, please provide a repro case so I can dig into that.

The failing line is in the SDK runtime:

https://github.com/dagger/dagger/blob/45c78ae659a29b79f20988735d6097c735e9c695/sdk/typescript/runtime/main.go#L266

TomChv commented 2 months ago

@gerhard Did you hit this issue recently with v0.12? I didn't on my side and did not see the issue recently in the CI