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

[Bug]: Process Branch Throw Error #385

Open
egekocabas opened this issue Feb 18, 2025 · 0 comments
Open

[Bug]: Process Branch Throw Error #385

egekocabas opened this issue Feb 18, 2025 · 0 comments
Assignees
Labels
bug Something isn't working todo

Comments

@egekocabas
Copy link
Member

Contact Details

No response

What happened?

See push event comes for branch chore/test-helios but we are making request to branch chore

Steps To Reproduce

No response

What browsers are you seeing the problem on?

No response

Relevant log output

application-server-1  | 2025-02-18T00:10:22.950Z  INFO 1 --- [Helios] [         nats:4] d.t.c.a.helios.nats.NatsConsumerService  : Received message with subject: github.ls1intum.Artemis.push
webhook-listener-1    |       INFO   192.168.1.8:53766 - "POST /github HTTP/1.1" 200
application-server-1  | 2025-02-18T00:10:22.952Z  INFO 1 --- [Helios] [         nats:4] d.t.c.a.h.c.g.GitHubPushMessageHandler   : Received push event for repository: ls1intum/Artemis, commitSha: 0290e3da26729645b9812bee4228017cfdad665f, ref: refs/heads/chore/test-helios
application-server-1  | 2025-02-18T00:10:22.954Z  INFO 1 --- [Helios] [         nats:4] okhttp3.OkHttpClient                     : --> GET https://api.github.com/repos/ls1intum/Artemis
application-server-1  | 2025-02-18T00:10:23.260Z  INFO 1 --- [Helios] [         nats:4] okhttp3.OkHttpClient                     : <-- 200 https://api.github.com/repos/ls1intum/Artemis (305ms, unknown-length body)
application-server-1  | 2025-02-18T00:10:23.260Z  INFO 1 --- [Helios] [         nats:4] t.c.a.h.h.HttpClientRateLimitInterceptor : GitHub API Rate Limit: limit=11150, remaining=10331, used=819, resets at 18/02/2025 00:16:46 (UTC), 18/02/2025 01:16:46 (CET)
application-server-1  | 2025-02-18T00:10:23.262Z  INFO 1 --- [Helios] [         nats:4] okhttp3.OkHttpClient                     : --> GET https://api.github.com/repos/ls1intum/Artemis/commits/0290e3da26729645b9812bee4228017cfdad665f
application-server-1  | 2025-02-18T00:10:23.743Z  INFO 1 --- [Helios] [         nats:4] okhttp3.OkHttpClient                     : <-- 200 https://api.github.com/repos/ls1intum/Artemis/commits/0290e3da26729645b9812bee4228017cfdad665f (481ms, unknown-length body)
application-server-1  | 2025-02-18T00:10:23.744Z  INFO 1 --- [Helios] [         nats:4] t.c.a.h.h.HttpClientRateLimitInterceptor : GitHub API Rate Limit: limit=11150, remaining=10330, used=820, resets at 18/02/2025 00:16:46 (UTC), 18/02/2025 01:16:46 (CET)
application-server-1  | 2025-02-18T00:10:23.778Z  INFO 1 --- [Helios] [         nats:4] okhttp3.OkHttpClient                     : --> GET https://api.github.com/repos/ls1intum/Artemis/branches/chore
application-server-1  | 2025-02-18T00:10:23.950Z  INFO 1 --- [Helios] [         nats:4] okhttp3.OkHttpClient                     : <-- 404 https://api.github.com/repos/ls1intum/Artemis/branches/chore (171ms, unknown-length body)
application-server-1  | 2025-02-18T00:10:23.951Z  INFO 1 --- [Helios] [         nats:4] t.c.a.h.h.HttpClientRateLimitInterceptor : GitHub API Rate Limit: limit=11150, remaining=10329, used=821, resets at 18/02/2025 00:16:46 (UTC), 18/02/2025 01:16:46 (CET)
application-server-1  | org.kohsuke.github.GHFileNotFoundException: https://api.github.com/repos/ls1intum/Artemis/branches/chore {"message":"Branch not found","documentation_url":"https://docs.github.com/rest/branches/branches#get-a-branch","status":"404"}
application-server-1  | 	at org.kohsuke.github.GitHubClient.interpretApiError(GitHubClient.java:737)
application-server-1  | 	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:480)
application-server-1  | 	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:427)
application-server-1  | 	at org.kohsuke.github.Requester.fetch(Requester.java:85)
application-server-1  | 	at org.kohsuke.github.GHRepository.getBranch(GHRepository.java:2642)
application-server-1  | 	at de.tum.cit.aet.helios.commit.github.GitHubPushMessageHandler.handleEvent(GitHubPushMessageHandler.java:56)
application-server-1  | 	at de.tum.cit.aet.helios.commit.github.GitHubPushMessageHandler.handleEvent(GitHubPushMessageHandler.java:16)
application-server-1  | 	at de.tum.cit.aet.helios.github.GitHubMessageHandler.onMessage(GitHubMessageHandler.java:39)
application-server-1  | 	at de.tum.cit.aet.helios.nats.NatsConsumerService.handleMessage(NatsConsumerService.java:266)
application-server-1  | 	at io.nats.client.impl.NatsMessageConsumer.lambda$doSub$0(NatsMessageConsumer.java:68)
application-server-1  | 	at io.nats.client.impl.NatsJetStream$AsyncMessageHandler.onMessage(NatsJetStream.java:554)
application-server-1  | 	at io.nats.client.impl.NatsDispatcher.run(NatsDispatcher.java:104)
application-server-1  | 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
application-server-1  | 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
application-server-1  | 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
application-server-1  | 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
application-server-1  | 	at java.base/java.lang.Thread.run(Thread.java:1583)
application-server-1  | Caused by: java.io.FileNotFoundException: https://api.github.com/repos/ls1intum/Artemis/branches/chore
application-server-1  | 	at org.kohsuke.github.GitHubConnectorResponseErrorHandler$1.onError(GitHubConnectorResponseErrorHandler.java:79)
application-server-1  | 	at org.kohsuke.github.GitHubClient.detectKnownErrors(GitHubClient.java:504)
application-server-1  | 	at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:464)
application-server-1  | 	... 15 more
@egekocabas egekocabas added bug Something isn't working inbox Issue comes from a user todo and removed inbox Issue comes from a user labels Feb 18, 2025
@egekocabas egekocabas self-assigned this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working todo
Projects
None yet
Development

No branches or pull requests

1 participant