Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

At 4.x branch pipeline: Error: unable to decode storage key: hex string invalid #5456

@Muhammad-Altabba

Description

@Muhammad-Altabba

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

For branches that are based on the latest changes in 4.x, the pipeline of their MRs fails with an error that is fired in 3 places:

web3-eth: FAIL test/integration/defaults.test.ts (13.821 s)
web3-eth:   ● defaults › defaults › defaultBlock
web3-eth:     InvalidResponseError: Returned error: unable to decode storage key: hex string invalid
web3-eth:       288 | 		// A valid JSON-RPC response with error object
web3-eth:       289 | 		if (jsonRpc.isResponseWithError<ErrorType>(response)) {
web3-eth:     > 290 | 			throw new InvalidResponseError<ErrorType>(response);
web3-eth:           | 			      ^
web3-eth:       291 | 		}
web3-eth:       292 |
web3-eth:       293 | 		// This is the majority of the cases so check these first
web3-eth:       at Web3RequestManager._processJsonRpcResponse (../web3-core/src/web3_request_manager.ts:290:10)
web3-eth:       at Web3RequestManager.<anonymous> (../web3-core/src/web3_request_manager.ts:[174](https://github.com/web3/web3.js/actions/runs/3078741320/jobs/4974513808#step:4:175):16)
web3-eth:       at fulfilled (../web3-core/dist/web3_request_manager.js:5:58)
web3-eth: FAIL test/integration/rpc.test.ts
web3-eth:   ● rpc › methods › getStorageAt
web3-eth:     InvalidResponseError: Returned error: unable to decode storage key: hex string invalid
web3-eth:       288 | 		// A valid JSON-RPC response with error object
web3-eth:       289 | 		if (jsonRpc.isResponseWithError<ErrorType>(response)) {
web3-eth:     > 290 | 			throw new InvalidResponseError<ErrorType>(response);
web3-eth:           | 			      ^
web3-eth:       291 | 		}
web3-eth:       292 |
web3-eth:       293 | 		// This is the majority of the cases so check these first
web3-eth:       at Web3RequestManager._processJsonRpcResponse (../web3-core/src/web3_request_manager.ts:290:10)
web3-eth:       at Web3RequestManager.<anonymous> (../web3-core/src/web3_request_manager.ts:174:16)
web3-eth:       at fulfilled (../web3-core/dist/web3_request_manager.js:5:58)
web3-eth:           at runMicrotasks (<anonymous>)
web3-eth:   ● rpc › methods › getProof
web3-eth:     InvalidResponseError: Returned error: unable to decode storage key: hex string invalid
web3-eth:       288 | 		// A valid JSON-RPC response with error object
web3-eth:       289 | 		if (jsonRpc.isResponseWithError<ErrorType>(response)) {
web3-eth:     > 290 | 			throw new InvalidResponseError<ErrorType>(response);
web3-eth:           | 			      ^
web3-eth:       291 | 		}
web3-eth:       292 |
web3-eth:       293 | 		// This is the majority of the cases so check these first
web3-eth:       at Web3RequestManager._processJsonRpcResponse (../web3-core/src/web3_request_manager.ts:290:10)
web3-eth:       at Web3RequestManager.<anonymous> (../web3-core/src/web3_request_manager.ts:174:16)
web3-eth:       at fulfilled (../web3-core/dist/web3_request_manager.js:5:58)
web3-eth:           at runMicrotasks (<anonymous>)
web3-eth: Test Suites: 2 failed, 9 skipped, 11 passed, 13 of 22 total
web3-eth: Tests:       3 failed, 22 skipped, 153 passed, [178](https://github.com/web3/web3.js/actions/runs/3078741320/jobs/4974513808#step:4:179) total

Expected Behavior

To have no issues when creating MRs to 4.x.

Steps to Reproduce

This is produced at this experimental PR: #5455. Which contains only a change in one space.

Web3.js Version

4.x

Environment

At GitHub pipeline.

Anything Else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    4.x4.0 relatedBugAddressing a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions