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
Task creation should succeed when authenticated with API key and using a smart wallet address
Should return a successful response with a task ID
Current Behavior
The API call is being cancelled with error: "1 CANCELLED: Call cancelled"
Test fails due to unexpected RPC cancellation
Test Details
test("should create a task when authenticated with API key",async()=>{constresult=awaitclient.createTask({address: smartWallet,tokenContract: TOKEN_CONTRACT,oracleContract: ORACLE_CONTRACT,});expect(result).toBeDefined();expect(result).toHaveProperty("id");});
Test Trace
FAIL tests/createTask.test.ts
listTasks Tests
Auth with API key
✕ should create a task when authenticated with API key (199 ms)
● listTasks Tests › Auth with API key › should create a task when authenticated with API key
1 CANCELLED: Call cancelled
4576 | _callRPC(method, request) {
4577 | return new Promise((resolve, reject) => {
> 4578 | this.rpcClient[method].bind(this.rpcClient)(
| ^
4579 | request,
4580 | this.metadata,
4581 | (error, response) => {
Reproduction Steps
Run npx jest tests/createTask.test.ts -t "should create a task when authenticated with API key"
Observe that the gRPC call is cancelled unexpectedly
Additional Context
The error occurs in the gRPC client layer
This might indicate an issue with the API key authentication or connection handling
The test passes when using signature authentication, suggesting this is specific to API key auth
The text was updated successfully, but these errors were encountered:
Expected Behavior
Current Behavior
Test Details
Test Trace
Reproduction Steps
npx jest tests/createTask.test.ts -t "should create a task when authenticated with API key"
Additional Context
The text was updated successfully, but these errors were encountered: