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

500 error on release with v0.25.0 #75

Open
parallaxisjones opened this issue Aug 11, 2022 · 3 comments
Open

500 error on release with v0.25.0 #75

parallaxisjones opened this issue Aug 11, 2022 · 3 comments
Labels
question Further information is requested

Comments

@parallaxisjones
Copy link

I had this working just fine, but now suddenly the release api is returning a 500 error -- it's unclear to me where the problem is exactly... any suggestions or ideas about what's wrong here?

Fetching related data...
Generating release...
Executing Release
 {
  "tag_name" : "test-0.3.0",
  "target_commitish" : "92e6313338aac7c190879dde4c14dabebc75e999",
  "name" : "test-0.3.0",
  "body" : "Version 0.3.0\n\n",
  "draft" : false,
  "prerelease" : false,
  "generate_release_notes" : true
}
----- Error --------------------------------------------------------------------
Type:     clojure.lang.ExceptionInfo
Message:  babashka.curl: status 500
Data:     {:status 500, :headers {"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", "referrer-policy" "origin-when-cross-origin, strict-origin-when-cross-origin", "x-accepted-oauth-scopes" "repo", "server" "GitHub.com", "content-type" "application/json; charset=utf-8", "access-control-allow-origin" "*", "x-content-type-options" "nosniff", "content-length" "0", "x-frame-options" "deny", "strict-transport-security" "max-age=3[15](https://github.com/Chub-Engineering/sla-service/runs/7794009369?check_suite_focus=true#step:5:16)36000; includeSubdomains; preload", "x-ratelimit-limit" "5000", "x-ratelimit-remaining" "4939", "x-ratelimit-reset" "[16](https://github.com/***/repo-omitted/runs/7794009369?check_suite_focus=true#step:5:17)60246647", "x-github-request-id" "0506:8145:7BB5C3:14344B2:62F55379", "x-oauth-scopes" "repo, write:packages, write:repo_hook", "x-ratelimit-used" "61", "x-github-media-type" "github.v3; format=json", "date" "Thu, 11 Aug 2022 19:07:38 GMT", "vary" "Accept-Encoding, Accept, X-Requested-With", "x-ratelimit-resource" "core", "x-xss-protection" "0", "content-security-policy" "default-src 'none'"}, :body "", :err "", :process #object[java.lang.ProcessImpl 0xe06364c "Process[pid=29, exitValue=0]"], :exit 0}
Location: /var/src/release-on-push-action/src/release_on_push_action/core.clj:140:5

----- Context ------------------------------------------------------------------
136:   ;; Use a file because the release data may be too large for an inline curl arg
137:   (let [file (java.io.File/createTempFile "release" ".json")]
138:     (.deleteOnExit file)
139:     (json/encode-stream new-release-data (clojure.java.io/writer file))
140:     (curl/post (format "%s/repos/%s/releases" (:github/api-url context) (:repo context))
         ^--- babashka.curl: status 500
141:                {:body    file
142:                 :headers (github/headers context)})))
143: 
144: (defn set-output-escape
145:   "Escapes text for the set-output command in Github Actions.

----- Locals -------------------------------------------------------------------
context:          {:input/release-name "<RELEASE_TAG>", :github/api-url "https://api.github.com", :bump-version-scheme "minor", :input/tag-prefix "test-", :input/max-commits 50, :token "***", :input/release-body "", :input/use-github-release-notes true, :repo "***/repo-omitted", :dry-run false, ...}
new-release-data: {:tag_name "test-0.3.0", :target_commitish "92e6313338aac7c190879dde4c14dabebc75e999", :name "test-0.3.0", :body "Version 0.3.0\n\n", :draft false, :prerelease false, :generate_release_notes true}
file:             #object[java.io.File 0x686eabd0 "/tmp/release6467974715988198619.json"]

----- Stack trace --------------------------------------------------------------
babashka.curl/post                              - <built-in>
release-on-push-action.core/create-new-release! - /var/src/release-on-push-action/src/release_on_push_action/core.clj:140:5
release-on-push-action.core/create-new-release! - /var/src/release-on-push-action/src/release_on_push_action/core.clj:135:1
release-on-push-action.core                     - /var/src/release-on-push-action/src/release_on_push_action/core.clj:[18](https://github.com/***/repo-omitted/runs/7794009369?check_suite_focus=true#step:5:19)4:[20](https://github.com/***/repo-omitted/runs/7794009369?check_suite_focus=true#step:5:21)
clojure.core/println                            - <built-in>
release-on-push-action.core                     - /var/src/release-on-push-action/src/release_on_push_action/core.clj:184:11
clojure.core/apply                              - <built-in>
user                                            - <expr>:1:[52](https://github.com/***/repo-omitted/runs/7794009369?check_suite_focus=true#step:5:53)```
@parallaxisjones parallaxisjones changed the title 500 error on release 500 error on release with v0.25.0 Aug 11, 2022
@ctoestreich
Copy link

ctoestreich commented Aug 12, 2022

We got this same error. Seems like it may need to use notes as an external json post OR reduce the length of the notes.

@ctoestreich
Copy link

@rymndhng Any thoughts on this?

@rymndhng
Copy link
Owner

How frequently does this 500 case reproduce?
How big of a file are your uploads? (I think the comment on file size may be a red herring)

@rymndhng rymndhng added the question Further information is requested label Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants