Skip to content

Request URL is missing an 'http://' or 'https://' protocol #315

@Junaid-Nazir-828

Description

@Junaid-Nazir-828

When running the Stagehand Python example:

uv run python examples/full_example.py

I receive the following error:

httpcore.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.

Environment

  • OS: Ubuntu 22.04
  • Python: 3.9
  • Installed via: uv
  • Model used: openai/gpt-4o

Environment Variables

STAGEHAND_API_URL=https://api.stagehand.browserbase.com
OPENAI_API_KEY=****
BROWSERBASE_API_KEY=****
BROWSERBASE_PROJECT_ID=****

Full Traceback

Traceback (most recent call last):
  File ".../httpx/_transports/default.py", line 101, in map_httpcore_exceptions
    yield
  File ".../httpx/_transports/default.py", line 394, in handle_async_request
    resp = await self._pool.handle_async_request(req)
  File ".../httpcore/_async/connection_pool.py", line 207, in handle_async_request
    raise UnsupportedProtocol(
httpcore.UnsupportedProtocol: Request URL is missing an 'http://' or 'https://' protocol.

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