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

Generate project data endpoint is failing during project creation #2190

Open
manjitapandey opened this issue Feb 13, 2025 · 5 comments
Open
Assignees
Labels
backend Related to backend code bug Something isn't working priority:high Should be addressed as a priority

Comments

@manjitapandey
Copy link
Contributor

manjitapandey commented Feb 13, 2025

Describe the bug
As a part of Ghana KYC project, while creating a project there was 404 error in upload project data endpoint during project creation. I was using small AOI with high building density extracted from osm.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'create project'
  2. Upload AOI provided below
  3. Fetch map features from osm
  4. See error

Expected behavior
The project should be created successfully. Please also check if the endpoint can be optimised in any way

Screenshots

Image

Additional context
Add any other context about the problem here.

@manjitapandey manjitapandey added the bug Something isn't working label Feb 13, 2025
@manjitapandey manjitapandey added the backend Related to backend code label Feb 13, 2025
@spwoodcock
Copy link
Member

Hmm its a 404, not a 500

@manjitapandey
Copy link
Contributor Author

Oops my bad, edited and updated.
My assumption is timeout since its 404 error after just 1 minutes

@spwoodcock
Copy link
Member

Could you upload the AOI for debugging @manjitapandey?

Ideally we get a fix out for this in the next release in the coming days 👍

@Sujanadh
Copy link
Collaborator

I am working on this, splitting geojson with task areas is taking longer causing time out, additionally fetching fgb data and converting it into geojson is also taking more time. This is the AOI.

{
"type": "FeatureCollection",
"name": "Old Fadama Community_Accra_AoI",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "id": null }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -0.223557141066067, 5.55301640203105 ], [ -0.223372157355682, 5.552814582976067 ], [ -0.220718352587466, 5.550413993127801 ], [ -0.218466531651433, 5.548371005572962 ], [ -0.218569695643763, 5.548098370649989 ], [ -0.219377220687175, 5.547319413032866 ], [ -0.220586729562769, 5.545977479089407 ], [ -0.221269746339575, 5.544731141928271 ], [ -0.222080828762033, 5.54317321677584 ], [ -0.222721156990289, 5.542408415651001 ], [ -0.223660305058397, 5.542535882573937 ], [ -0.224798666353074, 5.543116564874642 ], [ -0.225325158451862, 5.544320416605386 ], [ -0.225040568128193, 5.546005804903388 ], [ -0.22474174828834, 5.547450419613147 ], [ -0.224684830223606, 5.548696751029975 ], [ -0.224969420547276, 5.549858102934255 ], [ -0.224969420547276, 5.551189405961827 ], [ -0.224343321835203, 5.552364915710284 ], [ -0.223557141066067, 5.55301640203105 ] ] ] ] } }
]
}

@spwoodcock spwoodcock added priority:high Should be addressed as a priority testing:ready Ready for testing and removed priority:critical Blocking current tasks or user workflow labels Feb 19, 2025
@manjitapandey
Copy link
Contributor Author

Now the project is being created but statuses API is failing with 500 error. Error message: {"detail":"Getting entity data failed for ODK project (2205)"}
I tried with same old Fadama AOI and fetching osm data extract 20 buildings per task on dev server.
https://dev.fmtm.hotosm.org/project/113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code bug Something isn't working priority:high Should be addressed as a priority
Projects
Development

No branches or pull requests

3 participants