-
Notifications
You must be signed in to change notification settings - Fork 20
Update aepp-sdk to v0.25.0-0.1.0-next #84
Comments
Using the Using the @kryztoval can you please provide the steps to replicate the issue. |
I was not able to make aepp-blockchain-explorer work with epoc version 0.25.0 using 0.24.0-0.2.0 or any of the versions after the "Epoch 0.25.0" compatibility commits after. which means aepp-blockchain-explorer is broken by the new updates to aepp-sdk-js. |
https://goo.gl/Dnv3g6 I have it running, but it required a lot of changes to the sdk (reverting changes), and picking an specific version without all the latest changes, as you can see EVERYTHING works, before the latest version of the js sdk. I posted in both places to let you know it is breaking. |
0.24.0-x.x.x versions of the SDK are versioned with those numbers because they work with Epoch version 0.24.x We're soon going to release a new version of the SDK ( |
@kryztoval new |
master / package.json still points to 0.24.0
Open the webpage in Chrome with F12 and it shows:
This is not fixed. |
I tracked the error to this specific edit if you remove this change, the aepp-sdk.js is not broken anymore. |
So is this a problem with aepp-sdk-js or with aepp-blockchain-explorer ? |
Thank you for exploring the problem a bit deeper, and yes: it's a problem with the blockchain-explorer :) First: Important: this version of the SDK is compatible with Epoch 0.25.0. As @shekhar-shubhendu already said: Also: reverting that change seems a bit of an odd change, because the problem you are describing, seems unrelated to that change that @davidyuk made. One thing that might be needed is setting the You can also just try to set the same url there, to see if the problem is related to not having the ...but I'm wondering why the internalUrl is not already set there, especially because I'm assuming that the blockchain-explorer, in fact, uses internal (or "debug") endpoints of the API. @ror-shubham can you help @kryztoval and me, better understand the nature of this problem? Thanks! |
@ricricucit setting |
The change I pinpointed went from returning a function that would throw an error if called to actually performing the throw immediately. since the explorer is not expecting an error to be thrown at that time it fails. This is why reverting that commit works. Now why is there an error being thrown if the explorer is not using the internal endpoints is beyond me. |
From my understanding, all of the swagger endpoints were mapped, but internalUrl was missing, and it was not throwing error earlier. After the above-mentioned commit, it started throwing the error. |
Happy to know you're on this, let me know if you need support, and let's close this issue, if you think is resolved 😉 |
I see commit f1a5d84 great job! I think the package.json needs to be updated to use the latest version to support epoch 0.25.0 Otherwise it will only connect to nodes 0.24.0. Would it be a good idea to create tags or branches for the explorer that specifically support an epoch version ? |
|
Oh, ok, Since i am using testnet, and test net is on 0.25.0 that is the only one i am testing I think this can be closed now. |
aepp-blockchain-explorer works with 0.24.0-0.1.0 if you edit epoch to return version 0.25.0 instead of 0.24.0
but using version 0.24.0-0.2.0 returns this:
Uncaught (in promise) Error: Method PostKeyBlock is unsupported. No interface for ["internal", "chain"]
Maybe that thrown error needs to be trapped by the aepp-blockchain-explorer?
I am creating this here because I don't know if it should be here or on aepp-sdk-sj
aeternity/aepp-sdk-js#134
The text was updated successfully, but these errors were encountered: