Skip to content

Incorrectly instantiated proxy URL #33254

Open
@waldekmastykarz

Description

@waldekmastykarz
  • Package Name: core-rest-pipeline
  • Package Version: latest in source
  • Operating system: all
  • nodejs
    • version:
  • browser
    • name/version:
  • typescript
    • version:
  • Is the bug related to documentation in

Describe the bug
In the proxy policy, we try to instantiate the proxy URL using only the host:

parsedProxyUrl = new URL(settings.host);
. This fails with an exception, because URL expects at least a protocol and a host name.

To Reproduce
Steps to reproduce the behavior:
1.

Expected behavior
Change how we instantiate the proxy URL from ProxySettings

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Azure.CoreClientThis issue points to a problem in the data-plane of the library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions