Azure / Azure/azure-rest-api-specs

The api-version parameter to start a job should be passed back in the Operation-Location header

Open
#16,807 2 comments 0 reactions 1 assignee Claimed by @rokulka View on GitHub
Cognitive - QnA Maker
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 2h
Merged PRs (30d)
424

Description

While working on the authoring client, we found that long-running operations (LROs) were 404'ing during status updates because the api-version query parameter was not returned. Talking with @JeffreyRichter, the Operation-Location for LROs (and nextLink for paged results) should be opaque, so they need to include the api-version parameter - the same one passed during the request to start a job or get paged results.

@ChongTang could you also check if CLU might have this problem?

I'll also be opening bugs that generated code should add it if missing based on the client options, but ideally services do this consistently so any caller doesn't have to work around the issue.

/cc @annatisch @AhmedLeithy @ZulaMostafa @mshaban-msft

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.