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

Bundled Stream Client Issues #136

Open
ryoung48 opened this issue Jan 8, 2023 · 0 comments
Open

Bundled Stream Client Issues #136

ryoung48 opened this issue Jan 8, 2023 · 0 comments
Assignees

Comments

@ryoung48
Copy link

ryoung48 commented Jan 8, 2023

Description
Apologies if I am in the wrong place with this question.

My goal is to use the stream client to pick up historical and live actions for specific accounts on mainnet and testnet. The documentation appears to point to this repo for the client: https://github.com/eosrio/hyperion-stream-client, but does not seem to be working as documented in this issue: eosrio/hyperion-stream-client#14: .

I was later informed that the stream client repo is outdated and was referred to this repo. I was trying to use https://github.com/eosrio/hyperion-history-api/blob/main/hyperion-stream-client.js, but any time I call or import this file I get the following error:

ReferenceError: self is not defined
    at Object.<anonymous> ←[90m(~\project-path\←[39mhyperion-history-api\hyperion-stream-client.js:1:299←[90m)←[39m
←[90m    at Module._compile (node:internal/modules/cjs/loader:1159:14)←[39m
←[90m    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)←[39m
←[90m    at Module.load (node:internal/modules/cjs/loader:1037:32)←[39m
←[90m    at Module._load (node:internal/modules/cjs/loader:878:12)←[39m
←[90m    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m
←[90m    at node:internal/main/run_main_module:23:47←[39m

Besides installing dependencies and compiling (npm i & npm run build - both of which ran without issue), I have not done any other setup. Am I using the correct file for the stream client?

Environment
node version: 18.12.1
hyperion-history version: 3.3.8

@igorls igorls assigned igorls and unassigned igorls Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants