Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept header for Retrieve a schema call doesn't work #56

Open
dwright-adobe opened this issue Jun 24, 2022 · 1 comment
Open

Accept header for Retrieve a schema call doesn't work #56

dwright-adobe opened this issue Jun 24, 2022 · 1 comment

Comments

@dwright-adobe
Copy link

Expected Behaviour

Call should be made successfully with the included accept header

Actual Behaviour

The current included accept header for the Retrieve a schema call is "application/vnd.adobe.xed-id+json"
When making a call with this header, the response is:
{
"type": "http://ns.adobe.com/aep/errors/XDM-1007-400",
"title": "Accept header invalid",
"status": 400,
"report": {
"registryRequestId": "d3c91881-5726-4c3a-aae1-a28ecb1a6b9d",
"timestamp": "06-24-2022 04:12:19",
"detailed-message": "The supplied Accept header is not valid: application/vnd.adobe.xed-id+json - A valid Accept value should look like application/vnd.adobe.'{xed|xdm'}+json; version=1 (Version should be specified)",
"sub-errors": []
},
"detail": "The supplied Accept header is not valid: application/vnd.adobe.xed-id+json - A valid Accept value should look like application/vnd.adobe.'{xed|xdm'}+json; version=1 (Version should be specified)"
}

I was able to get a good response by updating the Accept header to:
application/vnd.adobe.xed+json; version=1

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Download the Schema Registry API collection.
Make a call using "Retrieve a schema" and the included Accept header

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@dwright-adobe and others