Skip to content

HttpResponseError in prompt_pipeline.py and prompt_eval.py - Scripts Value cannot be null. (Parameter 'bytes') #226

@Stefano-Salvatori

Description

@Stefano-Salvatori

We are experiencing an intermittent issue when running the prompt_pipeline or prompt_eval scripts in the pipelines. The error encountered is:

azure.core.exceptions.HttpResponseError: (UserError) Value cannot be null. (Parameter 'bytes') Code: UserError Message: Value cannot be null. (Parameter 'bytes')

This issue seems to occur randomly. Most of the time, it blocks the execution of the pipelines, but occasionally, the scripts run without any errors. The problem started occurring on Monday, March 24th, 2025.

Complete Traceback:

File "/home/azureuser/myagent/_work/5/s/llmops/common/prompt_pipeline.py", line 356, in prepare_and_execute
    run = pf.run(
File "/home/azureuser/myagent/_work/_tool/Python/3.9.19/x64/lib/python3.9/site-packages/promptflow/azure/_pf_client.py", line 305, in run
    return self.runs.create_or_update(run=run, **kwargs)
File "/home/azureuser/myagent/_work/_tool/Python/3.9.19/x64/lib/python3.9/site-packages/promptflow/_sdk/_telemetry/activity.py", line 265, in wrapper
    return f(self, *args, **kwargs)
File "/home/azureuser/myagent/_work/_tool/Python/3.9.19/x64/lib/python3.9/site-packages/promptflow/azure/operations/_run_operations.py", line 187, in create_or_update
    self.stream(run=run.name)
File "/home/azureuser/myagent/_work/_tool/Python/3.9.19/x64/lib/python3.9/site-packages/promptflow/_sdk/_telemetry/activity.py", line 265, in wrapper
    return f(self, *args, **kwargs)
File "/home/azureuser/myagent/_work/_tool/Python/3.9.19/x64/lib/python3.9/site-packages/promptflow/azure/operations/_run_operations.py", line 641, in stream
    available_logs = self._get_log(flow_run_id=run.name)
File "/home/azureuser/myagent/_work/_tool/Python/3.9.19/x64/lib/python3.9/site-packages/promptflow/azure/operations/_run_operations.py", line 543, in _get_log
    return self._service_caller.caller.bulk_runs.get_flow_run_log_content(
File "/home/azureuser/myagent/_work/_tool/Python/3.9.19/x64/lib/python3.9/site-packages/azure/core/tracing/decorator.py", line 116, in wrapper_use_tracer
    return func(*args, **kwargs)
File "/home/azureuser/myagent/_work/_tool/Python/3.9.19/x64/lib/python3.9/site-packages/promptflow/azure/_restclient/flow/operations/_bulk_runs_operations.py", line 973, in get_flow_run_log_content
    raise HttpResponseError(response=response, model=error)
azure.core.exceptions.HttpResponseError: (UserError) Value cannot be null. (Parameter 'bytes') Code: UserError Message: Value cannot be null. (Parameter 'bytes')

Additional Information:

The issue started on March 24th, 2025.
The environment uses Python 3.9.19; we updated all promptflow packages to 1.17.2

Request:
We need assistance in identifying the root cause of this error and a potential fix or workaround to ensure the scripts run consistently without interruption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions