-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ready to test browser support #10
Comments
Worked on #10 Item 1 Vite https://github.com/jojobyte/dashsight-vite-test Currently blocked by error in "browser": {
- "request.js": "browser.js"
+ "./request.js": "./browser.js"
}, |
I will take Webpack |
I think its safe to remove ES Build and probably Rollup? Vite literally is built on top of both. So if vite is working they should be too...
|
With fix therootcompany/request.js#12 in Uncaught (in promise) TypeError: Failed to execute 'text' on 'Response': body stream already read
at browser.js:149:35
at async request (browser.js:148:27)
at async request (browser-request.js:17:14)
at async Object.insight.getUtxos (insight.js:63:20)
at async Object.insight.getInstantBalance (insight.js:38:17) |
@jojobyte What "it"? What API call or request? Obviously the request wasn't parseable JSON - so maybe there's an auth error or a URL needs updated. Also, apparently the body can't be read as plain text if you've already tried to read it as JSON. Makes me think it may be best to always read it as text and then JSON.parse() as a separate step to avoid this issue... |
@jojobyte But most people aren't using Vite. More people use either of those than Vite, right? So better to have a hello world repo demonstrating how they're used than to expect them to figure it out from however Vite composes its build system (the rollup config could be autogenerated in some code 6 layers deep for all I know). |
The vite project at https://github.com/jojobyte/dashsight-vite-test/blob/master/src/App.vue#L17-L19
I was expecting the request to fail as I provided the string |
@coolaj86 you make an excellent point. Once that fix (pr therootcompany/request.js/pull/12) for package.json is merged, I think the other example implementations should go more smoothly. The error in my comment (#10 (comment)) above appears to be specific for invalid addresses. It most certainly should be fixed, but isnt blocking things in the same way as |
I don't have the websocket code yet. Will get to that tomorrow most likely. |
https://github.com/jojobyte/dashsight-vite-test This should be testing the |
FYI: There's a possible hotfix needed for checking the instance balance:
|
Here's my demo site: I would like to claim this now |
Demo Site for Vite: |
COMMENT with what you're working on
(that way we don't have multiple people doing the same thing and no one doing the other things)
The Task
https://github.com/dashhive/dashsight.js
(here are a few real Dash addresses and txids in there.
https://github.com/dashhive/dashsight.js#api
https://github.com/dashhive/dashsight.js/blob/browser/ws-listen.html
The text was updated successfully, but these errors were encountered: