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

RateLimiter related intermittent failures #1790

Closed
chashikajw opened this issue Oct 4, 2023 · 1 comment
Closed

RateLimiter related intermittent failures #1790

chashikajw opened this issue Oct 4, 2023 · 1 comment
Labels
Milestone

Comments

@chashikajw
Copy link
Contributor

Description:
Following intermittent issues should be fixed

Issue1:

Error 1: https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968

org.wso2.apk.integration.api.BaseSteps.setHeaders(io.cucumber.datatable.DataTable)
[863](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:864)
    | Authorization | bearer $***accessToken*** |
[864](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:865)
  And I send "GET" request to "https://default.gw.wso2.com:9095/interceptor/1.0.0/get" with body ""                   # org.wso2.apk.integration.api.BaseSteps.sendHttpRequest(java.lang.String,java.lang.String,java.lang.String)
[865](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:866)
  And the response body should not contain "\"Interceptor-Header\""                                                   # org.wso2.apk.integration.api.BaseSteps.theResponseBodyShouldNotContain(java.lang.String)
[866](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:867)
  Then the response status code should be 200                                                                         # org.wso2.apk.integration.api.BaseSteps.theResponseStatusCodeShouldBe(int)
[867](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:868)
      java.lang.AssertionError: expected [200] but found [503]
[868](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:869)
	at org.testng.Assert.fail(Assert.java:111)
[869](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:870)
	at org.testng.Assert.failNotEquals(Assert.java:1578)
[870](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:871)
	at org.testng.Assert.assertEqualsImpl(Assert.java:150)
[871](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:872)
	at org.testng.Assert.assertEquals(Assert.java:132)
[872](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:873)
	at org.testng.Assert.assertEquals(Assert.java:1419)
[873](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:874)
	at org.testng.Assert.assertEquals(Assert.java:1383)
[874](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:875)
	at org.testng.Assert.assertEquals(Assert.java:1429)
[875](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:876)
	at org.wso2.apk.integration.api.BaseSteps.theResponseStatusCodeShouldBe(BaseSteps.java:116)
[876](https://github.com/wso2/apk/actions/runs/6324929457/job/17175722968#step:11:877)
	at ✽.the response status code should be 200(file:///home/runner/work/apk/apk/apk-repo/test/cucumber-tests/src/test/resources/tests/api/Interceptor.feature:109)

Issue2:

RateLimit headers are not returning for first 1/2 requests and it returning after that. In this case the ratelimit counter is working fine from rateLimiter side.

@Tharsanan1
Copy link
Contributor

Fixed with: #2446

@github-project-automation github-project-automation bot moved this from Backlog to ✅ Done/Done in APK Development Oct 8, 2024
@CrowleyRajapakse CrowleyRajapakse added this to the 1.2.0-beta milestone Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done/Done
Development

No branches or pull requests

4 participants