Open source Beta version of Java Dfinity Agent

Hello Rdobrik,

Thanks for the awesome library. We are trying to run helloworld sample code given in the quick start guide using motoko playground for backend. for running this application we used the canister id given by the motoko playground when we deployed the sample code. but we are receiving this error

The replica returned an HTTP Error: Invalid protocol version; error at offset 0: <[0x2e][0x2f][0x30][0x31][0x32][0x33][0x34][0x35][0x36][0x37][0x38][0x39][0x3a][0x3b]d[0x3d][0x3e][0x3f][0x40][0x41][0x42][0x43][0x44][0x45]ÿÿÿ[0x49][0x4a][0x4b][0x4c][0x4d][0x4e][0x4f][0x50][0x51]ÿ[0x54][0x55][0x56][0x57][0x58][0x59][0x5a][0x5b][0x5c][0x5d][0x5e][0x5f][0x60][0x61][0x62][0x63][0x64][0x65][0x66]>

your help is greatly appreciated in this regards.

Hi Rajeev,

Thank you for testing our libraries. There might be some incompatibilities between different versions of ICP and Agent, as the ICP protocol has changed. Please try using the latest version of Agent (0.7.0). I have updated and tested the sample with the latest ICP Playground and also tested it with Java 8 and Java 21. You can find the sample here: IC4J HelloWorld Sample.

Let me know if you encounter any other issues. I will also update the other samples as needed.

2 Likes