-
Notifications
You must be signed in to change notification settings - Fork 81
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
Getting a platform error when accessing to a location #1579
Comments
I think I've seen the cause, there is no questionnaire. Don't know why because it was there when we created the project. Something related with a migration maybe? |
Taking another look, the link to the questionnaire appears in the project details but it's been renamed to "None". I've been comparing with the original one (this) and it seems correct. I'm guessing link with the attributes for each location has been lost (don't know the reason). Same error appears when downloading project data (either in xlsx or shp formats). |
Here's the corresponding Opbeat log. It looks like there is at least one |
@oliverroick That Opbeat log corresponds to the errors from another project (Odisha). That one is caused by a single location that has both a blank geometry and a blank type; not sure how that was possible to create. We should update the platform to disallow blank geometries/types, and also to handle it gracefully when there is an invalid location by still loading the others (an error message to the user would be nice, with a link to the location's details page to fix). @dpalomino The original problem you linked above for Telangana is a known issue. Discussion here: https://cadasta.slack.com/archives/C0CLK7X2M/p1494950213988502 There was no decision made as to how to resolve; still needs discussion. |
Thanks @amplifi! I didn't notice that. But then all the geometries in that project are larger than 1MB? Because the problem appears when accessing to any of the locations in that project. See video: Maybe we can catch up re this tomorrow. Thanks! |
@dpalomino Yes, any time you receive that error, the cause is the same. |
Thanks @amplifi. But then it is really weird, because those locations were created long long time ago (September 2016) and were working fine. The last update in the project is 23 Sept 2016. Looking at the geometries: They seem pretty simple. Clicking on any of the geometries showed in the screenshot returns a 500. Any idea why this is happening? I cannot export the locations either (shp r xlsx), I get the same 500. |
@dpalomino Please read the Slack thread I linked in my first comment above -- it explains this issue in detail along with the fix. The stack traces in the error log you linked in your original post show that the platform caches JSON attributes when accessing a location. When that result is greater than 1MB, it fails to cache. The platform should handle this error gracefully and proceed to load the response without caching it first; that fix has yet to be implemented. Caching for JSON attributes wasn't rolled out until end of October, so this bug could not have occurred before then. |
Ah thanks @amplifi, now I understand why it was working before and not now (with the deployment of caching for JSON in October). Regarding the solution you propose:
Do we have a rough estimation re the effort for implementing this? If it's not much I think we should try to include it in the next sprint. |
I've only been able to reproduce this issue in this project in platform.
Steps to reproduce the error
Error log here.
I've tried with a some projects both in staging and production and I've been not able to reproduce it.
The text was updated successfully, but these errors were encountered: