Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Posting takes 5-30 seconds often #253

Open
alexbbrown opened this issue Nov 26, 2022 · 4 comments
Open

Posting takes 5-30 seconds often #253

alexbbrown opened this issue Nov 26, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@alexbbrown
Copy link

Describe the bug
when I make a post or reply it usually shows a spinner for 30 seconds. This occurs around 70% of the time.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the app
  2. Tap on someone's post
  3. Write a thoughtful, respectful reply
  4. Tap Toot / send
  5. Observe a spinner for 30 seconds
  6. Maybe it succeeds?

This is when attached to wifi, so there should not be bandwidth problems
This is for the hachyderm.io server; I haven't tried others

Expected behavior

  1. After tapping send, the toot should succeed in 0-3 second and return control to the user
  2. If the toot does not succeed in this time, ensure that the user can regain control by presenting a cancel button or just cancelling automatically
  3. Optionally schedule the toot for sending in the background and provide a completion UI later

Screenshots
If applicable, add screenshots to help explain your problem.

(Sample to show UI m only, this one completed in reasonable time)
IMG_0197

(please complete the following information):

  • Device: iPhone 12
  • OS: iOS 16.1.1
  • App Version: 1.7

Additional context
Add any other context about the problem here.

@alexbbrown alexbbrown changed the title Posting takes 5-30 seconds Posting takes 5-30 seconds often Nov 26, 2022
@jzzocc jzzocc added the bug Something isn't working label Nov 26, 2022
@alexbbrown
Copy link
Author

@jzzocc is there any way to get good logs or diagnostics that would help with this issue?

@alexbbrown
Copy link
Author

This continues to be a HUGE problem for me almost every time I post.

I almost always to wait 30 seconds to post, and sometimes it has failed at the end and I get loads of dupes.

I also have difficulty reproducing it in debug; whcih suggests it's based on a more complex set of events.

it's not aided by hachyderm server issues currently

@alexbbrown
Copy link
Author

Sample response. OK so it really does take 30s.

<NSHTTPURLResponse: 0x280552d20> { URL: https://hachyderm.io/api/v1/statuses } { Status Code: 200, Headers {
    "Cache-Control" =     (
        "no-store"
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Encoding" =     (
        gzip
    );
    "Content-Security-Policy" =     (
        "base-uri 'none'; default-src 'none'; frame-ancestors 'none'; font-src 'self' https://hachyderm.io; img-src 'self' https: data: blob: https://hachyderm.io; style-src 'self' https://hachyderm.io 'nonce-8DfGHGtgLPXpUYYdR3z1Qw=='; media-src 'self' https: data: https://hachyderm.io; frame-src 'self' https:; manifest-src 'self' https://hachyderm.io; connect-src 'self' data: blob: https://hachyderm.io https://hachyderm.io wss://hachyderm.io; script-src 'self' https://hachyderm.io 'wasm-unsafe-eval'; child-src 'self' blob: https://hachyderm.io; worker-src 'self' blob: https://hachyderm.io"
    );
    "Content-Type" =     (
        "application/json; charset=utf-8"
    );
    Date =     (
        "Tue, 29 Nov 2022 05:20:21 GMT"
    );
    Etag =     (
        "W/\"a72d7e1680ff41de99f3a5567ced8078\""
    );
    "Permissions-Policy" =     (
        "interest-cohort=()"
    );
    Server =     (
        Mastodon
    );
    "Strict-Transport-Security" =     (
        "max-age=63072000; includeSubDomains",
        "max-age=31536000",
        "max-age=31536000"
    );
    "Transfer-Encoding" =     (
        Identity
    );
    Vary =     (
        "Accept-Encoding",
        "Accept, Origin"
    );
    "X-Content-Type-Options" =     (
        nosniff
    );
    "X-Frame-Options" =     (
        DENY
    );
    "X-Host" =     (
        slappy
    );
    "X-RateLimit-Limit" =     (
        300
    );
    "X-RateLimit-Remaining" =     (
        160
    );
    "X-RateLimit-Reset" =     (
        "2022-11-29T05:20:00.021544Z"
    );
    "X-Request-Id" =     (
        "ebc3dbbe-ae0a-4738-8f58-c13744825e23"
    );
    "X-Runtime" =     (
        "30.400930"
    );
    "X-XSS-Protection" =     (
        0
    );
} }

@alexbbrown
Copy link
Author

also reported here:
hachyderm/community#114

VyrCossont added a commit to VyrCossont/metatext that referenced this issue Nov 9, 2023
This is a *temporary* fix; we should be storing this closer to where it's used.

Fixes metabolist#253
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants