Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dagster 1.7.5 - 'Value is not JSON serializable' returning metadata #21773

Open
the4thamigo-uk opened this issue May 10, 2024 · 1 comment
Open
Labels
area: metadata Related to metadata type: bug Something isn't working

Comments

@the4thamigo-uk
Copy link

Dagster version

dagster, version 1.7.5

What's the issue?

I have an asset that obtains the metadata for an upstream asset (via DagsterInstance.get_event_records()), and attaches this upstream metadata as a subkey in its own Output metadata.

When I obtain the upstream metadata via AssetMaterialization.metadata, it has the form :

upstream_metadata = {
  "data": JsonMetadataValue(...)
}

I pass this metadata on in the following way, and in dagster 1.7.4 it used to work :

return Output(None, metadata = {  
  "upstream": {
    "metadata": upstream_metadata
  }
})

But in dagster 1.7.5 I get :

dagster._core.errors.DagsterInvalidMetadata: Could not resolve the metadata value for "upstream" to a known type. Value is not JSON serializable.

It seems that the regression is due to code in Output because it looks like the metadata I retrieve from the upstream AssetMaterialization has not changed in form between 1.7.4 and 1.7.5 .

What did you expect to happen?

It used to work in 1.7.4 but not in 1.7.5

How to reproduce?

No response

Deployment type

None

Deployment details

No response

Additional information

No response

Message from the maintainers

Impacted by this issue? Give it a 👍! We factor engagement into prioritization.

@the4thamigo-uk the4thamigo-uk added the type: bug Something isn't working label May 10, 2024
@garethbrickman garethbrickman added the area: metadata Related to metadata label May 10, 2024
@kubiani
Copy link

kubiani commented May 23, 2024

Thinking this might be caused by #21576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: metadata Related to metadata type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants