Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Cardano api 9.1 backward compatibility issue #617

Open
spannercode opened this issue Aug 13, 2024 · 5 comments
Open

[BUG] - Cardano api 9.1 backward compatibility issue #617

spannercode opened this issue Aug 13, 2024 · 5 comments
Labels

Comments

@spannercode
Copy link

Internal/External
External

Area
Plutus Related to Plutus Scripts (Babbage).

Summary
Using latest code cardano-api-9.1, we're not able to connect to the node 8.9.4 at BabbageEra, even though it is supposed to be backward compatible.

Error

 Create Ref Script-buildAndSubmit : FrameworkError: ConnectionError: "
QueryEraHistory: DecoderFailure (LocalStateQuery HardForkBlock 
(': * ByronBlock (': * (ShelleyBlock (TPraos StandardCrypto) (ShelleyEra StandardCrypto)) 
(': * (ShelleyBlock (TPraos StandardCrypto) (AllegraEra StandardCrypto)) (': * 
(ShelleyBlock (TPraos StandardCrypto) (MaryEra StandardCrypto)) (': * 
(ShelleyBlock (TPraos StandardCrypto) (AlonzoEra StandardCrypto)) (': * 
(ShelleyBlock (Praos StandardCrypto) (BabbageEra StandardCrypto)) (': * 
(ShelleyBlock (Praos StandardCrypto) (ConwayEra StandardCrypto)) ('[] )))))))) 

Query (BlockQuery (HardForkBlock (': ByronBlock (': * 
(ShelleyBlock (TPraos StandardCrypto) (ShelleyEra StandardCrypto)) (': * 
(ShelleyBlock (TPraos StandardCrypto) (AllegraEra StandardCrypto)) (': * 
(ShelleyBlock (TPraos StandardCrypto) (MaryEra StandardCrypto)) (': * 
(ShelleyBlock (TPraos StandardCrypto) (AlonzoEra StandardCrypto)) (': * 
(ShelleyBlock (Praos StandardCrypto) (BabbageEra StandardCrypto)) (': * 
(ShelleyBlock (Praos StandardCrypto) (ConwayEra StandardCrypto)) ('[] *))))))))))) 
ServerAgency TokQuerying BlockQuery (QueryHardFork GetInterpreter)) 

(DeserialiseFailure 13 "Size mismatch when decoding EraParams.\nExpected 4, but found 3.")"

What is working ?

  • query utxos
  • query protocol params
  • query system start

What is not working?

  • query eraHistory

Additional context
Originally reported and tracked here: cardanoapi/hardfork-testing #50

@spannercode spannercode changed the title [BUG] - [BUG] - Cardano 9.1 backward compatibility issue Aug 13, 2024
@spannercode spannercode changed the title [BUG] - Cardano 9.1 backward compatibility issue [BUG] - Cardano api 9.1 backward compatibility issue Aug 13, 2024
@Jimbo4350
Copy link
Contributor

Can you try with the latest released node.

@spannercode
Copy link
Author

Using the latest node 9.1.0 is working as expected. However, using the latest cardano-api (9.2.0) to query 8.9.4 node is not working. Is it expected to break?

@carbolymer
Copy link
Contributor

Yes. You should use either cardano-api version mentioned in "Individual packages' changelogs" on the release page https://github.com/IntersectMBO/cardano-node/releases/tag/8.9.4 or upgrade the node.

@spannercode
Copy link
Author

That was one of our thoughts as well which we did try. On cardano-node 8.9.4, the cardano-api == 8.39.3.0 which already includes the conway era changes. Unless we got something wrong, it was not compatible as well.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

@github-actions github-actions bot added the Stale label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants