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

Blocked by TruthSocial Cloudflare #45

Open
meln-ds opened this issue Jan 6, 2025 · 1 comment
Open

Blocked by TruthSocial Cloudflare #45

meln-ds opened this issue Jan 6, 2025 · 1 comment

Comments

@meln-ds
Copy link

meln-ds commented Jan 6, 2025

I'm testing search and pull_statuses and so far can only get to ~40 posts before I ran into an error, which seems to be Cloudflare trying to block access.

2025-01-06 16:43:26.342 | ERROR | truthbrush.api:_get:119 - Failed to decode JSON:

<title>Access denied | truthsocial.com used Cloudflare to restrict access</title> <script> (function(){if(document.addEventListener&&window.XMLHttpRequest&&JSON&&JSON.stringify){var e=function(a){var c=document.getElementById("error-feedback-survey"),d=document.getElementById("error-feedback-success"),b=new XMLHttpRequest;a={event:"feedback clicked",properties:{errorCode:1015,helpful:a,version:1}};b.open("POST","https://sparrow.cloudflare.com/api/v1/event");b.setRequestHeader("Content-Type","application/json");b.setRequestHeader("Sparrow-Source-Key","c771f0e4b54944bebf4261d44bd79a1e"); b.send(JSON.stringify(a));c.classList.add("feedback-hidden");d.classList.remove("feedback-hidden")};document.addEventListener("DOMContentLoaded",function(){var a=document.getElementById("error-feedback"),c=document.getElementById("feedback-button-yes"),d=document.getElementById("feedback-button-no");"classList"in a&&(a.classList.remove("feedback-hidden"),c.addEventListener("click",function(){e(!0)}),d.addEventListener("click",function(){e(!1)}))})}})(); </script> <script defer src="https://performance.radar.cloudflare.com/beacon.js"></script>

Error 1015

Ray ID: 8fdac3858cf3a8d8 • 2025-01-06 09:43:26 UTC

You are being rate limited

  <section class="w-240 lg:w-full mx-auto mb-8 lg:px-8">
      <div id="what-happened-section" class="w-1/2 md:w-full">
        <h2 class="text-3xl leading-tight font-normal mb-4 text-black-dark antialiased" data-translate="what_happened">What happened?</h2>
        <p>The owner of this website (truthsocial.com) has banned you temporarily from accessing this website.</p>
        
      </div>

      
  </section>

  <div class="feedback-hidden py-8 text-center" id="error-feedback">
<div id="error-feedback-survey" class="footer-line-wrapper">
    Was this page helpful?
    <button class="border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded" id="feedback-button-yes" type="button">Yes</button>
    <button class="border border-solid bg-white cf-button cursor-pointer ml-4 px-4 py-2 rounded" id="feedback-button-no" type="button">No</button>
</div>
<div class="feedback-success feedback-hidden" id="error-feedback-success">
    Thank you for your feedback!
</div>

Does anyone run into the same issue and how do you handle it? I could add some sleep to wait in between but I find that I usually have to wait several minutes before I could try again, so not sure if I'm missing something. I authenticate by creating a truth social account, then use the account username and password.

@brockmays
Copy link

I have the same problem because I'm trying to pull about 10,000 posts from one account

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