Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug] Getting a "ValueError: Unknown Encoding: �)0�" error when running hello world sample app #110

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

Closed
vkarpov15 opened this issue May 25, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@vkarpov15
Copy link
Contributor

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://docs.temporal.io/docs/node/getting-started/
  2. Follow steps
  3. Get below error when running node lib/worker/schedule-workflow.js:
2021-05-25T22:02:48.562Z [INFO] webpack 5.37.1 compiled successfully in 744 ms
2021-05-25T22:02:48.696Z [INFO] Worker state changed { state: 'RUNNING' }
2021-05-25T22:02:51.942Z [ERROR] Worker failed {
  error: ValueError: Unknown encoding: ��)�0�
      at CompositeDataConverter.fromPayload (/home/val/Workspace/temporalio/example/node_modules/@temporalio/workflow/lib/converter/data-converter.js:29:19)
      at /home/val/Workspace/temporalio/example/node_modules/@temporalio/workflow/lib/converter/data-converter.js:54:47
      at Array.map (<anonymous>)
      at Object.arrayFromPayloads (/home/val/Workspace/temporalio/example/node_modules/@temporalio/workflow/lib/converter/data-converter.js:54:20)
      at /home/val/Workspace/temporalio/example/node_modules/@temporalio/worker/lib/worker.js:303:55
      at rxjs_1.pipe.operators_1.mergeScan.state (/home/val/Workspace/temporalio/example/node_modules/@temporalio/worker/lib/rxutils.js:15:68)
      at MergeScanSubscriber._next (/home/val/Workspace/temporalio/example/node_modules/rxjs/internal/operators/mergeScan.js:55:23)
      at MergeScanSubscriber.Subscriber.next (/home/val/Workspace/temporalio/example/node_modules/rxjs/internal/Subscriber.js:66:18)
      at Subject.next (/home/val/Workspace/temporalio/example/node_modules/rxjs/internal/Subject.js:60:25)
      at GroupBySubscriber._group (/home/val/Workspace/temporalio/example/node_modules/rxjs/internal/operators/groupBy.js:98:19)
}
2021-05-25T22:02:51.943Z [INFO] Worker state changed { state: 'FAILED' }
  May 25 18:02:51.943  WARNtemporal_sdk_core::workflow::concurrency_manager: Sending side of workflow machine creator was dropped. Likely the WorkflowConcurrencyManager was dropped. This indicates a failure to call shutdown.

Expected behavior
A clear and concise description of what you expected to happen.

No error

Screenshots/Terminal ouput
If applicable, add screenshots or code blocks to help explain your problem. You can also use Loom to do short, free video bug reports.

image

Versions (please complete the following information where relevant):

  • OS: [e.g. Mac, Windows, Linux]
  • Temporal Version [e.g. 1.7.0?]
  • are you using Docker or Kubernetes or building Temporal from source?

Xubuntu 18.04, Node v14.4.0, @temporalio/create v0.3.0

Additional context
Add any other context about the problem here.

@vkarpov15 vkarpov15 added the bug Something isn't working label May 25, 2021
@vkarpov15
Copy link
Contributor Author

This problem goes away when I change task queue names, so I think it may be due to an old entry in the task queue causing issues.

@bergundy
Copy link
Member

Sounds like you figured out the issue.
You can verify by listing open Workflows on you Temporal server and finding one that uses the default namespace and the tutorial task queue.
If you change the Worker log level to DEBUG you might find out some more information too.
We can definitely improve the error message and probably should prevent this sort of error from killing the Worker.

@bergundy
Copy link
Member

TBH, I don't think we can improve the error message much, looks like the Payload metadata contains non-unicode characters https://github.com/temporalio/sdk-node/blob/a25c0feca791a195eb5e50cf8c0fd9e0b5a1db83/packages/workflow/src/converter/data-converter.ts#L65

@swyxio
Copy link
Contributor

swyxio commented May 26, 2021

use temporal, unleash cthulu!

@bergundy
Copy link
Member

@vkarpov15 can we close this?

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

3 participants