Skip to content

unsupported-protocol

Id
@azure-tools/typespec-client-generator-core/unsupported-protocol

Severity: error

This diagnostic is issued when TCGC cannot resolve an operation as an HTTP or HTTPS operation.

  • Area: Service method generation. Blocks creating a TCGC service operation for a non-HTTP/non-HTTPS protocol operation.
  • Not affected: The TypeSpec operation can still exist outside TCGC HTTP client generation.

TCGC reports:

Currently we only support HTTP and HTTPS protocols

Add appropriate HTTP route and verb decorators to the operation, or remove it from the TCGC-generated client surface.