Azure / Azure/azure-sdk-for-cpp

The momento-datetime header is missing from the response even when the accept-datetime request header is sent

Open
#6,337 0 comments 0 reactions 0 assignees View on GitHub
App Configuration
Dominant language
C++
Stars
205
Forks
172
Avg merge
1d 3h
Merged PRs (30d)
37

Description

When testing the time-based access feature in the C++ AppConfig client SDK (for an endpoint like `GetLabels`), I don't see the `Memento-DateTime` header being returned in the response back from the service as described in the doc example here:
https://learn.microsoft.com/en-us/azure/azure-app-configuration/rest-api-labels?pivots=v23-10#time-based-access

I see a `"date"` header, which is the time when request was received, but not the `Memento-DateTime` header corresponding to the value in the Accept-DateTime header in the request (which was "Fri, 10 Jan 2025 00:00:00 GMT" ).

This requires further investigation to root cause the issue.

Here's the response headers I see:
![Image](https://github.com/user-attachments/assets/5c9fd8be-ee51-4c2d-8788-b90a1459e1de)

```C++
GetLabelsOptions options;
options.Name = "paging-*";
options.AcceptDatetime = "Fri, 10 Jan 2025 00:00:00 GMT";

GetLabelsPagedResponse labelsPage = configurationClient.GetLabels("accept", options);
```

The service team is able to see the expected response header testing the endpoint directly using REST API client:
![Image](https://github.com/user-attachments/assets/5f18a89f-79cf-49e9-b05f-8864dfdc9d4f)

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.