mvdicarlo / postybirb-plus

Remake of PostyBirb using React and NestJS
BSD 3-Clause "New" or "Revised" License
100 stars 26 forks source link

Posting to DA is unreliable #378

Open holgerpieta opened 1 month ago

holgerpieta commented 1 month ago

Posting a file (image) to DA fails about 50 % of the times with the following message:

"response": {
    "website": "DeviantArt",
    "time": "24.10.2024, 09:14:02",
    "message": "Failed to update file post.",
    "additionalInfo": {
        "error": "invalid_request",
        "errorDescription": "Invalid or expired form submission",
        "errorDetails": {
            "csrf": "missing"
        },
        "status": "error"
    }
}

Simply retrying the same submission will succeed 50 % of the time. So by just retrying a sufficiently number of times, all submissions will be posted successfully, eventually. But obviously something is no working quite right.

Is there anything I can do to provide more and helpful information?

leaftail1880 commented 1 month ago

Are you one the latest version? Which sizes of the files do you usually have?

The problem seems like it takes too much time to either compress image or to upload it to DA, so the token expires while pb does one of these

holgerpieta commented 1 month ago

I tried version 3.1.49.

The images are usually a little over 2 million pixels in size and something like 100 to 500 kB file size (JPEG).