mirror of
https://github.com/imputnet/cobalt.git
synced 2026-03-22 08:50:05 -05:00
Provide a sane configuration to avoid fetch fail #604
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @j1cs on GitHub (Nov 28, 2024).
problem description
Dear Developers,
I am encountering an issue with my self-hosted instance where I consistently receive the error
error.api.fetch.failwhen trying to get content from Instagram and X.com. My instance is not exposed to the internet, and I have configured the cookies properly. However, I still receive a 400 error from the API with the messageerror.api.fetch.fail.Could you please provide a recommended configuration (including the proper setup of cookies) to resolve this error for Instagram and X.com? Any guidance or sample configuration would be greatly appreciated.
Additionally, when attempting to create an issue, I noticed the following message:
However, upon joining the Discord server, I couldn't find any channels dedicated to questions or support. Could you clarify if there is a support channel available? If not, it might be helpful to update the guidance to reflect the current support options.
Thank you for your assistance.
your instance configuration
@wukko commented on GitHub (Nov 28, 2024):
do absolutely all links not work? even those from our tests? does cobalt log a message saying that cookies were loaded? do other services work?
read the #hey channel
@wukko commented on GitHub (Nov 28, 2024):
also: please don't use a llm to talk to people. it's disrespectful.
@j1cs commented on GitHub (Nov 28, 2024):
duh. i'm a moron
i wanted to be very clear. english ain't my native language but ok will never use it again.
Answering your questions:
1.- pretty much with all links. works only few times.
2.- i didn't try the test. now i'm going to and see.
2.- yes. it shows a message saying that cookies were loaded correctly.
@j1cs commented on GitHub (Nov 28, 2024):
OK this is what i found:
after made a POST
which ends here: https://github.com/imputnet/cobalt/blob/main/api/src/processing/services/instagram.js#L291

with data as undefined and the cookie is being delivered:
POST:
in the case of x.com ends: https://github.com/imputnet/cobalt/blob/main/api/src/processing/services/twitter.js#L118

then here https://github.com/imputnet/cobalt/blob/main/api/src/processing/match.js#L299
this is because cookie isn't being provide the first time and the the status code got 404
thank for answering
@hextor1 commented on GitHub (Nov 29, 2024):
@j1cs Hello Use proxy it will be solve
@j1cs commented on GitHub (Nov 29, 2024):
i just realized that my cookies had changed for some reason. i got the new ones from my browser and now everything seems to work. but i think the twitter part has false positives, some messages get the speed limit. then i should try again using the cookie. i will open PR if you guys find it ok.
@hextor1 commented on GitHub (Nov 29, 2024):
are you using cookies for youtube?