Skip to content

Slow (15s) "PUT /api/v2/task/344503202/5" endpoint #2818

@homersimpsons

Description

@homersimpsons

What happened?

Marking a task as "Already fixed" is really slow.

Steps to reproduce

  1. Navigate to a task from the following challenge https://maproulette.org/browse/challenges/49865
  2. Do the task and mark it as fixed / already fixed
  3. Notice the time to complete is really long (15s)

Environment

Firefox on Windows 11

Additional information

The following call took 15s

Image
curl 'https://maproulette.org/api/v2/task/344503202/5' \
  -X PUT \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0' \
  -H 'Accept: */*' \
  -H 'Accept-Language: en-US,en;q=0.9' \
  -H 'Accept-Encoding: gzip, deflate, br, zstd' \
  -H 'Referer: https://maproulette.org/challenge/49865/task/344503202' \
  -H 'Origin: https://maproulette.org' \
  -H 'Sec-GPC: 1' \
  -H 'Connection: keep-alive' \
  -H 'Cookie: PLAY_SESSION=[redacted]' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'Priority: u=0' \
  -H 'Content-Length: 0' \
  -H 'TE: trailers'

Here is a redacted HAR that can be opened with https://toolbox.googleapps.com/apps/har_analyzer/: maproulette.org_api_v2_task_344503202_5_Archive [26-03-29 15-15-08]_redacted.har.txt (renamed to .har.txt to bypass GitHub's limitation).

I can provide the full HAR if requested (just don't want a token to leak inadvertendly), but I believe that this won't help fixing the issue which looks more like a server issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions