Comments (10)
Hey @Jak2k, which docker-compose
file did you use to get the Hatchet instance running? I'm asking because I see target dns:hatchet-engine:7070
, but our docker-compose
files are setting a broadcast address of localhost:7077
in our examples.
from hatchet.
I copy-pasted the docker-compose from the example-repo.
from hatchet.
Hi @Jak2k, the hatchet-engine
hostname is only available within the Docker network created by docker-compose. When you access the service from your local machine/terminal, you need to use localhost
instead.
Are you setting the HATCHET_CLIENT_HOSTPORT
environment variable? This should not be needed.
from hatchet.
I only set the token, just like the quickstart's README told.
from hatchet.
🤔 Would you be able to decode the token (JWT) and send the payload?
from hatchet.
{
"aud": "http://localhost:8080",
"exp": 1718134560,
"grpc_broadcast_address": "hatchet-engine:7070",
"iat": 1710358560,
"iss": "http://localhost:8080",
"server_url": "http://localhost:8080",
"sub": "707d0855-80ab-4e1f-a156-f1c4546cbf52",
"token_id": "f3ca7be5-876e-49c6-9a17-709be65e37a1"
}
from hatchet.
The payload is now different:
{
"aud": "http://localhost:8080",
"exp": 1720025319,
"grpc_broadcast_address": "localhost:7077",
"iat": 1712249319,
"iss": "http://localhost:8080",
"server_url": "http://localhost:8080",
"sub": "707d0855-80ab-4e1f-a156-f1c4546cbf52",
"token_id": "a508aa56-99a9-4e25-a07a-3402a1a64cb3"
}
The error is the same:
🪓 [INFO/HatchetClient] Initialized HatchetClient
🪓 [ERROR/Admin] Error: /WorkflowService/PutWorkflow UNAVAILABLE: No connection established. Last error: 40586AA0477F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
(2024-04-04T16:52:42.825Z)
🪓 [ERROR/Admin] Error: /WorkflowService/PutWorkflow UNAVAILABLE: No connection established. Last error: 40586AA0477F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
(2024-04-04T16:52:42.825Z)
🪓 [ERROR/Admin] Error: /WorkflowService/PutWorkflow UNAVAILABLE: No connection established. Last error: 40586AA0477F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
(2024-04-04T16:52:42.825Z)
🪓 [ERROR/Admin] Error: /WorkflowService/PutWorkflow UNAVAILABLE: No connection established. Last error: 40586AA0477F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
(2024-04-04T16:52:42.825Z)
🪓 [ERROR/Admin] Error: /WorkflowService/PutWorkflow UNAVAILABLE: No connection established. Last error: 40586AA0477F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
(2024-04-04T16:52:42.825Z)
/home/jak2k/Projects/news-analysis/downloader/node_modules/.pnpm/@[email protected]/node_modules/@hatchet-dev/typescript-sdk/clients/worker/worker.js:97
throw new hatchet_error_1.default(`Could not register workflow: ${e.message}`);
^
HatchetError: Could not register workflow: /WorkflowService/PutWorkflow UNAVAILABLE: No connection established. Last error: 40586AA0477F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:354:
(2024-04-04T16:52:42.825Z)
at Worker.<anonymous> (/home/jak2k/Projects/news-analysis/downloader/node_modules/.pnpm/@[email protected]/node_modules/@hatchet-dev/typescript-sdk/clients/worker/worker.js:97:23)
at Generator.throw (<anonymous>)
at rejected (/home/jak2k/Projects/news-analysis/downloader/node_modules/.pnpm/@[email protected]/node_modules/@hatchet-dev/typescript-sdk/clients/worker/worker.js:6:65)
Node.js v21.7.1
from hatchet.
With HATCHET_CLIENT_TLS_STRATEGY=none
in .env
it works, but I now get this:
🪓 [ERROR/ActionListener] Failed to send heartbeat: /Dispatcher/Heartbeat UNIMPLEMENTED: unknown method Heartbeat for service Dispatcher
E Connection to dns:localhost:7077 at ::1:7077 rejected by server because of excess pings. Increasing ping interval to 20000 ms
🪓 [INFO/ActionListener] Connecting to Hatchet to establish listener for actions... 0/5 (last attempt: 1712249697929)
from hatchet.
@Jak2k the log 🪓 [INFO/ActionListener] Connecting to Hatchet to establish listener for actions... 0/5 (last attempt: 1712249697929)
is a sign that it's working - you should be able to trigger a workflow.
The /Dispatcher/Heartbeat UNIMPLEMENTED
error is a sign that you're on the wrong engine version, you'll need to repull the Hatchet images again and restart with docker-compose.
from hatchet.
@Jak2k have you been able to resolve this issue?
Going to close for now, but we can re open if needed.
from hatchet.
Related Issues (20)
- feat(sdk): expose `registerAction` on python and typescript SDKs HOT 1
- feat(dashboard): change user password
- [question] Is there an option to pause/resume workflows? HOT 2
- docs (typescript sdk): namespace config variable HOT 1
- feat(python sdk): namespace config var HOT 4
- feat(go sdk): namespace config var HOT 1
- test(cache): benchmark and test for cache library
- bug(frontend): copy to clipboard doesn't work on firefox (within a secure context) HOT 3
- feat: add `onFailure` steps to declarative workflows
- feat: Add Docker Swarm configuration HOT 1
- feat: make worker heartbeat intervals configurable
- bug(python-sdk): `spawn_workflow` feature bug due to misnamed `ClientImpl` `rest_client` property. HOT 2
- bug: data race in load test
- Documentation request: How do I handle a Run from Python? HOT 3
- light theme HOT 8
- Serverless support
- React.Children.only expected to receive a single React element child. HOT 1
- bug: TypeError: unsupported operand type(s) for |: 'google._upb._message.MessageMeta' and 'type'.
- existing crons are not cancelled when redeploying with a new workflow version
- [feature request] oidc keycloak
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hatchet.