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

503 when trying to connect to Hatchet Cloud from Go SDK #1340

Open
krzwiatrzyk opened this issue Mar 14, 2025 · 0 comments
Open

503 when trying to connect to Hatchet Cloud from Go SDK #1340

krzwiatrzyk opened this issue Mar 14, 2025 · 0 comments

Comments

@krzwiatrzyk
Copy link

{"level":"debug","service":"client","time":"2025-03-14T09:23:28.579156+01:00","message":"connecting to zyw6q.cloud.onhatchet.run:443 with TLS server name zyw6q.cloud.onhatchet.run"}
{"level":"debug","service":"client","time":"2025-03-14T09:23:34.51773+01:00","message":"grpc_retry attempt: 1, backoff for rpc error: code = Unavailable desc = unexpected HTTP status code received from server: 503 (Service Unavailable); transport: received unexpected content-type \"text/html\""}
{"level":"debug","service":"client","time":"2025-03-14T09:23:43.888324+01:00","message":"grpc_retry attempt: 2, backoff for rpc error: code = Unavailable desc = unexpected HTTP status code received from server: 503 (Service Unavailable); transport: received unexpected content-type \"text/html\""}

Versions:

module hatchet-demo

go 1.23.0

toolchain go1.23.4

require github.com/hatchet-dev/hatchet v0.55.5

Client:

package main

import (
	"context"
	"fmt"
	"log/slog"
	"os"
	"strconv"
	"time"

	"hatchet-demo/internal/types"

	"github.com/hatchet-dev/hatchet/pkg/client"
	"github.com/hatchet-dev/hatchet/pkg/cmdutils"
	"github.com/hatchet-dev/hatchet/pkg/worker"
)

func main() {
	token := os.Getenv("HATCHET_CLIENT_TOKEN")
	if token == "" {
		slog.Error("HATCHET_CLIENT_TOKEN is not set")
		os.Exit(1)
	}

	hatchetClient, err := client.New(
		client.WithToken(token),
	)
	if err != nil {
		slog.Error(err.Error())
		os.Exit(1)
	}
        ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant