Skip to content

Instantly share code, notes, and snippets.

@rtyley
Created November 12, 2024 16:28
Show Gist options
  • Select an option

  • Save rtyley/6ea206f077d24dd98e290fb2661b918c to your computer and use it in GitHub Desktop.

Select an option

Save rtyley/6ea206f077d24dd98e290fb2661b918c to your computer and use it in GitHub Desktop.
Scala Steward error when GitHub PR description is too big
2024-11-12 14:52:18,736 ERROR Steward guardian/my-repo failed
org.scalasteward.core.util.UnexpectedResponse: uri: https://api.github.com/repos/guardian/my-repo/pulls
method: POST
status: 422 Unprocessable Entity
headers:
access-control-allow-origin: *
access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
content-length: 253
content-security-policy: default-src 'none'
content-type: application/json; charset=utf-8
date: Tue, 12 Nov 2024 14:52:18 GMT
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
server: github.com
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: Accept-Encoding, Accept, X-Requested-With
x-accepted-github-permissions: pull_requests=write
x-content-type-options: nosniff
x-frame-options: deny
x-github-api-version-selected: 2022-11-28
x-github-media-type: github.v3
x-github-request-id: FFC0:18113E:14F235D:292209D:67336BA1
x-ratelimit-limit: 15000
x-ratelimit-remaining: 14992
x-ratelimit-reset: 1731425577
x-ratelimit-resource: core
x-ratelimit-used: 8
x-xss-protection: 0
body: {"message":"Validation Failed","errors":[{"resource":"Issue","code":"custom","field":"body","message":"body is too long (maximum is 65536 characters)"}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request","status":"422"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment