#Ruby SDK
1 messages · Page 1 of 1 (latest)
Where does that output.json come from?
Can you check what gets sent to return_value? I mean the JSON that is sent there?
In the trace I see this:
{
module{
withObject(object:"ChV4eGgzOjk2YTQ5MTRlY2VmNzM4YjISRgoVeHhoMzoyYTY4YzM1Y2Y4ZGNhMGJlEi0SCwoHVHlwZURlZhgBGgd0eXBlRGVmShV4eGgzOjJhNjhjMzVjZjhkY2EwYmUSigEKFXh4aDM6MmE3MDQyZTkxMzgxOWE4ZBJxEgwKCEZ1bmN0aW9uGAEaCGZ1bmN0aW9uIhkKBG5hbWUSEToPY29udGFpbmVyX2hlbGxvIiUKCnJldHVyblR5cGUSFwoVeHhoMzpmOTZmZDMxNzk4ODgzZjNmShV4eGgzOjJhNzA0MmU5MTM4MTlhOGQScwoVeHhoMzo0MGQ3OTI2NGQyN2Q3YzAxEloKFXh4aDM6MmE2OGMzNWNmOGRjYTBiZRILCgdUeXBlRGVmGAEaCndpdGhPYmplY3QiEQoEbmFtZRIJOgdSdWJ5bW9kShV4eGgzOjQwZDc5MjY0ZDI3ZDdjMDEShwEKFXh4aDM6OTZhNDkxNGVjZWY3MzhiMhJuChV4eGgzOjQwZDc5MjY0ZDI3ZDdjMDESCwoHVHlwZURlZhgBGgx3aXRoRnVuY3Rpb24iIwoIZnVuY3Rpb24SFwoVeHhoMzo5ZDcxMDZjMjg5ZDRkM2YwShV4eGgzOjk2YTQ5MTRlY2VmNzM4YjISmAEKFXh4aDM6OWQ3MTA2YzI4OWQ0ZDNmMBJ/ChV4eGgzOjJhNzA0MmU5MTM4MTlhOGQSDAoIRnVuY3Rpb24YARoHd2l0aEFyZyIUCgRuYW1lEgw6CnN0cmluZ19hcmciIgoHdHlwZURlZhIXChV4eGgzOmY5NmZkMzE3OTg4ODNmM2ZKFXh4aDM6OWQ3MTA2YzI4OWQ0ZDNmMBJ1ChV4eGgzOmY5NmZkMzE3OTg4ODNmM2YSXAoVeHhoMzoyYTY4YzM1Y2Y4ZGNhMGJlEgsKB1R5cGVEZWYYARoId2l0aEtpbmQiFQoEa2luZBINIgtTQ0FMQVJfS0lOREoVeHhoMzpmOTZmZDMxNzk4ODgzZjNm")
}
}
But not sure if that what you're passing, or if it's the engine doing that from the id.
Next thing I'd look is whether the container runtime is built correctly
The output.json should be created here: https://github.com/dagger/dagger/blob/b018d785c52e273cb0bf36360cb9fe586c19b869/core/typedef.go#L1119-L1134
And it's read here: https://github.com/dagger/dagger/blob/b018d785c52e273cb0bf36360cb9fe586c19b869/core/modfunc.go#L338-L344
That's where the error is coming from
What I'm sending is the module ID representing the available types/functions if I'm right.
I was looking at https://dagger-io.notion.site/sdk-modules-support#14a206f3880080d2adb7ece142ed4301 (and the python code) to have something similar.
Maybe that's the translation between this module id and the json the issue?
(I haven't yet implemented a specific json layer, so maybe something is missing here)
What I'm sending is the module ID representing the available types/functions if I'm right.
I know, what I'm asking is if you can get ruby to print the value as is, before sending it to return_value, and share it here?