You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API should reject task creation when using an owner address instead of a smart wallet address
Should throw an "invalid address" error
Current Behavior
Instead of receiving an "invalid address" error, the API call is cancelled
Receiving error: "1 CANCELLED: Call cancelled"
Test Details
test("should fail when creating a task with owner address using API key",async()=>{awaitexpect(client.createTask({address: ownerAddress,tokenContract: TOKEN_CONTRACT,oracleContract: ORACLE_CONTRACT,})).rejects.toThrow("invalid address");});
Test Trace
FAIL tests/createTask.test.ts
● listTasks Tests › Auth with API key › should fail when creating a task with owner address using API key
expect(received).rejects.toThrow(expected)
Expected substring: "invalid address"
Received message: "1 CANCELLED: Call cancelled"
4576 | _callRPC(method, request) {
4577 | return new Promise((resolve, reject) => {
> 4578 | this.rpcClient[method].bind(this.rpcClient)(
Reproduction Steps
Run npx jest -t "should fail when creating a task with owner address using API key"
Observe that instead of receiving an "invalid address" error, the call is cancelled
Additional Context
The error occurs at the gRPC client layer rather than reaching the API validation
This might indicate an issue with error handling in the API key authentication flow
The test expects a validation error but receives a connection/cancellation error instead
The text was updated successfully, but these errors were encountered:
Expected Behavior
Current Behavior
Test Details
Test Trace
Reproduction Steps
npx jest -t "should fail when creating a task with owner address using API key"
Additional Context
The text was updated successfully, but these errors were encountered: