GithubHelp home page GithubHelp logo

Comments (10)

abelanger5 avatar abelanger5 commented on May 27, 2024

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.

Jak2k avatar Jak2k commented on May 27, 2024

I copy-pasted the docker-compose from the example-repo.

from hatchet.

grutt avatar grutt commented on May 27, 2024

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.

Jak2k avatar Jak2k commented on May 27, 2024

I only set the token, just like the quickstart's README told.

from hatchet.

grutt avatar grutt commented on May 27, 2024

🤔 Would you be able to decode the token (JWT) and send the payload?

from hatchet.

Jak2k avatar Jak2k commented on May 27, 2024
{
  "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.

Jak2k avatar Jak2k commented on May 27, 2024

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.

Jak2k avatar Jak2k commented on May 27, 2024

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.

abelanger5 avatar abelanger5 commented on May 27, 2024

@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.

grutt avatar grutt commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.