Skip to content

[Bug] Network error while sending worker heartbeat after updating to 1.12.2 #1765

@HalfdanJ

Description

@HalfdanJ

What are you really trying to do?

Run temporal worker in typescript with sdk version 1.12.2

Describe the bug

We are running a typescript worker, after updating to version 1.12.2 from 1.12.1 our worker keeps crashing in production environment.

Network error while sending worker heartbeat �
Status { 
  code: PermissionDenied, 
  message: "Request unauthorized.", 
  details: b"\x08\x07\x12\x15Request unauthorized.\x1a\x8d\x01\nHtype.googleapis.com/temporal.api.errordetails.v1.PermissionDeniedFailure\x12A\n?caller has insufficient permissions for namespace '<REDACTED>'", 
  metadata: MetadataMap { headers: {"content-type": "application/grpc", "server": "temporal", "date": "Tue, 19 Aug 2025 14:32:54 GMT"} }, 
  source: None
 }

This is not happening when running locally connected to the local temporal dev environment. Only when connecting to Temporal Cloud.

I'm using API key to connect, could this have something to do with it?

I'm noticing in the diff a change was made regarding worker heartbeat. v1.12.1...v1.12.2#diff-4fbe311f299e2a07f622e1a29cb87cd1950978df54e13a3fe116a3e1bdd201acR307

Minimal Reproduction

Havent yet made a code sample for this, but can do

Environment/Versions

  • OS and processor: Linux
  • Temporal Version: 1.12.2
  • Are you using Docker or Kubernetes or building Temporal from source? Docker (in Google Cloud Run)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions