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

FetchErrorr request to: https://hivesigner.com/api/me failed, reason: connect EHOSTUNREACH 104.21.44.94:443 #15

Open
BartolomeoItaliano opened this issue Feb 15, 2022 · 2 comments

Comments

@BartolomeoItaliano
Copy link

BartolomeoItaliano commented Feb 15, 2022

When making requests to https://hivesigner.com/api/me from remote server (with constant IP address) sometimes I receive error like this. The behavior is not regular sometimes I get it for couple of minutes sometimes shorter.

I use hive signer tokens to prove user identity on my server than I save the token and treat it as authorization string for some time. Because, of the behavior mentioned my users are unable to login through hivesigner.
What is the case and how to solve it?

That's error I receive:

FetchErrorr request to https://hivesigner.com/api/me failed, reason: connect EHOSTUNREACH 104.21.44.94:443
r: request to https://hivesigner.com/api/me failed, reason: connect EHOSTUNREACH 104.21.44.94:443FetchErrorr request to https://hivesigner.com/api/me failed, reason: connect EHOSTUNREACH 104.21.44.94:443
    at ClientRequest.<anonymous> (/somepath/node_modules/hivesigner/node_modules/node-fetch/lib/index.js:1461:11)
    at ClientRequest.emit (events.js:315:20)
    at TLSSocket.socketErrorListener (_http_client.js:469:9)
    at TLSSocket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  type: 'system',
  errno: 'EHOSTUNREACH',

@feruzm
Copy link
Member

feruzm commented Feb 18, 2022

@BartolomeoItaliano Can you share example of code that reproduce above error? I am unable to reproduce this.

@BartolomeoItaliano
Copy link
Author

BartolomeoItaliano commented Feb 18, 2022

        this.sc2Api = new hivesigner.Client({
            app: "myAppName",
            callbackURL: "PageAddress.com",
            scope: ["login"],
        });


            this.sc2Api.setAccessToken(steemConnectToken);
            return await new Promise<boolean>((resolve: any, reject: any) => {
                this.sc2Api.me(
                    async (err: any, response: any) => {
                        if (err) {
                            console.log(err, response);
                            // here I print to logs described error
                            resolve(false);
                        } else {
                            resolve(true);
                        }
                    });
            });

On my local environment I also was not able to reproduce it.

Maybe hivesigner servers rejects my requests for some reason?
Could it be possible, that after certain amount of requests it starts to reject further communication?

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