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

[release] 20240611 #311

Merged
merged 2 commits into from
Jun 11, 2024
Merged

[release] 20240611 #311

merged 2 commits into from
Jun 11, 2024

Conversation

jiqiang90
Copy link

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have tested locally
  • I have performed a self review of my changes
  • Updated any relevant documentation
  • Linked to any relevant issues
  • I have added tests relevant to my changes
  • Any dependent changes have been merged and published in downstream modules
  • My code is up to date with the base branch
  • I have updated relevant changelogs. We suggest using chan

Copy link

github-actions bot commented Jun 11, 2024

Coverage report

Caution

Test run failed

St.
Category Percentage Covered / Total
🔴 Statements 50.98% 3316/6505
🟡 Branches 68.21% 369/541
🔴 Functions 52.9% 137/259
🔴 Lines 50.98% 3316/6505

Test suite run failed

Failed tests: 22/90. Failed suites: 4/14.
  ● rawBlockToEthBlock › successfully converts a block

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:16 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"9","x-kong-proxy-latency":"1","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x3e579e\",true],\"id\":42,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● rawBlockToEthBlock › can fetch receipts

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:16 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"9","x-kong-proxy-latency":"1","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x3e579e\",true],\"id\":42,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16


  ● ApiService › can fetch blocks

    expect(received).resolves.toHaveLength()

    Received promise rejected instead of resolved
    Rejected to value: [Error: bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:21 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"113","x-kong-proxy-latency":"1","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0xbcbed7\",true],\"id\":53,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0xbcbed8\",true],\"id\":54,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)]

      78 |
      79 |   it('can fetch blocks', async () => {
    > 80 |     await expect(
         |           ^
      81 |       apiService.api.fetchBlocks(range(12369621, 12369625)),
      82 |     ).resolves.toHaveLength(4);
      83 |   });

      at expect (node_modules/expect/build/index.js:105:15)
      at Object.<anonymous> (packages/node/src/ethereum/api.service.ethereum.test.ts:80:11)

  ● ApiService › can get the finalized height

    All endpoints failed to initialize. Please add healthier endpoints

      69 |     }
      70 |
    > 71 |     await this.createConnections(network, (endpoint) =>
         |     ^
      72 |       EthereumApiConnection.create(
      73 |         endpoint,
      74 |         this.nodeConfig.blockConfirmations,

      at EthereumApiService.createConnections (node_modules/@subql/node-core/src/api.service.ts:116:13)
      at EthereumApiService.init (packages/node/src/ethereum/api.service.ethereum.ts:71:5)
      at prepareApiService (packages/node/src/ethereum/api.service.ethereum.test.ts:58:3)
      at Object.<anonymous> (packages/node/src/ethereum/api.service.ethereum.test.ts:68:25)

  ● ApiService › ensure api errorCode is exposed when throwing

    All endpoints failed to initialize. Please add healthier endpoints

      69 |     }
      70 |
    > 71 |     await this.createConnections(network, (endpoint) =>
         |     ^
      72 |       EthereumApiConnection.create(
      73 |         endpoint,
      74 |         this.nodeConfig.blockConfirmations,

      at EthereumApiService.createConnections (node_modules/@subql/node-core/src/api.service.ts:116:13)
      at EthereumApiService.init (packages/node/src/ethereum/api.service.ethereum.ts:71:5)
      at prepareApiService (packages/node/src/ethereum/api.service.ethereum.test.ts:58:3)
      at Object.<anonymous> (packages/node/src/ethereum/api.service.ethereum.test.ts:68:25)

  ● ApiService › should not retry on any errors not in the retry list

    All endpoints failed to initialize. Please add healthier endpoints

      69 |     }
      70 |
    > 71 |     await this.createConnections(network, (endpoint) =>
         |     ^
      72 |       EthereumApiConnection.create(
      73 |         endpoint,
      74 |         this.nodeConfig.blockConfirmations,

      at EthereumApiService.createConnections (node_modules/@subql/node-core/src/api.service.ts:116:13)
      at EthereumApiService.init (packages/node/src/ethereum/api.service.ethereum.ts:71:5)
      at prepareApiService (packages/node/src/ethereum/api.service.ethereum.test.ts:58:3)
      at Object.<anonymous> (packages/node/src/ethereum/api.service.ethereum.test.ts:68:25)


  ● ProjectService › can get a block timestamps

    could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at OPProvider.<anonymous> (node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:483:23)
      at step (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
      at Object.throw (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
      at rejected (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)


  ● Api.ethereum › Should format transaction in logs, and the transaction gas should be bigInt type

    could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at OPProvider.<anonymous> (node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:483:23)
      at step (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
      at Object.throw (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
      at rejected (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)

  ● Api.ethereum › should have the ability to get receipts via transactions from all types

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:25 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"108","x-kong-proxy-latency":"1","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x0\",false],\"id\":43,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"finalized\",false],\"id\":44,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● Api.ethereum › Should decode transaction data and not clone object

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:30 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"118","x-kong-proxy-latency":"1","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0xf81649\",true],\"id\":46,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● Api.ethereum › Should return raw logs, if decode fails

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:31 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"123","x-kong-proxy-latency":"0","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x0\",false],\"id\":43,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"finalized\",false],\"id\":44,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● Api.ethereum › Should not clone logs when parsing args

    could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at OPProvider.<anonymous> (node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:483:23)
      at step (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
      at Object.throw (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
      at rejected (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)

  ● Api.ethereum › Null filter support

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:33 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"117","x-kong-proxy-latency":"0","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x0\",false],\"id\":43,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"finalized\",false],\"id\":44,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● Api.ethereum › !null filter support for logs, expect to filter out

    could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at OPProvider.<anonymous> (node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:483:23)
      at step (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
      at Object.throw (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
      at rejected (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)

  ● Api.ethereum › Null and 0x (empty) filter support for transaction data

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:35 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"285","x-kong-proxy-latency":"1","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x0\",false],\"id\":43,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"finalized\",false],\"id\":44,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● Api.ethereum › Null filter support, for undefined transaction.to

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:41 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"110","x-kong-proxy-latency":"0","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x0\",false],\"id\":43,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"finalized\",false],\"id\":44,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● Api.ethereum › Should return all tx if filter.to is not defined

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:42 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"105","x-kong-proxy-latency":"0","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x0\",false],\"id\":43,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"finalized\",false],\"id\":44,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● Api.ethereum › filter.to Should support only null not undefined

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:44 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"280","x-kong-proxy-latency":"0","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x0\",false],\"id\":47,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"finalized\",false],\"id\":48,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● Api.ethereum › If transaction is undefined, with null filter, should be supported

    could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at OPProvider.<anonymous> (node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:483:23)
      at step (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
      at Object.throw (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
      at rejected (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)

  ● Api.ethereum › Resolves the correct tags for finalization

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:47 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"107","x-kong-proxy-latency":"1","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getLogs\",\"params\":[{\"blockHash\":\"0x65bcd860a13664944fcc5fb1bf564a67021076c4470f2bc570a07a60add2c8d6\"}],\"id\":49,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● Api.ethereum › Assert blockHash on logs and block

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:49 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"282","x-kong-proxy-latency":"0","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0xf81649\",true],\"id\":48,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

  ● Api.ethereum › Should able to check is fullBlock

    bad response (status=500, headers={"content-type":"application/json; charset=utf-8","content-length":"99","connection":"keep-alive","access-control-allow-origin":"*","date":"Tue, 11 Jun 2024 03:14:50 GMT","etag":"W/\"63-cqOMRZysIoGNCGyA82lA45y2qJo\"","x-powered-by":"Express","x-continent":"NA","x-cluster":"dc","x-kong-upstream-latency":"10","x-kong-proxy-latency":"0","via":"kong/2.5.2"}, body="{\"code\":2000,\"error\":\"Request failed: FetchError: {\\\"code\\\":1141,\\\"error\\\":\\\"Invalid serialize\\\"}\"}", requestBody="[{\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x0\",false],\"id\":43,\"jsonrpc\":\"2.0\"},{\"method\":\"eth_getBlockByNumber\",\"params\":[\"finalized\",false],\"id\":44,\"jsonrpc\":\"2.0\"}]", requestMethod="POST", url="https://ethereum.rpc.subquery.network/public", code=SERVER_ERROR, version=web/5.7.1)

      388 |       ) {
      389 |         runningTimeout.cancel();
    > 390 |         logger.throwError('bad response', Logger.errors.SERVER_ERROR, {
          |                ^
      391 |           status: response.statusCode,
      392 |           headers: response.headers,
      393 |           body: bodyify(

      at Logger.Object.<anonymous>.Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
      at Logger.Object.<anonymous>.Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
      at packages/node/src/ethereum/ethers/web/index.ts:390:16

Report generated by 🧪jest coverage report action from ae377c0

@stwiname stwiname merged commit d9aec0b into main Jun 11, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants