yegor256/wring

404 Not Found comment

yegor256 opened this issue · 31 comments

I keep getting this 10-50 times a day in the log:

java.lang.AssertionError: HTTP response status is not equal to 200:
404 Not Found [https://api.github.com/repos/Harvest-foundation/core/issues/185/comments]
Server: GitHub.com
Date: Mon, 15 Oct 2018 11:15:44 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Status: 404 Not Found
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4991
X-RateLimit-Reset: 1539605620
X-OAuth-Scopes: notifications
X-Accepted-OAuth-Scopes: 
X-GitHub-Media-Type: github.v3
Access-Control-Expose-Headers: ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
X-Frame-Options: deny
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Content-Security-Policy: default-src 'none'
X-GitHub-Request-Id: BDBC:740F:15106FC:2CA2220:5BC476E0

{"message":"Not Found","documentation_url":"https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue"}
Expected: HTTP response with status 200
     but: was <404 Not Found [https://api.github.com/repos/Harvest-foundation/core/issues/185/comments]
Server: GitHub.com
Date: Mon, 15 Oct 2018 11:15:44 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Status: 404 Not Found
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4991
X-RateLimit-Reset: 1539605620
X-OAuth-Scopes: notifications
X-Accepted-OAuth-Scopes: 
X-GitHub-Media-Type: github.v3
Access-Control-Expose-Headers: ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
Access-Control-Allow-Origin: *
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
X-Frame-Options: deny
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Content-Security-Policy: default-src 'none'
X-GitHub-Request-Id: BDBC:740F:15106FC:2CA2220:5BC476E0

{"message":"Not Found","documentation_url":"https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue"}>
    at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    at com.jcabi.http.response.RestResponse.assertStatus(RestResponse.java:111)
    at com.jcabi.github.RtValuePagination$Items.fetch(RtValuePagination.java:193)
    at com.jcabi.github.RtValuePagination$Items.hasNext(RtValuePagination.java:179)
    at com.jcabi.github.Smarts$1.hasNext(Smarts.java:87)
    at io.wring.agents.github.BoIssue.text(BoIssue.java:126)
    at io.wring.agents.github.BoIssue.push(BoIssue.java:79)
    at io.wring.agents.github.Subject.push(Subject.java:130)
    at io.wring.agents.github.AgGithub.push(AgGithub.java:172)
    at io.wring.agents.github.AgGithub.push(AgGithub.java:110)
    at io.wring.agents.JsonAgent.push(JsonAgent.java:97)
    at io.wring.agents.Exec.log(Exec.java:188)
    at io.wring.agents.Exec.body(Exec.java:161)
    at io.wring.agents.Exec.lambda$run$0(Exec.java:98)
    at org.cactoos.func.FuncWithFallback.apply(FuncWithFallback.java:84)
    at org.cactoos.func.UncheckedFunc.lambda$apply$0(UncheckedFunc.java:58)
    at org.cactoos.scalar.IoCheckedScalar.value(IoCheckedScalar.java:70)
    at org.cactoos.scalar.UncheckedScalar.value(UncheckedScalar.java:58)
    at org.cactoos.func.UncheckedFunc.apply(UncheckedFunc.java:59)
    at io.wring.agents.Exec.run(Exec.java:142)
    at io.wring.agents.Cycle.lambda$exec$2(Cycle.java:96)
    at org.cactoos.func.FuncWithFallback.apply(FuncWithFallback.java:92)
    at org.cactoos.func.UncheckedFunc.lambda$apply$0(UncheckedFunc.java:58)
    at org.cactoos.scalar.IoCheckedScalar.value(IoCheckedScalar.java:70)
    at org.cactoos.scalar.UncheckedScalar.value(UncheckedScalar.java:58)
    at org.cactoos.func.UncheckedFunc.apply(UncheckedFunc.java:59)
    at io.wring.agents.Cycle.exec(Cycle.java:101)
    at io.wring.agents.Cycle.exec(Cycle.java:54)
    at org.cactoos.func.FuncOf.lambda$new$3(FuncOf.java:88)
    at org.cactoos.func.FuncOf.apply(FuncOf.java:104)
    at org.cactoos.func.FuncWithFallback.apply(FuncWithFallback.java:84)
    at org.cactoos.func.UncheckedFunc.lambda$apply$0(UncheckedFunc.java:58)
    at org.cactoos.scalar.IoCheckedScalar.value(IoCheckedScalar.java:70)
    at org.cactoos.scalar.UncheckedScalar.value(UncheckedScalar.java:58)
    at org.cactoos.func.UncheckedFunc.apply(UncheckedFunc.java:59)
    at org.cactoos.func.RunnableOf.run(RunnableOf.java:89)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at com.jcabi.log.VerboseThreads$Wrap.run(VerboseThreads.java:220)
    at java.lang.Thread.run(Thread.java:748)
0crat commented

@carlosmiranda/z please, pay attention to this issue

0crat commented

Job #72 is now in scope, role is DEV

0crat commented

Bug was reported, see §29: +15 point(s) just awarded to @yegor256/z

0crat commented

The job #72 assigned to @paulodamaso/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; there will be a monetary reward for this job

@g4s8 Would you please check if wring have access to Harvest-foundation/core repository? Looks like a permission problem to me.

g4s8 commented

@paulodamaso no it doesn't

@yegor256 well, looks like that it's causing this errors, @g4s8 please give wring access to the repo and let's see if the error still happens

g4s8 commented

@paulodamaso why? Actually it was not intended to add wring to this repo.

@g4s8 Right, I thought that you was trying to use wring, sorry.

@carlosmiranda Looks like we have a problem with user authentication; maybe user token is not valid, and its not used for accessing public repos, so it just complains when accessing private repos. To solve this issue I need to know how wring must behave when this problem happens.

0crat commented

@paulodamaso/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@paulodamaso we should be able to notify the users who configured the repo of any errors, somehow. Perhaps within "inbox", but maybe better to have a new "errors" page.

@0crat wait for #75 review

0crat commented

@0crat wait for #75 review (here)

@paulodamaso The impediment for #72 was registered successfully by @paulodamaso/z

0pdd commented

@yegor256 3 puzzles #76, #77, #78 are still not solved.

@yegor256 done and merged, please close

0pdd commented

@yegor256 3 puzzles #76, #78, #82 are still not solved; solved: #77.

0pdd commented

@yegor256 3 puzzles #76, #82, #83 are still not solved; solved: #77, #78.

0pdd commented

@yegor256 4 puzzles #82, #83, #85, #86 are still not solved; solved: #76, #77, #78.

@yegor256 please close this issue, it was merged almost one month ago

0crat commented

@ypshenychka/z please review this job completed by @paulodamaso/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

0crat commented

The job #72 is now out of scope

@0crat quality good

0crat commented

Order was finished, quality is "good": +35 point(s) just awarded to @paulodamaso/z

0crat commented

Quality review completed: +8 point(s) just awarded to @ypshenychka/z

0pdd commented

@yegor256 3 puzzles #83, #85, #86 are still not solved; solved: #76, #77, #78, #82.

0pdd commented

@yegor256 2 puzzles #85, #86 are still not solved; solved: #76, #77, #78, #82, #83.