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

fix: instantSend 400 request error #17

Closed
wants to merge 1 commit into from

Conversation

jojobyte
Copy link
Contributor

@jojobyte jojobyte commented Jan 22, 2023

This bug is related to implementing https://github.com/dashhive/crowdnode.js for dashhive/crowdnode.js#47 in dashhive/crowdnode-ui#1

It happens at this timestamp in my stream https://youtu.be/Hik0sLqudYg?t=3025

When executing CrowdNode.signup or CrowdNode.accept in browser, the error below is thrown. This attempts to fix the error and let you continue the CrowdNode signup and accept process.

POST https://dashsight.dashincubator.dev/insight-api/tx/sendix 400
Uncaught (in promise) TypeError: Failed to execute 'text' on 'Response': body stream already read

image

The problem appears to be that json: true, and form: { rawtx: hexTx, }, are not valid options for the @root/request library and do not properly set the headers for the request.

// this was attempted but did not fix the issue entirely, just changed the error.
json: {
  rawtx: hexTx,
},

@jojobyte
Copy link
Contributor Author

Superseded by #20

@jojobyte jojobyte closed this Jan 24, 2023
@jojobyte jojobyte self-assigned this Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant