Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

TypeError in eosjs-jsonrpc.js #1082

Open
apond308 opened this issue Jan 21, 2022 · 1 comment
Open

TypeError in eosjs-jsonrpc.js #1082

apond308 opened this issue Jan 21, 2022 · 1 comment

Comments

@apond308
Copy link

Version of EOSJS
22.1.0

Describe the bug
node_modules/eosjs/dist/eosjs-jsonrpc.js:102
return [4 /yield/, f(this.endpoint + path, {
^
TypeError: f is not a function

This line of code is trying to use f, which is defined in the previous line: "f = this.fetchBuiltin;", as a function, and it is throwing an error.

To Reproduce
Steps to reproduce the behavior:
Run the example code found here

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
@apond308
Copy link
Author

I changed that line to

return [4 /*yield*/, this.fetch(this.endpoint + path, {

and now it is giving the error of

node_modules/eosjs/dist/eosjs-jsonrpc.js:103
body: JSON.stringify(body),

RangeError: Invalid string length

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant