Skip to content

RuntimeError when starting Temporal test server in Python SDK #8656

@grinyael86

Description

@grinyael86

Expected Behavior

The temporal test server is downloaded and running

Actual Behavior

When trying to start the Temporal test server using the Python SDK, I encounter the following error:

RuntimeError: Failed starting test server: error sending request for url (https://temporal.download/temporal-test-server/default?arch=amd64&platform=linux&sdk-name=sdk-python&sdk-version=1.17.0)

The issue does not always happen, and sometimes it works fine - no blocking firewall or any network restriction from my side

Steps to Reproduce the Problem

Create a test that has a worker who uses that as a client:

async with await WorkflowEnvironment.start_time_skipping() as env: yield env.client

like:

async with Worker( client=temporal_env, task_queue="my_job_queue", workflows=[MyWorkflow], activities=[my_activity], activity_executor=activity_executor, ): result = await temporal_env.execute_workflow( WorkflowsNames.MY_WORKFLOW, workflow_input, id=f"test-workflow-{workflow_input.data.trans_id}", task_queue="MY_job_queue", execution_timeout=timedelta(minutes=10), )

a second way to reproduce:

run for linux:

curl -v "https://temporal.download/temporal-test-server/default?arch=amd64&platform=linux&sdk-name=sdk-python&sdk-version=1.17.0"

run for windows:

curl -v "https://temporal.download/temporal-test-server/default?arch=amd64&platform=windows&sdk-name=sdk-python&sdk-version=1.17.0"

and check if it's blocked or not

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions