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

[Bug] cannot unmarshal array into Go struct field WorkerInfo.Flags of type map[string]string #531

Closed
root-aza opened this issue Dec 2, 2024 · 2 comments
Labels
Bug Something isn't working

Comments

@root-aza
Copy link
Contributor

root-aza commented Dec 2, 2024

What are you really trying to do?

run worker php

Describe the bug

Minimal Reproduction

./rr serve -c .rr.temporal.dev.yaml

version: "3"

metrics:
  address: 0.0.0.0:2116

status:
  address: 0.0.0.0:2115

server:
  command: "php public/index.php"
  env:
    - APP_RUNTIME: Vanta\Integration\Symfony\Temporal\Runtime\TemporalRuntime

rpc:
  listen: tcp://0.0.0.0:6001

temporal:
  address: "mdm_pos_temporal_server:7233"
  namespace: mdm
  activities:
    num_workers: 4
  metrics:
    driver: prometheus
    address: 0.0.0.0:2117
    type: "summary"


logs:
  level: debug
  channels:
    temporal.level: error

Environment/Versions

RR 2024.2.1
temporal/sdk v2.11.2

Additional context

Problem line https://github.com/temporalio/sdk-php/blob/master/src/Internal/Transport/Router/GetWorkerInfo.php#L85

@root-aza root-aza added the Bug Something isn't working label Dec 2, 2024
@cv65kr
Copy link
Contributor

cv65kr commented Dec 3, 2024

@root-aza it's issue in bundle which you are using - https://github.com/VantaFinance/temporal-bundle/blob/main/src/DataConverter/SymfonySerializerDataConverter.php#L51 should have option ['preserve_empty_objects' => true].

@root-aza
Copy link
Contributor Author

root-aza commented Dec 3, 2024

Oops. Thanks!

@root-aza root-aza closed this as completed Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants