Skip to content
  • Categories
  • Recent
  • Tags
  • All Topics
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Caint logo. It's just text.
  1. Home
  2. Uncategorized
  3. Hi @jerry, since September 2, I am experiencing great lags when querying the public timeline of infosec
Welcome to Caint!

Issues? Post in Comments & Feedback
You can now view, reply, and favourite posts from the Fediverse. You can click here or click on the on the navigation bar on the left.

Hi @jerry, since September 2, I am experiencing great lags when querying the public timeline of infosec

Scheduled Pinned Locked Moved Uncategorized
9 Posts 2 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Konstantin :C_H:K This user is from outside of this forum
    Konstantin :C_H:K This user is from outside of this forum
    Konstantin :C_H:
    wrote last edited by
    #1

    Hi @jerry, since September 2, I am experiencing great lags when querying the public timeline of infosec.exchange with Mastodon.py.

    Requests sometimes take multiple seconds to finish. It seems, the API itself is responding quite fast (250ms) but the pre- / post-processing is sluggish. While this is none of your business, I wonder if you changed anything recently, which may be the cause for the issue. I‘d love to hear from you :3

    Tropical Storm Jerry🌀J 1 Reply Last reply
    0
    • Konstantin :C_H:K Konstantin :C_H:

      Hi @jerry, since September 2, I am experiencing great lags when querying the public timeline of infosec.exchange with Mastodon.py.

      Requests sometimes take multiple seconds to finish. It seems, the API itself is responding quite fast (250ms) but the pre- / post-processing is sluggish. While this is none of your business, I wonder if you changed anything recently, which may be the cause for the issue. I‘d love to hear from you :3

      Tropical Storm Jerry🌀J This user is from outside of this forum
      Tropical Storm Jerry🌀J This user is from outside of this forum
      Tropical Storm Jerry🌀
      wrote last edited by
      #2

      @kpwn nothing I’m aware of. The web front end and mobile apps use those same endpoints, so that’s a bit strange. What are you doing with mastodon.py so I can try to replicate?

      Konstantin :C_H:K 1 Reply Last reply
      0
      • Tropical Storm Jerry🌀J Tropical Storm Jerry🌀

        @kpwn nothing I’m aware of. The web front end and mobile apps use those same endpoints, so that’s a bit strange. What are you doing with mastodon.py so I can try to replicate?

        Konstantin :C_H:K This user is from outside of this forum
        Konstantin :C_H:K This user is from outside of this forum
        Konstantin :C_H:
        wrote last edited by
        #3

        @jerry It basically comes down to this:

        if __name__ == '__main__':
        mastodon_main = Mastodon(api_base_url='https://infosec.exchange', access_token='[access_token]', request_timeout = 10)

        for i in range(20):
        print(f'{i}...')
        t = time.time()
        posts = mastodon_main.timeline(timeline='public', limit=20)
        print(f'{i} done in {time.time() - t}s')

        In my recent attempts, the request takes around 1 second, which is okay but still slower than I'd expect. Interestingly, without API key, it's 0.2s faster.

        Tropical Storm Jerry🌀J 1 Reply Last reply
        0
        • Konstantin :C_H:K Konstantin :C_H:

          @jerry It basically comes down to this:

          if __name__ == '__main__':
          mastodon_main = Mastodon(api_base_url='https://infosec.exchange', access_token='[access_token]', request_timeout = 10)

          for i in range(20):
          print(f'{i}...')
          t = time.time()
          posts = mastodon_main.timeline(timeline='public', limit=20)
          print(f'{i} done in {time.time() - t}s')

          In my recent attempts, the request takes around 1 second, which is okay but still slower than I'd expect. Interestingly, without API key, it's 0.2s faster.

          Tropical Storm Jerry🌀J This user is from outside of this forum
          Tropical Storm Jerry🌀J This user is from outside of this forum
          Tropical Storm Jerry🌀
          wrote last edited by
          #4

          @kpwn try changing the endpoint url to crank.infosec.exchange and see if that makes a difference...

          Konstantin :C_H:K 1 Reply Last reply
          0
          • Tropical Storm Jerry🌀J Tropical Storm Jerry🌀

            @kpwn try changing the endpoint url to crank.infosec.exchange and see if that makes a difference...

            Konstantin :C_H:K This user is from outside of this forum
            Konstantin :C_H:K This user is from outside of this forum
            Konstantin :C_H:
            wrote last edited by
            #5

            @jerry Nah, pretty much the same. Maybe even a little slower.

            Tropical Storm Jerry🌀J 1 Reply Last reply
            0
            • Konstantin :C_H:K Konstantin :C_H:

              @jerry Nah, pretty much the same. Maybe even a little slower.

              Tropical Storm Jerry🌀J This user is from outside of this forum
              Tropical Storm Jerry🌀J This user is from outside of this forum
              Tropical Storm Jerry🌀
              wrote last edited by
              #6

              @kpwn ok - that helps me rule out Fastly. One change I did make, though on Sept 3 not 2 is enabling the new msatodon feature to fetch all replies. It seems unlikely to be related, but it's the only thing that changed in the past week or so.

              Tropical Storm Jerry🌀J 1 Reply Last reply
              0
              • Tropical Storm Jerry🌀J Tropical Storm Jerry🌀

                @kpwn ok - that helps me rule out Fastly. One change I did make, though on Sept 3 not 2 is enabling the new msatodon feature to fetch all replies. It seems unlikely to be related, but it's the only thing that changed in the past week or so.

                Tropical Storm Jerry🌀J This user is from outside of this forum
                Tropical Storm Jerry🌀J This user is from outside of this forum
                Tropical Storm Jerry🌀
                wrote last edited by
                #7

                @kpwn I just reversed that change - can you try again?

                Konstantin :C_H:K 1 Reply Last reply
                0
                • Tropical Storm Jerry🌀J Tropical Storm Jerry🌀

                  @kpwn I just reversed that change - can you try again?

                  Konstantin :C_H:K This user is from outside of this forum
                  Konstantin :C_H:K This user is from outside of this forum
                  Konstantin :C_H:
                  wrote last edited by
                  #8

                  @jerry No noticable difference. Thanks for your support!

                  Konstantin :C_H:K 1 Reply Last reply
                  0
                  • Konstantin :C_H:K Konstantin :C_H:

                    @jerry No noticable difference. Thanks for your support!

                    Konstantin :C_H:K This user is from outside of this forum
                    Konstantin :C_H:K This user is from outside of this forum
                    Konstantin :C_H:
                    wrote last edited by
                    #9

                    @jerry Also, the current response time of 1s is not that big of a problem. I had issues with responses that took up to 10 seconds or so. But if you did not change anything, the problem seems to lie somewhere else... 🙂

                    1 Reply Last reply
                    1
                    0
                    • R AodeRelay shared this topic
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • All Topics
                    • Popular
                    • World
                    • Users
                    • Groups