dfinity / agent-js

A collection of libraries and tools for building software around the Internet Computer, in JavaScript.
https://agent-js.icp.xyz
Apache License 2.0
151 stars 94 forks source link

Calling composite query from javascript agent #868

Open wirapratamaz opened 5 months ago

wirapratamaz commented 5 months ago

Describe the issue I'm experiencing issues with the composite query functionality using the @dfinity/agent library in my Node.js application. When attempting to execute composite queries, the process gets stuck without failing or returning any results. Despite efforts, I couldn't find relevant documentation regarding composite queries for @dfinity/agent. While building the agent using the IDL of my canister, which includes a composite query method, I'm unsure if any additional specifications are required for composite queries compared to regular update or query calls. is there any limitation on composite query call from javascript side?Could someone provide guidance or direct me to appropriate documentation regarding composite queries with @dfinity/agent? https://www.npmjs.com/package/@dfinity/agent?activeTab=readme

krpeacock commented 1 month ago

Sorry for the delay here - I haven't been able to reproduce this myself. Labeling composite_query in the IDL works as intended on mainnet and during local development in my own experience.

I'd be happy to take a look if you have reproducing code