Issue Checking "ic_api_version"]

Boom Dao’s games are having issues handling canister responses.

Boom’s games rely on the “icp.net” agent to handle canister calls and responses. Such an agent checks for an “ic_api_version” when checking a replica status when handling a canister call response, but an error gets thrown when it tries to handle a response from “getAllUserEntities” and “getAllUserEntitiesComposite” query calls. In the error, we can notice the icp.net complaining about a missing “ic_api_version.”

This issue is not consistent; it happens most of the time. This issue is preventing Boom’s game from properly handling canister calls.

Boom’s game canisters are deployed in the following subnet:

3hhby-wmtmw-umt4t-7ieyg-bbiig-xiylg-sblrt-voxgt-bqckd-a75bf-rqe

This is the code where the icp.net agent checks for the “ic_api_version” field:

This code is to check whether or not “ic_api_version” exists when the icp.net agent fetches the replica status.

What can we do to resolve this error?

Any help will be appreciated!

2 Likes

@Gekctek can you help out here or at least confirm that this is not an issue of icp.net ?

1 Like

In the latest ICOS version ic_api_version field has been removed from HttpStatusResponse and is no longer returned as part of IC status calls. The inconsistency could be caused by the fact not all boundary nodes have been updated yet. So ICP.net agent has to be modified to comply with the change.

3 Likes

@Zane is there a changelog/any other changes i should be looking at
That was the only field I had as required on the response, and I usually dont enforce that unless the docs said so

I can remove the check and put out a change today @ItsJackAnton

2 Likes

Identifies the interface version supported, i.e. the version of the present /// document that the internet computer aims to support, e.g. 0.8.1. /// The implementation may also return unversioned to indicate that it does not /// comply to a particular version, e.g. in between releases.
My bad

1 Like

any other changes i should be looking at

That is the only one afaik.

1 Like