c3kay / hoyolab-rss-feeds

RSS feed (JSON & Atom) generator for official game news from Hoyolab.
https://c3kay.de/hoyolab-rss-feeds
MIT License
20 stars 1 forks source link

"socket hang up" when I do a request to JSON feed #1

Closed enzon19 closed 2 years ago

enzon19 commented 2 years ago

I don't know if it's your fault, but since last days, I can't make requests to the JSON feed. Every time I try, I receive "socket hang up"/"ECONNRESET"/"ETIMEDOUT"

I'm using node.js with axios.

const axios = require('axios');

simpletest()

function simpletest () {

  console.log(axios.get('https://c3kay.de/hoyolab.json').then(res => console.log(res.data)))

}
c3kay commented 2 years ago

Hey there! I was receiving a large amount of requests in the last days/weeks and therefore I have blocked them. I think they might be coming from your side since the user-agent matches. Please adjust your request interval to maybe every hour (the feed file is only updated every hour and does not change in the time between) and I will unblock you!

enzon19 commented 2 years ago

That's true! I was using a converter to XML with a very short interval. Sorry. Now you have the Atom feed, so I already turned off that code. If you can unblock me, I will be very thankful. Sorry again.

c3kay commented 2 years ago

Alright, you should be unblocked now!