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

site issue #79

Closed
pixel-wizard opened this issue Jan 9, 2022 · 5 comments
Closed

site issue #79

pixel-wizard opened this issue Jan 9, 2022 · 5 comments
Assignees
Labels

Comments

@pixel-wizard
Copy link

image
the bot was working fine but recently its been showing me this error, the error gets fixed when switched to other sites
heres my code:
const Booru = require('booru');
module.exports = {
name: 'rule34',

async execute(message, args1, Discord){ 
  
    const posts = await Booru.search('rule34', args1, {limit:3, random: true})

return console.log(posts[0].fileUrl)

}}
@AtoraSuunva
Copy link
Owner

ECONNREFUSED are usually network errors, do you get the same error if you try on another computer/network?

@AtoraSuunva AtoraSuunva self-assigned this Jan 9, 2022
@pixel-wizard
Copy link
Author

ECONNREFUSED are usually network errors, do you get the same error if you try on another computer/network?

ye the bot was working fine but then it just stopped. when switched over to safebooru it works but when i switch back to rule34 it gives me the error

@AtoraSuunva
Copy link
Owner

I can't reproduce that error, I think it's some network error between your computer and rule34 (Firewall blocking it? Network blocking connections to nsfw sites? Rule34 IP banning you? I'm not sure)

@xirpy
Copy link

xirpy commented Jan 22, 2022

the issue is caused by replit, they blocked nsfw websites, and to fetch nsfw content it needs some kind of proxy to bypass that (tried with rule34 api without the npm module using proxy and it worked)

@AtoraSuunva
Copy link
Owner

Ah, that would make sense

The only way for booru to get around that would be by exposing http config settings for a proxy, but unless there's an actual need outside of replit I likely won't

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

No branches or pull requests

3 participants