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

headers get mangled #13

Open
riezebosch opened this issue Jul 12, 2023 · 1 comment
Open

headers get mangled #13

riezebosch opened this issue Jul 12, 2023 · 1 comment

Comments

@riezebosch
Copy link

  headers = {
    Accept               = "application/vnd.github+json"
    Authorization        = "Bearer ${var.GITHUB_TOKEN}"
    X-GitHub-Api-Version = "2022-11-28"
  }

state:

"body": "{\"message\":\"Bad Request\",\"errors\":\"The version you specified in the \\\"X-GitHub-API-Version\\\" request header, \\\"\\\"2022-11-28\\\"\\\", is not a supported version. The following versions are currently supported: \\\"2022-11-28\\\" (most recent).\",\"documentation_url\":\"https://docs.github.com/rest\"}",

apparently it double quotes the specific header?

@mehulgohil
Copy link
Owner

I'll have a look

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