Giter Club home page Giter Club logo

hatchet-typescript's Introduction

hatchet-typescript's People

Contributors

dependabot[bot] avatar grutt avatar steebchen avatar abelanger5 avatar grahhnt avatar

Stargazers

Cory Li avatar Soohoon Choi avatar Jonny Gamba avatar  avatar ⊣˚∆˚⊢ avatar darris avatar Matt Krick avatar

Watchers

 avatar  avatar  avatar

Forkers

grahhnt

hatchet-typescript's Issues

Improve error message when token is missing

This should be something like 'set HATCHET_CLIENT_TOKEN env var'

TypeError: Cannot read properties of undefined (reading 'split')
      [16](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:17) |
      [17](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:18) | function extractClaimsFromJWT(token: string): any {
    > [18](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:19) |   const parts = token.split('.');
         |                       ^
      [19](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:20) |   if (parts.length !== 3) {
      [20](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:21) |     throw new Error('Invalid token format');
      [21](https://github.com/hatchet-dev/hatchet-typescript/actions/runs/8160772412/job/22308095797?pr=3#step:13:22) |   }

fix: ensure that `registerWorkflow` is awaited/throw an error if not awaited

If a user doesn't await the registerWorkflow method, they get race conditions where sometimes the workflow is not registered.

We should track the state of each registerWorkflow operation and only start the worker once those operations are completed. Or throw an error if those operations are not awaited.

Invalid enum value on HATCHET_CLIENT_TLS_STRATEGY

Hi! Locally running hatchet server, when HATCHET_CLIENT_TLS_STRATEGY=none gives error:

Error: Invalid client config: [
  {
    "received": "none",
    "code": "invalid_enum_value",
    "options": [
      "tls",
      "mtls"
    ],
    "path": [
      "tls_config",
      "tls_strategy"
    ],
    "message": "Invalid enum value. Expected 'tls' | 'mtls', received 'none'"
  }
]

Invalid `main` field in package.json

(node:2784) [DEP0128] DeprecationWarning: Invalid 'main' field in '/home/runner/work/distill/distill/node_modules/@hatchet-dev/typescript-sdk/package.json' of 'dist/index.js'. Please either fix that or report it to the module author

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.