npms-io / npms-api

The https://npms.io API
MIT License
189 stars 30 forks source link

Connection refused. #68

Closed yousero closed 7 years ago

yousero commented 7 years ago
root@kekdude:~# wget https://npms.io
--2017-08-02 17:31:25--  https://npms.io/
Resolving npms.io (npms.io)... 104.18.40.142, 104.18.41.142, 2400:cb00:2048:1::6812:288e, ...
Connecting to npms.io (npms.io)|104.18.40.142|:443... failed: Connection refused.
Connecting to npms.io (npms.io)|104.18.41.142|:443... failed: Connection refused.

Why I have that? Why the server is blocking access for some of my ip (91.240.84.28, 62.109.26.92)?

satazor commented 7 years ago

It might be cloudflare that was detecting an attack. Were you spamming the API with requests?

yousero commented 7 years ago

No, I sent requests for the first time.

satazor commented 7 years ago

That's strange. Under another ip it works?

yousero commented 7 years ago

Yes, under another ip it works. And the connection was rejected only for https://npms.io/.

root@vds:~# wget http://npms.io
--2017-08-02 18:53:28--  http://npms.io/
Resolving npms.io (npms.io)... 104.18.41.142, 104.18.40.142, 2400:cb00:2048:1::6812:298e, ...
Connecting to npms.io (npms.io)|104.18.41.142|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://npms.io/ [following]
--2017-08-02 18:53:28--  https://npms.io/
Connecting to npms.io (npms.io)|104.18.41.142|:443... failed: Connection refused.
Connecting to npms.io (npms.io)|104.18.40.142|:443... failed: Connection refused.
Connecting to npms.io (npms.io)|2400:cb00:2048:1::6812:298e|:443... failed: Network is unreachable.
Connecting to npms.io (npms.io)|2400:cb00:2048:1::6812:288e|:443... failed: Network is unreachable.

What should I do to fix the problem? Or what should I do to find a way to solve the problem?

satazor commented 7 years ago

I've checked cf security and your ip is not there. Still having issues?

yousero commented 7 years ago

Thanks for the answer.