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

[Bug] Reqwest Fails To Send Requests error sending request for url During Bookmark Fetching #70

Closed
vkhitrin opened this issue Mar 1, 2025 · 0 comments · Fixed by #72
Labels
bug Something isn't working

Comments

@vkhitrin
Copy link
Owner

vkhitrin commented Mar 1, 2025

When developing against a locally hosted linkding instance, sometimes reqwest returns

error sending request for

Adding a sleep between various requests solves this:

use std::time::Duration;
let archived_bookmarks_response: reqwest::Response = http_client
    .get(rest_api_archived_bookmarks_url)
    .headers(headers.clone())
    .send()
    .await?;
tokio::time::sleep(Duration::from_secs(1)).await;
let shared_bookmarks_response: reqwest::Response = http_client
    .get(rest_api_shared_bookmarks_url)
    .headers(headers.clone())
    .send()
    .await?;
@vkhitrin vkhitrin added the bug Something isn't working label Mar 1, 2025
vkhitrin added a commit that referenced this issue Mar 6, 2025
Bump cargo dependencies.

Resolves #70.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant